com.esri.arcgis.server
Class ServerMachineStatus

java.lang.Object
  extended by com.esri.arcgis.server.ServerMachineStatus
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IServerMachineInfo, IServerMachineStatus, Serializable

public class ServerMachineStatus
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IServerMachineStatus, IServerMachineInfo

The ServerMachineStatus object which reports the status of a server host machine.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Constructor Summary
ServerMachineStatus(Object obj)
          Construct a ServerMachineStatus using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 int getInstanceCount(int access)
          The number of server object instances currently running in this SOC machine.
 int getInstanceInUseCount(int access)
          The number of currently running server object instances in use by clients of this SOC machine.
 int getNumberOfProcessors()
          Number of processors.
 int hashCode()
          the hashcode for this object
 boolean isEnabled()
          Indicates if machine is connected and can be used by server(true) or not(false).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

ServerMachineStatus

public ServerMachineStatus(Object obj)
                    throws IOException
Construct a ServerMachineStatus using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to ServerMachineStatus.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
ServerMachineStatus o = (ServerMachineStatus)obj; // will not work

ServerMachineStatus o = new ServerMachineStatus(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems ServerMachineStatus theServerMachineStatus = (ServerMachineStatus) obj;
Method Detail

equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getInstanceCount

public int getInstanceCount(int access)
                     throws IOException,
                            AutomationException
The number of server object instances currently running in this SOC machine.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getInstanceCount in interface IServerMachineStatus
Parameters:
access - A com.esri.arcgis.server.esriAccessLevel constant (in)
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getInstanceInUseCount

public int getInstanceInUseCount(int access)
                          throws IOException,
                                 AutomationException
The number of currently running server object instances in use by clients of this SOC machine.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getInstanceInUseCount in interface IServerMachineStatus
Parameters:
access - A com.esri.arcgis.server.esriAccessLevel constant (in)
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isEnabled

public boolean isEnabled()
                  throws IOException,
                         AutomationException
Indicates if machine is connected and can be used by server(true) or not(false).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isEnabled in interface IServerMachineStatus
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNumberOfProcessors

public int getNumberOfProcessors()
                          throws IOException,
                                 AutomationException
Number of processors.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getNumberOfProcessors in interface IServerMachineInfo
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.