Class IdempotentUrlPatternReaderImpl
- java.lang.Object
-
- org.glassfish.loadbalancer.admin.cli.reader.impl.IdempotentUrlPatternReaderImpl
-
- All Implemented Interfaces:
BaseReader,IdempotentUrlPatternReader
public class IdempotentUrlPatternReaderImpl extends Object implements IdempotentUrlPatternReader
Provides idempotent url pattern information relavant to Load balancer tier.- Author:
- Kshitiz Saxena
-
-
Constructor Summary
Constructors Constructor Description IdempotentUrlPatternReaderImpl(IdempotentUrlPattern pattern)Constructor for Idempotent url pattern
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor v)Accepts a visitor and calls its visit methodStringgetNoOfRetries()Number of retries, when an idempotent request fails.StringgetUrlPattern()Returns a regular expression containing an url or url pattern.
-
-
-
Constructor Detail
-
IdempotentUrlPatternReaderImpl
public IdempotentUrlPatternReaderImpl(IdempotentUrlPattern pattern)
Constructor for Idempotent url pattern
-
-
Method Detail
-
getUrlPattern
public String getUrlPattern() throws LbReaderException
Returns a regular expression containing an url or url pattern.- Specified by:
getUrlPatternin interfaceIdempotentUrlPatternReader- Returns:
- String an url and regural expression matching multiple urls
- Throws:
LbReaderException
-
getNoOfRetries
public String getNoOfRetries() throws LbReaderException
Number of retries, when an idempotent request fails.- Specified by:
getNoOfRetriesin interfaceIdempotentUrlPatternReader- Returns:
- String value must be > 0.
- Throws:
LbReaderException
-
accept
public void accept(Visitor v) throws Exception
Description copied from interface:BaseReaderAccepts a visitor and calls its visit method- Specified by:
acceptin interfaceBaseReader- Throws:
Exception
-
-