public class ClusterDefinition extends Object
Constructor and Description |
---|
ClusterDefinition(GSInstallerStateProvider stateProvider)
Create a cluster definition.
|
ClusterDefinition(GSInstallerStateProvider stateProvider,
int stateExpiry)
Create a cluster definition.
|
Modifier and Type | Method and Description |
---|---|
String |
getClusterName()
Get the name of the cluster.
|
Set<String> |
getComponents(String service)
Get the components for the given service.
|
String |
getComponentState(String serviceName,
String componentName)
Get the component state from the give service name and component name.
|
Set<String> |
getHostComponents(String service,
String host)
Get the host components for the given service and host.
|
String |
getHostComponentState(String hostName,
String serviceName,
String componentName)
Get the host component name from the given host name, service name and component name.
|
Set<String> |
getHosts()
Get the hosts for the cluster.
|
String |
getHostState(String hostName)
Get the host state from the given host name.
|
Set<String> |
getServices()
Get the services for the cluster.
|
String |
getServiceState(String serviceName)
Get the service state from the given service name.
|
String |
getVersionId()
Get the name of the cluster.
|
public ClusterDefinition(GSInstallerStateProvider stateProvider)
stateProvider
- the state providerpublic ClusterDefinition(GSInstallerStateProvider stateProvider, int stateExpiry)
stateProvider
- the state providerstateExpiry
- the state expirypublic String getClusterName()
public String getVersionId()
public Set<String> getServices()
public Set<String> getHosts()
public Set<String> getComponents(String service)
service
- the service namepublic Set<String> getHostComponents(String service, String host)
service
- the service namehost
- the host namepublic String getHostState(String hostName)
hostName
- the host namepublic String getServiceState(String serviceName)
serviceName
- the service namepublic String getComponentState(String serviceName, String componentName)
serviceName
- the service namecomponentName
- the component namepublic String getHostComponentState(String hostName, String serviceName, String componentName)
hostName
- the host nameserviceName
- the service namecomponentName
- the component nameCopyright © 2014. All rights reserved.