|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.aims.mtier.model.admin.VirtualServer
public class VirtualServer
Implements a proxy for a Site's virtual server.
Field Summary | |
---|---|
static int |
ACCESS_PRIVATE
|
static int |
ACCESS_PUBLIC
|
Constructor Summary | |
---|---|
VirtualServer()
Constructs a new VirtualServer object. |
Method Summary | |
---|---|
void |
addContainer(String containerName,
int threads)
Adds a new containers with the given number of threads to this virtual server. |
boolean |
addVirtualServer(ConnectionProxy connection)
Adds a VirtualServer to the site that is represented by this object. |
void |
changeContainer(String containerName,
int threads)
Changes a container threadcount for this virtual server. |
boolean |
changeVirtualServer(ConnectionProxy connection)
Changes the VirtualServer on the site that is represented by this object. |
int |
getAccess()
Returns the access of an ArcIMS virtual server. |
static int |
getAccessInt(String access)
Returns the integer representing the specified access string. |
String |
getAccessString()
Returns the access of an ArcIMS virtual server as a String. |
Set |
getContainerSet()
Returns a set of all of the containers contained in this VirtualServer. |
String |
getDescription()
Returns the current description of this virtual server. |
String |
getName()
Returns the name of the virtual server. |
String |
getRecyclingFrequency()
Returns the recycling frequency of a virtual server. |
String |
getRecyclingHour()
Returns the recycling hour of a virtual server. |
String |
getRecyclingMinute()
Returns the recycling minute of a virtual server. |
int |
getThreadsForContainer(String containerID)
Returns the current number of threads associated with a given container. |
String |
getType()
Returns the type of virtual server. |
String |
getVersion()
Returns the version of an image server. |
static VirtualServer |
getVirtualServer(String name,
ConnectionProxy connection)
Given the ConnectionProxy, this method returns the specified VirtualServer object that represents the VirtualServer in the site AppServer. |
void |
removeContainer(String containerID)
Removes the threads for a given container. |
boolean |
removeVirtualServer(ConnectionProxy connection)
Removes the VirtualServer on the site that is represented by this object. |
void |
setAccess(int access)
Sets the access of an ArcIMS virtual server. |
void |
setDescription(String desc)
Sets the description of the virtual server. |
void |
setName(String name)
Sets the name of this VirtualServer. |
void |
setRecyclingFrequency(String recyclingFrequency)
Sets the recycling frequency of the virtual server represented by this object. |
void |
setRecyclingHour(String recyclingHour)
Sets the recycling hour of the virtual server represented by this object. |
void |
setRecyclingMinute(String recyclingMinute)
Sets the recycling minute of the virtual server represented by this object. |
void |
setType(String serverType)
Sets the type of virtual server. |
void |
setVersion(String version)
Sets the version of the virtual server represented by this object. |
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 ACCESS_PUBLIC
public static final int ACCESS_PRIVATE
Constructor Detail |
---|
public VirtualServer()
VirtualServer
object.
Method Detail |
---|
public static VirtualServer getVirtualServer(String name, ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
name
- The name of the VirtualServer to get.connection
- The ConnnectionProxy for a specific ArcIMS site.
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
SAXException
VirtualServerCollection.getVirtualServers(ConnectionProxy)
public String getName()
public void setName(String name)
public void setType(String serverType)
serverType
- The type of virtual server to set this to.public String getType()
public void setVersion(String version)
version
- The version of the virtual server.public String getVersion()
public void setRecyclingHour(String recyclingHour)
recyclingHour
- The recycling hour of the virtual server.public String getRecyclingHour()
public void setRecyclingMinute(String recyclingMinute)
recyclingMinute
- The recycling minute of the virtual server.public String getRecyclingMinute()
public void setRecyclingFrequency(String recyclingFrequency)
recyclingFrequency
- The recycling frequency of the virtual server.public String getRecyclingFrequency()
public void setAccess(int access)
access
- The access level to set the virtual server at. These values are
defined as static integers in this class.public int getAccess()
public String getAccessString()
public void setDescription(String desc)
desc
- The new description of this virtual server.public String getDescription()
public void addContainer(String containerName, int threads)
containerName
- The name of the container to add.threads
- The number of threads to add to this virtual server.public void changeContainer(String containerName, int threads)
containerName
- The name of the container to change.threads
- The number of threads to set for this virtual server.public int getThreadsForContainer(String containerID)
containerID
- The ID of the container to check the threads for.
public void removeContainer(String containerID)
containerID
- The ID of the container that should be removed.public Set getContainerSet()
public boolean addVirtualServer(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 configured to connect to a
particular machine.
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 changeVirtualServer(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 configured to connect to a
particular machine.
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 removeVirtualServer(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 configured to connect to a
particular machine.
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 static int getAccessInt(String access)
access
- The String representing the access type (Example: "public").
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |