|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.server.IServerLogQueryProxy
public class IServerLogQueryProxy
Provides access to members that configure a query to the ArcGIS Server logs.
The IServerLogQuery interface is retrieved from the CreateQuery method of the IServerLog interface. After populating its properties, the IServerLogQuery interface is used as an argument to the GetLogRecords method of the IServerLog interface.
The StartTime and EndTime properties can be set programmatically (i.e. not hard coded) by getting a time interval from the IServerTimeRange interface via the IServerStatistics interface (see code example).
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IServerLogQueryProxy()
|
|
IServerLogQueryProxy(Object obj)
|
protected |
IServerLogQueryProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
Date |
getEndTime()
The end time in the ArcGIS Server logs at which to end the query. |
int |
getLevel()
The log level at which to query (1-5). |
String |
getMachine()
The machine name for which to query. |
int |
getMaxRecords()
The maximum number of records to retrieve with the query. |
int |
getStartIndex()
The starting index at which to start retrieving records from the query. |
Date |
getStartTime()
The start time in the ArcGIS Server logs at which to begin the query. |
String |
getTarget()
The log target name. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setEndTime(Date pTime)
The end time in the ArcGIS Server logs at which to end the query. |
void |
setLevel(int pLevel)
The log level at which to query (1-5). |
void |
setMachine(String pMachine)
The machine name for which to query. |
void |
setMaxRecords(int pVal)
The maximum number of records to retrieve with the query. |
void |
setStartIndex(int pVal)
The starting index at which to start retrieving records from the query. |
void |
setStartTime(Date pTime)
The start time in the ArcGIS Server logs at which to begin the query. |
void |
setTarget(String pName)
The log target name. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IServerLogQueryProxy()
public IServerLogQueryProxy(Object obj) throws IOException
IOException
protected IServerLogQueryProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public Date getStartTime() throws IOException, AutomationException
getStartTime
in interface IServerLogQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setStartTime(Date pTime) throws IOException, AutomationException
setStartTime
in interface IServerLogQuery
pTime
- The pTime (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Date getEndTime() throws IOException, AutomationException
getEndTime
in interface IServerLogQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEndTime(Date pTime) throws IOException, AutomationException
setEndTime
in interface IServerLogQuery
pTime
- The pTime (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getTarget() throws IOException, AutomationException
The Target property refers to the name of objects running in the server. For example, "Server", "SDM.ServerDirectoryManager", "SrvLog.ServerLog", and the various server object configurations that have been deployed.
getTarget
in interface IServerLogQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTarget(String pName) throws IOException, AutomationException
setTarget
in interface IServerLogQuery
pName
- The pName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getMachine() throws IOException, AutomationException
The Machine property refers to the name of a particular SOC machine in your ArcGIS Server system.
getMachine
in interface IServerLogQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMachine(String pMachine) throws IOException, AutomationException
setMachine
in interface IServerLogQuery
pMachine
- The pMachine (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getLevel() throws IOException, AutomationException
LogLevel: this is a number between 0 and 5 which indicates the level of detail that the server logs. By default, the LogLevel is 3. The following is a description of the each log level:
Querying for a specific log level will return log entries for that log level and below.
getLevel
in interface IServerLogQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLevel(int pLevel) throws IOException, AutomationException
setLevel
in interface IServerLogQuery
pLevel
- The pLevel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMaxRecords() throws IOException, AutomationException
getMaxRecords
in interface IServerLogQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMaxRecords(int pVal) throws IOException, AutomationException
setMaxRecords
in interface IServerLogQuery
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getStartIndex() throws IOException, AutomationException
getStartIndex
in interface IServerLogQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setStartIndex(int pVal) throws IOException, AutomationException
setStartIndex
in interface IServerLogQuery
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |