org.glassfish.loadbalancer.admin.cli.reader.api
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
 java.lang.String getDisableTimeoutInMinutes()
          This is used in quicescing.
 boolean getLbEnabled()
          Returns if the server is enabled in the load balancer or not.
 java.lang.String getListeners()
          Enlists both http and https listeners of this server instance It will be form "http:: https::"
 java.lang.String getName()
          Return server instance's name.
 java.lang.String getWeight()
          For weighted round robin gets the weight.
 
Methods inherited from interface org.glassfish.loadbalancer.admin.cli.reader.api.BaseReader
accept
 

Method Detail

getName

java.lang.String getName()
                         throws LbReaderException
Return server instance's name.

Returns:
String instance' name
Throws:
LbReaderException

getLbEnabled

boolean getLbEnabled()
                     throws LbReaderException
Returns if the server is enabled in the load balancer or not.

Returns:
boolean true if enabled in LB; false if disabled
Throws:
LbReaderException

getDisableTimeoutInMinutes

java.lang.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

java.lang.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

java.lang.String getWeight()
                           throws LbReaderException
For weighted round robin gets the weight. Default value is 100

Returns:
String Weight
Throws:
LbReaderException


Copyright © 2012 GlassFish Community. All Rights Reserved.