|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.adf.web.ags.data.AGSLocalConnection
An ArcGIS server resource. It can be of type MapServer or GeocodeServer. This class establishes a connection to the server, holds on to the server parameters and can activate() and passivate() the connections as required. It also provides convenience methods to create server objects within the server context as well as methods to save and load objects to and from their XML representations.
| Field Summary | |
protected com.esri.arcgis.server.ServerCluster |
cluster
|
protected java.lang.String |
configTypeName
The config type of this resource. |
protected com.esri.arcgis.server.ServerConnection |
connection
The IServerConnection object. |
protected java.lang.String |
currentHost
The name of the machine which hosts the ArcGIS server. |
static java.lang.String |
FAIL_OVER
The fail-over cluster type. |
protected java.util.List |
hosts
|
protected boolean |
init
|
protected com.esri.arcgis.server.IServerObjectManager |
manager
The server object manager |
static java.lang.String |
NONE_CLUSTER_TYPE
No cluster type supported. |
protected boolean |
pooled
Indicates whether the associated server object is pooled or not. |
static java.lang.String |
ROUND_ROBIN
The round-robin cluster type. |
protected com.esri.arcgis.server.ServerClusterType |
serverClusterType
|
protected com.esri.arcgis.server.IServerContext |
serverContext
The IServerContext of this resource |
protected com.esri.arcgis.server.IServerObject |
serverObject
The IServerObject running within this context |
protected java.lang.String |
serverObjectName
The name by which the server object in question can be accessed on the server. |
protected AGSUser |
user
|
| Constructor Summary | |
AGSLocalConnection()
|
|
AGSLocalConnection(java.lang.String serverObjectName,
java.util.List hosts,
java.lang.String configTypeName,
java.lang.String clusterType,
AGSUser user)
|
|
| Method Summary | |
void |
activateResource()
|
void |
addHost(java.lang.String host)
|
java.lang.Object |
createArcObject(java.lang.String progId)
Creates an ArcObject with this progId in the current server context. |
boolean |
equals(java.lang.String resource)
Determines whether the resource string represents this AGSLocalConnection. |
java.lang.String |
getClusterType()
|
java.lang.String |
getConfigTypeName()
|
java.lang.String |
getCurrentHost()
|
java.util.List |
getHosts()
|
com.esri.arcgis.server.ServerConnection |
getServerConnection()
Returns the ServerConnection object from the server. |
com.esri.arcgis.server.IServerContext |
getServerContext()
Returns the IServerContext object from the server. |
com.esri.arcgis.server.IServerObject |
getServerObject()
Returns the IServerObject from the server. |
com.esri.arcgis.server.IServerObjectManager |
getServerObjectManager()
Returns the IServerObjectManager object from the server. |
java.lang.String |
getServerObjectName()
|
AGSUser |
getUser()
|
void |
initResource()
|
boolean |
isPooled()
Returns an indicator of whether the server object is pooled or not. |
java.lang.Object |
loadObject(java.lang.String xml)
Deserializes the string to a server object by calling the loadObject method on the AGSWebContext. |
void |
passivateResource()
|
java.lang.String |
saveObject(java.lang.Object persistObj)
Serializes a server object to a String. |
void |
setClusterType(java.lang.String clusterType)
|
void |
setConfigTypeName(java.lang.String configTypeName)
|
void |
setHosts(java.util.List hosts)
|
void |
setServerObjectName(java.lang.String serverObjectName)
|
void |
setUser(AGSUser user)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String NONE_CLUSTER_TYPE
public static final java.lang.String FAIL_OVER
public static final java.lang.String ROUND_ROBIN
protected com.esri.arcgis.server.ServerConnection connection
protected com.esri.arcgis.server.IServerObject serverObject
protected com.esri.arcgis.server.IServerContext serverContext
protected com.esri.arcgis.server.IServerObjectManager manager
protected boolean pooled
protected java.lang.String serverObjectName
protected java.lang.String currentHost
protected java.lang.String configTypeName
protected com.esri.arcgis.server.ServerCluster cluster
protected com.esri.arcgis.server.ServerClusterType serverClusterType
protected boolean init
protected java.util.List hosts
protected AGSUser user
| Constructor Detail |
public AGSLocalConnection()
public AGSLocalConnection(java.lang.String serverObjectName,
java.util.List hosts,
java.lang.String configTypeName,
java.lang.String clusterType,
AGSUser user)
| Method Detail |
public void initResource()
public void activateResource()
public void passivateResource()
public java.lang.Object createArcObject(java.lang.String progId)
progId - the class id
Object- the ArcObject represented by this progIdpublic java.lang.String saveObject(java.lang.Object persistObj)
persistObj - the object to store
String- a string representation of the objectpublic java.lang.Object loadObject(java.lang.String xml)
AGSWebContext.
xml - the string representation of the server object
Object- the loaded Objectpublic boolean equals(java.lang.String resource)
resource - the resource string
public com.esri.arcgis.server.IServerObject getServerObject()
IServerObject from the server.
IServerObject- the IServerObjectpublic com.esri.arcgis.server.ServerConnection getServerConnection()
ServerConnection object from the server.
ServerConnection- the ServerConnection objectpublic com.esri.arcgis.server.IServerContext getServerContext()
IServerContext object from the server.
IServerContext- the IServerContext objectpublic com.esri.arcgis.server.IServerObjectManager getServerObjectManager()
IServerObjectManager object from the server.
IServerObjectManager- the IServerObjectMananger objectpublic java.lang.String getServerObjectName()
public java.util.List getHosts()
public java.lang.String getConfigTypeName()
public java.lang.String getClusterType()
public AGSUser getUser()
public boolean isPooled()
public void setServerObjectName(java.lang.String serverObjectName)
public void setHosts(java.util.List hosts)
public void addHost(java.lang.String host)
public java.lang.String getCurrentHost()
public void setConfigTypeName(java.lang.String configTypeName)
public void setClusterType(java.lang.String clusterType)
public void setUser(AGSUser user)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||