Interface InstanceReader
-
- All Superinterfaces:
BaseReader
- All Known Implementing Classes:
InstanceReaderImpl
public interface InstanceReader extends BaseReader
Provides instance information relavant to Load balancer tier.- Author:
- Satish Viswanatham
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDisableTimeoutInMinutes()This is used in quicescing.booleangetLbEnabled()Returns if the server is enabled in the load balancer or not.StringgetListeners()Enlists both http and https listeners of this server instance It will be form "http:: https: : " StringgetName()Return server instance's name.StringgetWeight()For weighted round robin gets the weight.-
Methods inherited from interface org.glassfish.loadbalancer.admin.cli.reader.api.BaseReader
accept
-
-
-
-
Method Detail
-
getName
String getName() throws LbReaderException
Return server instance's name.- Returns:
- String instance' name
- Throws:
LbReaderException
-
getLbEnabled
boolean getLbEnabled() throws LbReaderExceptionReturns if the server is enabled in the load balancer or not.- Returns:
- boolean true if enabled in LB; false if disabled
- Throws:
LbReaderException
-
getDisableTimeoutInMinutes
String getDisableTimeoutInMinutes() throws LbReaderException
This is used in quicescing. Timeouts after this interval and disables the instance in the load balancer.- Returns:
- String Disable time out in minutes
- Throws:
LbReaderException
-
getListeners
String getListeners() throws LbReaderException
Enlists both http and https listeners of this server instance It will be form "http:: https: : " - Returns:
- String Listener(s) info.
- Throws:
LbReaderException
-
getWeight
String getWeight() throws LbReaderException
For weighted round robin gets the weight. Default value is 100- Returns:
- String Weight
- Throws:
LbReaderException
-
-