Class ClusterReaderImpl
- java.lang.Object
-
- org.glassfish.loadbalancer.admin.cli.reader.impl.ClusterReaderImpl
-
- All Implemented Interfaces:
BaseReader,ClusterReader
public class ClusterReaderImpl extends Object implements ClusterReader
Impl class for ClusterReader. This provides loadbalancer data for a cluster.- Author:
- Kshitiz Saxena
-
-
Constructor Summary
Constructors Constructor Description ClusterReaderImpl(Domain domain, ApplicationRegistry appRegistry, Cluster cluster)ClusterReaderImpl(Domain domain, ApplicationRegistry appRegistry, ClusterRef clusterRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor v)Accepts a visitor and calls its visit methodHealthCheckerReadergetHealthChecker()Returns the health checker for the clusterInstanceReader[]getInstances()Get the instance readers in the clusterStringgetLbPolicy()Returns the lb policyStringgetLbPolicyModule()Returns the lb policy moduleStringgetName()Get the name of the clusterWebModuleReader[]getWebModules()Returns all the web modules in the cluster
-
-
-
Constructor Detail
-
ClusterReaderImpl
public ClusterReaderImpl(Domain domain, ApplicationRegistry appRegistry, Cluster cluster)
-
ClusterReaderImpl
public ClusterReaderImpl(Domain domain, ApplicationRegistry appRegistry, ClusterRef clusterRef)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:ClusterReaderGet the name of the cluster- Specified by:
getNamein interfaceClusterReader- Returns:
- String name of the cluster
-
getInstances
public InstanceReader[] getInstances() throws LbReaderException
Description copied from interface:ClusterReaderGet the instance readers in the cluster- Specified by:
getInstancesin interfaceClusterReader- Returns:
- InstanceReader[] array of instance readers in the cluser
- Throws:
LbReaderException
-
getHealthChecker
public HealthCheckerReader getHealthChecker() throws LbReaderException
Description copied from interface:ClusterReaderReturns the health checker for the cluster- Specified by:
getHealthCheckerin interfaceClusterReader- Returns:
- HealthCheckerReader health checker information for the cluster
- Throws:
LbReaderException
-
getWebModules
public WebModuleReader[] getWebModules() throws LbReaderException
Description copied from interface:ClusterReaderReturns all the web modules in the cluster- Specified by:
getWebModulesin interfaceClusterReader- Returns:
- WebModuleReader[] array of web module readers in the cluster
- Throws:
LbReaderException
-
getLbPolicy
public String getLbPolicy()
Description copied from interface:ClusterReaderReturns the lb policy- Specified by:
getLbPolicyin interfaceClusterReader- Returns:
- LbPolicy String
-
getLbPolicyModule
public String getLbPolicyModule()
Description copied from interface:ClusterReaderReturns the lb policy module- Specified by:
getLbPolicyModulein interfaceClusterReader- Returns:
- LbPolicyModule String
-
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
-
-