|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.server.ServerConnection com.esri.arcgis.server.ServerCluster3
public class ServerCluster3
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.
Field Summary |
---|
Fields inherited from interface com.esri.arcgis.server.IServerConnection |
---|
IID, IID425b0a5b_bf1b_4f0e_9e75_37324a12e5f9, xxDummy |
Constructor Summary | |
---|---|
ServerCluster3(Collection soms,
ServerClusterType serverClusterType)
Constructor that takes in a list of machine names and the clustering algorithm. |
|
ServerCluster3(Collection soms,
ServerClusterType serverClusterType,
String domain,
String username,
String password)
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)
Add SOM to list |
IServer |
getAsIServer()
Access this COM class's com.esri.arcgis.server.IServer interface |
String |
getHostName()
Returns the name of the server machine to which this connection was created. |
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
J-Integra internal method |
protected String |
getJintegraVersion()
|
Object |
getPropertyByName(String name)
getPropertyByName. |
Object |
getPropertyByName(String name,
Object rhs)
getPropertyByName. |
int |
getReconnectTimeInMins()
Function to get the time value in mins after which time this class will attempt to reconnect to a bad SOM. |
int |
getServerClusterSize()
Returns the cluster size. |
ServerClusterType |
getServerClusterType()
Return the ServerClusterType configured for this class. |
ServerCluster3 |
getServerConnection()
Method that returns a ServerCluster, that has a connection to the SOM machine based on the ServerClusterType that has been configured on this class. |
IServerObjectAdmin |
getServerObjectAdmin()
getServerObjectAdmin. |
IServerObjectManager |
getServerObjectManager()
getServerObjectManager. |
IServerObjectManager |
getServerObjectManager2(String userInfo)
getServerObjectManager2. |
String |
getUserDomain()
Return the user domain that is used to connect to a SOM. |
String |
getUserName()
Return the username that is used to connect to a SOM. |
String |
getUserPassword()
Return the user password that is used to connect to a SOM. |
int |
hashCode()
the hashcode for this object |
boolean |
hasServer()
Returns true if there is atleast 1 SOM in the list. |
Object |
invokeMethodByName(String name,
Object[] parameters)
invokeMethodByName. |
String |
peek()
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 |
release()
Release a Server. |
void |
removeSOM(String som)
Remove a SOM from the list |
void |
setConfigurationToCheck(String serverObjectName,
String serverObjectType)
Method to set configuration information to check when connected to SOMs. |
void |
setCredentials(String domain,
String username,
String password)
Set the credentials to use while connecting to the SOM |
void |
setReconnectTimeInMins(int timeInMins)
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 com.esri.arcgis.server.ServerConnection |
---|
bindUsingMoniker, connect, connect, equals, getActiveObject, getClsid |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerCluster3(Collection soms, ServerClusterType serverClusterType) throws UnknownHostException, IOException
Collection
- - list of SOM machine namesServerClusterType
- - clustering algorithm
IOException
UnknownHostException
public ServerCluster3(Collection soms, ServerClusterType serverClusterType, String domain, String username, String password) throws UnknownHostException, IOException
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 user
IOException
UnknownHostException
Method 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 ServerCluster3 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()
public IServerObjectAdmin getServerObjectAdmin() throws IOException, AutomationException
ServerConnection
getServerObjectAdmin
in interface IServerConnection
getServerObjectAdmin
in class ServerConnection
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public IServerObjectManager getServerObjectManager() throws IOException, AutomationException
ServerConnection
getServerObjectManager
in interface IServerConnection
getServerObjectManager
in class ServerConnection
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public IServerObjectManager getServerObjectManager2(String userInfo) throws IOException, AutomationException
ServerConnection
getServerObjectManager2
in class ServerConnection
userInfo
- String
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public IServer getAsIServer()
ServerConnection
getAsIServer
in class ServerConnection
public Object getPropertyByName(String name, Object rhs) throws NoSuchFieldException, IOException, AutomationException
ServerConnection
getPropertyByName
in class ServerConnection
name
- The name of the property to get.rhs
- A parameter used when getting the proxy
NoSuchFieldException
- If the property does not exit.
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public Object getPropertyByName(String name) throws NoSuchFieldException, IOException, AutomationException
ServerConnection
getPropertyByName
in class ServerConnection
name
- The name of the property to get.
NoSuchFieldException
- If the property does not exit.
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public Object invokeMethodByName(String name, Object[] parameters) throws NoSuchMethodException, IOException, AutomationException
ServerConnection
invokeMethodByName
in class ServerConnection
name
- The name of the method to be invokedparameters
- One element for each parameter. Use primitive type wrappers
to pass primitive types (eg Integer to pass an int).
NoSuchMethodException
- If the method does not exit.
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public String getHostName()
ServerConnection
getHostName
in class ServerConnection
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
ServerConnection
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch
in class ServerConnection
protected String getJintegraVersion()
getJintegraVersion
in class ServerConnection
public int hashCode()
ServerConnection
hashCode
in class ServerConnection
public void release()
ServerConnection
release
in interface com.esri.arcgis.interop.RemoteObjRef
release
in class ServerConnection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |