public class ServerCluster3 extends ServerConnection implements java.io.Serializable
IID, IID425b0a5b_bf1b_4f0e_9e75_37324a12e5f9, xxDummy| Constructor and Description |
|---|
ServerCluster3(java.util.Collection soms,
ServerClusterType serverClusterType)
Constructor that takes in a list of machine names and the clustering
algorithm.
|
ServerCluster3(java.util.Collection soms,
ServerClusterType serverClusterType,
java.lang.String domain,
java.lang.String username,
java.lang.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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSOM(java.lang.String som)
Add SOM to list
|
IServer |
getAsIServer()
Access this COM class's com.esri.arcgis.server.IServer interface
|
java.lang.String |
getHostName()
Returns the name of the server machine to which this connection was created.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
protected java.lang.String |
getJintegraVersion() |
java.lang.Object |
getPropertyByName(java.lang.String name)
getPropertyByName.
|
java.lang.Object |
getPropertyByName(java.lang.String name,
java.lang.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(java.lang.String userInfo)
getServerObjectManager2.
|
java.lang.String |
getUserDomain()
Return the user domain that is used to connect to a SOM.
|
java.lang.String |
getUserName()
Return the username that is used to connect to a SOM.
|
java.lang.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.
|
java.lang.Object |
invokeMethodByName(java.lang.String name,
java.lang.Object[] parameters)
invokeMethodByName.
|
java.lang.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 this COM object reference
|
void |
removeSOM(java.lang.String som)
Remove a SOM from the list
|
void |
setConfigurationToCheck(java.lang.String serverObjectName,
java.lang.String serverObjectType)
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)
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.
|
bindUsingMoniker, connect, connect, equals, getActiveObject, getClsidpublic ServerCluster3(java.util.Collection soms,
ServerClusterType serverClusterType)
throws java.net.UnknownHostException,
java.io.IOException
Collection - - list of SOM machine namesServerClusterType - - clustering algorithmjava.io.IOExceptionjava.net.UnknownHostExceptionpublic ServerCluster3(java.util.Collection soms,
ServerClusterType serverClusterType,
java.lang.String domain,
java.lang.String username,
java.lang.String password)
throws java.net.UnknownHostException,
java.io.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 userjava.io.IOExceptionjava.net.UnknownHostExceptionpublic 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 ServerCluster3 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.NullPointerExceptionpublic void removeSOM(java.lang.String som)
throws java.lang.NullPointerException
java.lang.NullPointerExceptionpublic 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()
public IServerObjectAdmin getServerObjectAdmin() throws java.io.IOException, AutomationException
ServerConnectiongetServerObjectAdmin in interface IServerConnectiongetServerObjectAdmin in class ServerConnectionjava.io.IOException - If there are communications problems.AutomationException - If the remote server throws an exception.public IServerObjectManager getServerObjectManager() throws java.io.IOException, AutomationException
ServerConnectiongetServerObjectManager in interface IServerConnectiongetServerObjectManager in class ServerConnectionjava.io.IOException - If there are communications problems.AutomationException - If the remote server throws an exception.public IServerObjectManager getServerObjectManager2(java.lang.String userInfo) throws java.io.IOException, AutomationException
ServerConnectiongetServerObjectManager2 in class ServerConnectionuserInfo - Stringjava.io.IOException - If there are communications problems.AutomationException - If the remote server throws an exception.public IServer getAsIServer()
ServerConnectiongetAsIServer in class ServerConnectionpublic java.lang.Object getPropertyByName(java.lang.String name,
java.lang.Object rhs)
throws java.lang.NoSuchFieldException,
java.io.IOException,
AutomationException
ServerConnectiongetPropertyByName in class ServerConnectionname - The name of the property to get.rhs - A parameter used when getting the proxyjava.lang.NoSuchFieldException - If the property does not exit.java.io.IOException - If there are communications problems.AutomationException - If the remote server throws an exception.public java.lang.Object getPropertyByName(java.lang.String name)
throws java.lang.NoSuchFieldException,
java.io.IOException,
AutomationException
ServerConnectiongetPropertyByName in class ServerConnectionname - The name of the property to get.java.lang.NoSuchFieldException - If the property does not exit.java.io.IOException - If there are communications problems.AutomationException - If the remote server throws an exception.public java.lang.Object invokeMethodByName(java.lang.String name,
java.lang.Object[] parameters)
throws java.lang.NoSuchMethodException,
java.io.IOException,
AutomationException
ServerConnectioninvokeMethodByName in class ServerConnectionname - 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).java.lang.NoSuchMethodException - If the method does not exit.java.io.IOException - If there are communications problems.AutomationException - If the remote server throws an exception.public java.lang.String getHostName()
ServerConnectiongetHostName in class ServerConnectionpublic com.esri.arcgis.interop.Dispatch getJintegraDispatch()
ServerConnectiongetJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRefgetJintegraDispatch in class ServerConnectionprotected java.lang.String getJintegraVersion()
getJintegraVersion in class ServerConnectionpublic int hashCode()
ServerConnectionhashCode in class ServerConnectionpublic void release()
ServerConnectionrelease in interface com.esri.arcgis.interop.RemoteObjRefrelease in class ServerConnection