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 void
accept(Visitor v)
Accepts a visitor and calls its visit methodString
getIntervalInSeconds()
Health checker runs in the specified interval time.String
getTimeoutInSeconds()
Timeout where a server is considered un healthy.String
getUrl()
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:
getUrl
in 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:
getIntervalInSeconds
in 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:
getTimeoutInSeconds
in interfaceHealthCheckerReader
- 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
-
-