org.glassfish.loadbalancer.admin.cli.reader.impl
Class ClusterReaderImpl

java.lang.Object
  extended by org.glassfish.loadbalancer.admin.cli.reader.impl.ClusterReaderImpl
All Implemented Interfaces:
BaseReader, ClusterReader

public class ClusterReaderImpl
extends java.lang.Object
implements ClusterReader

Impl class for ClusterReader. This provides loadbalancer data for a cluster.

Author:
Kshitiz Saxena

Constructor Summary
ClusterReaderImpl(Domain domain, ApplicationRegistry appRegistry, Cluster cluster)
           
ClusterReaderImpl(Domain domain, ApplicationRegistry appRegistry, ClusterRef clusterRef)
           
 
Method Summary
 void accept(Visitor v)
          Accepts a visitor and calls its visit method
 HealthCheckerReader getHealthChecker()
          Returns the health checker for the cluster
 InstanceReader[] getInstances()
          Get the instance readers in the cluster
 java.lang.String getLbPolicy()
          Returns the lb policy
 java.lang.String getLbPolicyModule()
          Returns the lb policy module
 java.lang.String getName()
          Get the name of the cluster
 WebModuleReader[] getWebModules()
          Returns all the web modules in the cluster
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterReaderImpl

public ClusterReaderImpl(Domain domain,
                         ApplicationRegistry appRegistry,
                         Cluster cluster)

ClusterReaderImpl

public ClusterReaderImpl(Domain domain,
                         ApplicationRegistry appRegistry,
                         ClusterRef clusterRef)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: ClusterReader
Get the name of the cluster

Specified by:
getName in interface ClusterReader
Returns:
String name of the cluster

getInstances

public InstanceReader[] getInstances()
                              throws LbReaderException
Description copied from interface: ClusterReader
Get the instance readers in the cluster

Specified by:
getInstances in interface ClusterReader
Returns:
InstanceReader[] array of instance readers in the cluser
Throws:
LbReaderException

getHealthChecker

public HealthCheckerReader getHealthChecker()
                                     throws LbReaderException
Description copied from interface: ClusterReader
Returns the health checker for the cluster

Specified by:
getHealthChecker in interface ClusterReader
Returns:
HealthCheckerReader health checker information for the cluster
Throws:
LbReaderException

getWebModules

public WebModuleReader[] getWebModules()
                                throws LbReaderException
Description copied from interface: ClusterReader
Returns all the web modules in the cluster

Specified by:
getWebModules in interface ClusterReader
Returns:
WebModuleReader[] array of web module readers in the cluster
Throws:
LbReaderException

getLbPolicy

public java.lang.String getLbPolicy()
Description copied from interface: ClusterReader
Returns the lb policy

Specified by:
getLbPolicy in interface ClusterReader
Returns:
LbPolicy String

getLbPolicyModule

public java.lang.String getLbPolicyModule()
Description copied from interface: ClusterReader
Returns the lb policy module

Specified by:
getLbPolicyModule in interface ClusterReader
Returns:
LbPolicyModule String

accept

public void accept(Visitor v)
            throws java.lang.Exception
Description copied from interface: BaseReader
Accepts a visitor and calls its visit method

Specified by:
accept in interface BaseReader
Throws:
java.lang.Exception


Copyright © 2012 GlassFish Community. All Rights Reserved.