com.esri.arcgis.server
Class ServerLogImpl

java.lang.Object
  extended by com.esri.arcgis.server.ServerLogImpl
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IServerLog, IServerLog2, Serializable

public class ServerLogImpl
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IServerLog, IServerLog2

The ServerLogImp1 object which methods to query and retrieve records from the ArcGIS Server logs.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
ServerLogImpl(Object obj)
          Construct a ServerLogImpl using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 IServerLogQuery createQuery()
          Creates an IServerLogQuery for interrogating the ArcGIS server logs.
 boolean equals(Object o)
          Compare this object with another
 String getLogRecords(IServerLogQuery pQuery)
          Retrieves ArcGIS Server log records using an IServerLogQuery.
 int hashCode()
          the hashcode for this object
 void releaseLog()
          Release the server log back to the server so it can be used by another client.
 
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

ServerLogImpl

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

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

Throws:
IOException - if there are interop problems ServerLogImpl theServerLogImpl = (ServerLogImpl) 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

createQuery

public IServerLogQuery createQuery()
                            throws IOException,
                                   AutomationException
Creates an IServerLogQuery for interrogating the ArcGIS server logs.

Remarks

The CreateQuery method returns an IServerLogQuery interface that can be populated and used as an argument to the GetLogRecords method.

Product Availability

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

Specified by:
createQuery in interface IServerLog
Returns:
A reference to a com.esri.arcgis.server.IServerLogQuery
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLogRecords

public String getLogRecords(IServerLogQuery pQuery)
                     throws IOException,
                            AutomationException
Retrieves ArcGIS Server log records using an IServerLogQuery.

Remarks

The GetLogRecords method accepts an IServerLogQuery and returns a string containing the logs matching the IServerLogQuery query parameters.

Product Availability

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

Specified by:
getLogRecords in interface IServerLog
Parameters:
pQuery - A reference to a com.esri.arcgis.server.IServerLogQuery (in)
Returns:
The results
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

releaseLog

public void releaseLog()
                throws IOException,
                       AutomationException
Release the server log back to the server so it can be used by another client.

Product Availability

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

Specified by:
releaseLog in interface IServerLog2
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.