Class HealthCheckerReaderImpl
- java.lang.Object
-
- org.glassfish.loadbalancer.admin.cli.reader.impl.HealthCheckerReaderImpl
-
- All Implemented Interfaces:
BaseReader,HealthCheckerReader
public class HealthCheckerReaderImpl extends Object implements HealthCheckerReader
Provides health checker information relavant to Load balancer tier.- Author:
- Kshitiz Saxena
-
-
Constructor Summary
Constructors Constructor Description HealthCheckerReaderImpl()HealthCheckerReaderImpl(HealthChecker hc)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor v)Accepts a visitor and calls its visit methodStringgetIntervalInSeconds()Health checker runs in the specified interval time.StringgetTimeoutInSeconds()Timeout where a server is considered un healthy.StringgetUrl()Return health checker url
-
-
-
Constructor Detail
-
HealthCheckerReaderImpl
public HealthCheckerReaderImpl()
-
HealthCheckerReaderImpl
public HealthCheckerReaderImpl(HealthChecker hc)
Constructor
-
-
Method Detail
-
getUrl
public String getUrl() throws LbReaderException
Return health checker url- Specified by:
getUrlin interfaceHealthCheckerReader- Returns:
- String health checker url, it shoudld conform to RFC 2396. java.net.URI.resolve(url) shoudl return a valid URI.
- Throws:
LbReaderException
-
getIntervalInSeconds
public String getIntervalInSeconds() throws LbReaderException
Health checker runs in the specified interval time.- Specified by:
getIntervalInSecondsin interfaceHealthCheckerReader- Returns:
- String value must be > 0
- Throws:
LbReaderException
-
getTimeoutInSeconds
public String getTimeoutInSeconds() throws LbReaderException
Timeout where a server is considered un healthy.- Specified by:
getTimeoutInSecondsin interfaceHealthCheckerReader- 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
-
-