|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.admin.Server
public class Server
Implements a proxy object for a site Monitor.
Field Summary | |
---|---|
static int |
ALL_ACCESS
|
static int |
COMPONENT_ACCESS
|
static int |
COMPONENT_ALLOWED
|
static int |
COMPONENT_THREADS
|
static int |
PRIVATE_ACCESS
|
static int |
PUBLIC_ACCESS
|
Constructor Summary | |
---|---|
Server()
Constructs a new Server object. |
Method Summary | |
---|---|
void |
addComponent(String containerID,
String vsType,
String version,
String access,
String runningThreads,
String allowed)
Adds a component for this container. |
boolean |
addContainer(ConnectionProxy connection)
Adds a container to this ArcIMS Monitor. |
void |
addContainerID(String id)
Adds the container with given ID to the list of containers associated with this object. |
void |
addVirtualServerType(String type,
String version,
String access)
Adds a new type of VirtualServer to this object. |
boolean |
containsVirtualServerType(String type,
String version)
Returns true if the defined VirtualServer type and version exist on this server. |
String |
getContainerAttribute(int attribute,
String containerID,
String vsType,
String version)
Retrieve an attribute for this container based on the type of virtual server. |
int |
getContainerCount()
Returns the number of containers associated with this monitor. |
String[] |
getContainerIDs()
Returns a list of the container names. |
String |
getName()
Returns the name of this Server. |
static Server |
getServer(String monitorName,
ConnectionProxy connection)
Returns a Server for the given monitorName and
ConnnectionProxy . |
String |
getVirtualServerAccess(String type,
String version)
Returns the access level for a VirtualServer. |
String[] |
getVirtualServerTypes()
Returns the VirtualServer types associated with this object. |
String[] |
getVirtualServerTypesOfAccess(int access)
Returns VirtualServer types for a given access. |
boolean |
removeContainer(String id,
ConnectionProxy connection)
Removes a container with given identifier from this ArcIMS Monitor. |
void |
removeContainerID(String id)
Removes a container with given ID from the list of containers associated with this object. |
void |
removeVirtualServerType(String type,
String version)
Removes a new VirtualServer type to this object. |
void |
setName(String name)
Sets the name of the Server with given string. |
String |
toString()
Overwrites Object.toString(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PUBLIC_ACCESS
public static final int PRIVATE_ACCESS
public static final int ALL_ACCESS
public static final int COMPONENT_ACCESS
public static final int COMPONENT_THREADS
public static final int COMPONENT_ALLOWED
Constructor Detail |
---|
public Server()
Server
object.
Method Detail |
---|
public static Server getServer(String monitorName, ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
monitorName
and
ConnnectionProxy
.
monitorName
- the name of the Monitorconnection
- the ConnectionProxy object
ConnectionParameterException,
- when the parameters used to
initialize a MetadataConnectionProxy contain errors.
AuthenticationException,
- when the ConnectionProxy
cannot validate
the user and/or the password supplied.
UnableToPingEsrimapException,
- when trying to construct a
BaseEsrimap and the code is unable to ping the ESRIMAP.
AXLAttributeException,
- when an error occurs during reading
or writing an AXL attribute.
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
SAXException
public void setName(String name)
public String getName()
public boolean addContainer(ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
connection
- the ConnectionProxy object.
ConnectionParameterException,
- when the parameters used to
initialize a MetadataConnectionProxy contain errors.
AuthenticationException,
- when the ConnectionProxy
cannot validate
the user and/or the password supplied.
UnableToPingEsrimapException,
- when trying to construct a
BaseEsrimap and the code is unable to ping the ESRIMAP.
AXLAttributeException,
- when an error occurs during reading
or writing an AXL attribute.
ErrorAndWarningException,
- when an ERROR or WARNING response is received.
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
SAXException
public boolean removeContainer(String id, ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
connection
- the ConnectionProxy object.id
- the identifier of the Container to be removed.
ConnectionParameterException,
- when the parameters used to
initialize a MetadataConnectionProxy contain errors.
AuthenticationException,
- when the ConnectionProxy
cannot validate
the user and/or the password supplied.
UnableToPingEsrimapException,
- when trying to construct a
BaseEsrimap and the code is unable to ping the ESRIMAP.
AXLAttributeException,
- when an error occurs during reading
or writing an AXL attribute.
ErrorAndWarningException,
- when an ERROR or WARNING response is received.
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
SAXException
public int getContainerCount()
public String[] getContainerIDs()
public void addContainerID(String id)
addContainer
method.
id
- the identifier of the container that is to be added to the internal
list of this server.addContainer(com.esri.aims.mtier.io.ConnectionProxy)
public void removeContainerID(String id)
removeContainer
method.
id
- the identifier of the container that needs to be removed from the
internal list of this server.removeContainer(java.lang.String, com.esri.aims.mtier.io.ConnectionProxy)
public void addComponent(String containerID, String vsType, String version, String access, String runningThreads, String allowed)
containerID
- the id of the containervsType
- the virtual server type string.version
- the version associated with the virtual server type.access
- the type of access for this virtual server type.runningThreads
- how many threads of this type are running on the container.allowed
- whether or not more instances of this type are allowed in the container.public String getContainerAttribute(int attribute, String containerID, String vsType, String version)
attribute
- the attribute to retrieve (COMPONENT_ALLOWED, COMPONENT_THREADS,
COMPONENT_ACCESS).containerID
- the id of the containervsType
- the virtual server type string.version
- the version associated with the virtual server type.public void addVirtualServerType(String type, String version, String access)
type
- the VirtualServer type (example: "ImageServer")version
- the version of this VirtualServer type (example: "ArcMap")access
- the access level of this type.public void removeVirtualServerType(String type, String version)
type
- The VirtualServer type (e.g. "ImageServer")version
- The version of this VirtualServer type (e.g. "ArcMap")public boolean containsVirtualServerType(String type, String version)
type
- The VirtualServer type (e.g. "ImageServer")version
- The version of this VirtualServer type (e.g. "ArcMap")public String[] getVirtualServerTypes()
type,version
. An example would be
ImageServer,ArcMap
. Has the same effect as calling
getVirtualServerTypesOfAccess(ALL_ACCESS).
public String[] getVirtualServerTypesOfAccess(int access)
PUBLIC_ACCESS
,
PRIVATE_ACCESS
,
ALL_ACCESS
,
getVirtualServerTypes()
public String getVirtualServerAccess(String type, String version)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |