@Deprecated
public class ServerCluster
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
ServerCluster.ServerInfo
Deprecated.
ServerInfo class represents the server available for clustering.
|
Constructor and Description |
---|
ServerCluster(java.util.Collection availableResources,
ServerClusterType clusterType)
Deprecated.
Initializes the ServerCluster class using the specified resource collection and cluster type.
|
ServerCluster(java.util.Collection availableResources,
ServerClusterType clusterType,
int failRecheckValue)
Deprecated.
Initializes the ServerCluster class using the specified resource collection, cluster type and failRecheckCount.
|
ServerCluster(java.util.Collection availableResources,
ServerClusterType clusterType,
java.lang.String serverObjectName,
java.lang.String serverObjectType)
Deprecated.
Initializes the ServerCluster class using the specified resource collection,
cluster type, serverObjectName, serverObjectType.
|
ServerCluster(java.util.Collection availableResources,
ServerClusterType clusterType,
java.lang.String serverObjectName,
java.lang.String serverObjectType,
int failRecheckValue,
java.lang.String domain,
java.lang.String userName,
java.lang.String password)
Deprecated.
Initializes the ServerCluster class using the specified resource collection,
cluster type, serverObjectName, serverObjectType and failRecheckCount.
|
ServerCluster(java.util.Collection availableResources,
ServerClusterType clusterType,
java.lang.String serverObjectName,
java.lang.String serverObjectType,
java.lang.String domain,
java.lang.String userName,
java.lang.String password)
Deprecated.
Initializes the ServerCluster class using the specified resource collection,
cluster type, serverObjectName, serverObjectType and user credentials.
|
Modifier and Type | Method and Description |
---|---|
void |
addSOM(java.lang.String machineName)
Deprecated.
Adds a Server to the list available for clustering.
|
java.lang.String |
getCurrentHost()
Deprecated.
Returns the current host name.
|
IServerObjectManager |
getNextSOM()
Deprecated.
Returns the
IServerObjectManager object from the server. |
ServerClusterType |
getServerClusterType()
Deprecated.
Returns the ServerClusterType used for clustering.
|
ServerConnection |
getServerConnection()
Deprecated.
Returns the ServerConnection object.
|
java.lang.String |
getUserDomain()
Deprecated.
|
java.lang.String |
getUserName()
Deprecated.
|
boolean |
hasServers()
Deprecated.
Returns if Servers are available for clustering.
|
java.lang.String |
listSOMsAsString()
Deprecated.
Returns the server list particapiting in the cluster as String.
|
void |
removeSOM(java.lang.String machineName)
Deprecated.
Remove a Server from the list available for clustering.
|
void |
setCredentials(java.lang.String domain,
java.lang.String userName,
java.lang.String password)
Deprecated.
|
public ServerCluster(java.util.Collection availableResources, ServerClusterType clusterType)
availableResources
- the resource collectionclusterType
- the cluster ServerClusterType usedpublic ServerCluster(java.util.Collection availableResources, ServerClusterType clusterType, java.lang.String serverObjectName, java.lang.String serverObjectType)
availableResources
- the resource collectionclusterType
- the cluster ServerClusterType usedserverObjectName
- -the ServerObject configuartion Name, if present checks if this ServerObjectName is present in the SOMserverObjectType
- -the ServerObject configuartion Type, if present checks if this serverObjectType is present in the SOMpublic ServerCluster(java.util.Collection availableResources, ServerClusterType clusterType, java.lang.String serverObjectName, java.lang.String serverObjectType, java.lang.String domain, java.lang.String userName, java.lang.String password)
availableResources
- the resource collectionclusterType
- the cluster ServerClusterType usedserverObjectName
- -the ServerObject configuartion Name, if present checks if this ServerObjectName is present in the SOMserverObjectType
- -the ServerObject configuartion Type, if present checks if this serverObjectType is present in the SOMdomain
- the domain of the user to impersonateuserName
- the name of the user to impersonatepassword
- the password of the user to impersonatepublic ServerCluster(java.util.Collection availableResources, ServerClusterType clusterType, int failRecheckValue)
availableResources
- the resource collectionclusterType
- the cluster ServerClusterType usedfailRecheckValue
- the fail Recheck value used for checking if the server is alive after n bypass rounds
{ default is -1, there will be no checking till all the SOM's particapating in the cluster are failed}.public ServerCluster(java.util.Collection availableResources, ServerClusterType clusterType, java.lang.String serverObjectName, java.lang.String serverObjectType, int failRecheckValue, java.lang.String domain, java.lang.String userName, java.lang.String password)
availableResources
- the resource collectionclusterType
- the cluster ServerClusterType usedserverObjectName
- -the ServerObject configuartion Name, if present checks if this ServerObjectName is present in the SOMserverObjectType
- -the ServerObject configuartion Type, if present checks if this serverObjectType is present in the SOMfailRecheckValue
- the fail Recheck value used for checking if the server is alive after n bypass rounds
{ default is -1, there will be no checking till all the SOM's particapating in the cluster are failed}.domain
- the domain of the user to impersonateuserName
- the name of the user to impersonatepassword
- the password of the user to impersonatepublic IServerObjectManager getNextSOM() throws SOMNotAvailableException
IServerObjectManager
object from the server.
If ServerObjectName & ServerObjectType is passed in creating the servercluste,
then checks if this ServerObjectName & ServerObjectType is present in this SOM,
else it marks this SOM as not useful and checks in the next avaialble SOMIServerObjectManager
- the IServerObjectMananger objectSOMNotAvailableException
public boolean hasServers()
public java.lang.String getCurrentHost()
public ServerConnection getServerConnection()
public void removeSOM(java.lang.String machineName)
machineName
- as Stringpublic void addSOM(java.lang.String machineName)
machineName
- as Stringpublic ServerClusterType getServerClusterType()
ServerClusterType
- the ServerClusterTypepublic java.lang.String listSOMsAsString()
String
- the server list particapiting in the cluster as Stringpublic void setCredentials(java.lang.String domain, java.lang.String userName, java.lang.String password)
public java.lang.String getUserDomain()
public java.lang.String getUserName()