|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.server.ServerCluster2
@Deprecated public class ServerCluster2
ServerCluster is deprecated as of 10.0, Use ServerCluster, ServerCluster allows caching SOM connections to improve performance. Use this class to get a ServerConnection object or IServerObjectManager interface to a SOM machine based on the clustering configuration. You can choose between various types defined in ServerClusterType class. This class will attempt to give you a connection to SOM from the input list of SOM machines. This class is thread safe and does not block other threads for long periods of time which could be caused due to communication error.
Constructor Summary | |
---|---|
ServerCluster2(Collection soms,
ServerClusterType serverClusterType)
Deprecated. Constructor that takes in a list of machine names and the clustering algorithm. |
|
ServerCluster2(Collection soms,
ServerClusterType serverClusterType,
String domain,
String username,
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. |
Method Summary | |
---|---|
void |
addSOM(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. |
String |
getUserDomain()
Deprecated. Return the user domain that is used to connect to a SOM. |
String |
getUserName()
Deprecated. Return the username that is used to connect to a SOM. |
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. |
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(String som)
Deprecated. Remove a SOM from the list |
void |
setConfigurationToCheck(String serverObjectName,
String serverObjectType)
Deprecated. Method to set configuration information to check when connected to SOMs. |
void |
setCredentials(String domain,
String username,
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerCluster2(Collection soms, ServerClusterType serverClusterType)
Collection
- - list of SOM machine namesServerClusterType
- - clustering algorithmpublic ServerCluster2(Collection soms, ServerClusterType serverClusterType, String domain, String username, 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 userMethod Detail |
---|
public void setConfigurationToCheck(String serverObjectName, 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 String peek()
public void addSOM(String som) throws NullPointerException
NullPointerException
public void removeSOM(String som) throws NullPointerException
NullPointerException
public void setCredentials(String domain, String username, String password)
public ServerClusterType getServerClusterType()
public String getUserName()
public String getUserPassword()
public String getUserDomain()
public boolean hasServer()
public int getServerClusterSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |