@Deprecated
public class ServerCluster2
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ServerCluster2(java.util.Collection soms,
ServerClusterType serverClusterType)
Deprecated.
Constructor that takes in a list of machine names and the clustering
algorithm.
|
ServerCluster2(java.util.Collection soms,
ServerClusterType serverClusterType,
java.lang.String domain,
java.lang.String username,
java.lang.String password)
Deprecated.
Constructor that takes in a list of machine names, the
clustering algorithm and user credentials to use while
attempting to connect to a SOM.
|
Modifier and Type | Method and Description |
---|---|
void |
addSOM(java.lang.String som)
Deprecated.
Add SOM to list
|
int |
getReconnectTimeInMins()
Deprecated.
Function to get the time value in mins after which time
this class will attempt to reconnect to a bad SOM.
|
int |
getServerClusterSize()
Deprecated.
Returns the cluster size.
|
ServerClusterType |
getServerClusterType()
Deprecated.
Return the ServerClusterType configured for this class.
|
ServerConnection |
getServerConnection()
Deprecated.
Method that returns a connection to the SOM machine based on
the ServerClusterType that has been configured on this class.
|
java.lang.String |
getUserDomain()
Deprecated.
Return the user domain that is used to connect to a SOM.
|
java.lang.String |
getUserName()
Deprecated.
Return the username that is used to connect to a SOM.
|
java.lang.String |
getUserPassword()
Deprecated.
Return the user password that is used to connect to a SOM.
|
boolean |
hasServer()
Deprecated.
Returns true if there is atleast 1 SOM in the list.
|
java.lang.String |
peek()
Deprecated.
This method returns the name of the host to which this class
will attempt to connect next (for any thread) based on the configured
clustering algorithm without actually making a connection.
|
void |
removeSOM(java.lang.String som)
Deprecated.
Remove a SOM from the list
|
void |
setConfigurationToCheck(java.lang.String serverObjectName,
java.lang.String serverObjectType)
Deprecated.
Method to set configuration information to check when connected to SOMs.
|
void |
setCredentials(java.lang.String domain,
java.lang.String username,
java.lang.String password)
Deprecated.
Set the credentials to use while connecting
to the SOM
|
void |
setReconnectTimeInMins(int timeInMins)
Deprecated.
Function to set a time value in mins after which time
this class will attempt to reconnect to a bad SOM.
|
public ServerCluster2(java.util.Collection soms, ServerClusterType serverClusterType)
Collection
- - list of SOM machine namesServerClusterType
- - clustering algorithmpublic ServerCluster2(java.util.Collection soms, ServerClusterType serverClusterType, java.lang.String domain, java.lang.String username, java.lang.String password)
soms
- - list of SOM machines for clustering.serverClusterType
- - clustering algorithm.domain
- - String representing the domain of the userusername
- - String representing the name of the userpassword
- - String representing the password of the userpublic void setConfigurationToCheck(java.lang.String serverObjectName, java.lang.String serverObjectType)
serverObjectName
- - String representing the server object.serverObjectType
- - String representing the server object type.public void setReconnectTimeInMins(int timeInMins)
public int getReconnectTimeInMins()
public ServerConnection getServerConnection() throws SOMNotAvailableException
SOMNotAvailableException
- - when there are no SOM machines to
connect to.public java.lang.String peek()
public void addSOM(java.lang.String som) throws java.lang.NullPointerException
java.lang.NullPointerException
public void removeSOM(java.lang.String som) throws java.lang.NullPointerException
java.lang.NullPointerException
public void setCredentials(java.lang.String domain, java.lang.String username, java.lang.String password)
public ServerClusterType getServerClusterType()
public java.lang.String getUserName()
public java.lang.String getUserPassword()
public java.lang.String getUserDomain()
public boolean hasServer()
public int getServerClusterSize()