org.glassfish.loadbalancer.admin.cli.reader.impl
Class IdempotentUrlPatternReaderImpl

java.lang.Object
  extended by org.glassfish.loadbalancer.admin.cli.reader.impl.IdempotentUrlPatternReaderImpl
All Implemented Interfaces:
BaseReader, IdempotentUrlPatternReader

public class IdempotentUrlPatternReaderImpl
extends java.lang.Object
implements IdempotentUrlPatternReader

Provides idempotent url pattern information relavant to Load balancer tier.

Author:
Kshitiz Saxena

Constructor Summary
IdempotentUrlPatternReaderImpl(IdempotentUrlPattern pattern)
          Constructor for Idempotent url pattern
 
Method Summary
 void accept(Visitor v)
          Accepts a visitor and calls its visit method
 java.lang.String getNoOfRetries()
          Number of retries, when an idempotent request fails.
 java.lang.String getUrlPattern()
          Returns a regular expression containing an url or url pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdempotentUrlPatternReaderImpl

public IdempotentUrlPatternReaderImpl(IdempotentUrlPattern pattern)
Constructor for Idempotent url pattern

Method Detail

getUrlPattern

public java.lang.String getUrlPattern()
                               throws LbReaderException
Returns a regular expression containing an url or url pattern.

Specified by:
getUrlPattern in interface IdempotentUrlPatternReader
Returns:
String an url and regural expression matching multiple urls
Throws:
LbReaderException

getNoOfRetries

public java.lang.String getNoOfRetries()
                                throws LbReaderException
Number of retries, when an idempotent request fails.

Specified by:
getNoOfRetries in interface IdempotentUrlPatternReader
Returns:
String value must be > 0.
Throws:
LbReaderException

accept

public void accept(Visitor v)
            throws java.lang.Exception
Description copied from interface: BaseReader
Accepts a visitor and calls its visit method

Specified by:
accept in interface BaseReader
Throws:
java.lang.Exception


Copyright © 2012 GlassFish Community. All Rights Reserved.