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 void
accept(Visitor v)
Accepts a visitor and calls its visit methodString
getNoOfRetries()
Number of retries, when an idempotent request fails.String
getUrlPattern()
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:
getUrlPattern
in 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:
getNoOfRetries
in interfaceIdempotentUrlPatternReader
- Returns:
- String value must be > 0.
- Throws:
LbReaderException
-
accept
public void accept(Visitor v) throws Exception
Description copied from interface:BaseReader
Accepts a visitor and calls its visit method- Specified by:
accept
in interfaceBaseReader
- Throws:
Exception
-
-