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, java.io.Serializable

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

COM Class 'ServerMachineStatus'. Generated 3/19/2015 1:20:47 PM from 'C:\ArcGIS\COM\esriServer.olb'

Description 'The ServerMachineStatus object which reports the status of a server host machine.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.server.IServerMachineStatus
IID, IID67e836a4_01f1_450c_97be_21ab9a3f3c11, xxDummy
 
Fields inherited from interface com.esri.arcgis.server.IServerMachineInfo
IID, IID76c3bba1_aacf_40a1_bdee_b3fa28840979, xxDummy
 
Constructor Summary
ServerMachineStatus(java.lang.Object obj)
          Construct a ServerMachineStatus using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(java.lang.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.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 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).
 void release()
          Release a ServerMachineStatus.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerMachineStatus

public ServerMachineStatus(java.lang.Object obj)
                    throws java.io.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:
java.io.IOException - if there are interop problems ServerMachineStatus theServerMachineStatus = (ServerMachineStatus) obj;
Method Detail

equals

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

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a ServerMachineStatus.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getInstanceCount

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

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

getInstanceInUseCount

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

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

isEnabled

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

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

getNumberOfProcessors

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

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