|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IServerLogQuery
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).
Method Summary | |
---|---|
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 |
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. |
Method Detail |
---|
Date getStartTime() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setStartTime(Date pTime) throws IOException, AutomationException
pTime
- The pTime (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Date getEndTime() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setEndTime(Date pTime) throws IOException, AutomationException
pTime
- The pTime (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTarget(String pName) throws IOException, AutomationException
pName
- The pName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getMachine() throws IOException, AutomationException
The Machine property refers to the name of a particular SOC machine in your ArcGIS Server system.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMachine(String pMachine) throws IOException, AutomationException
pMachine
- The pMachine (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLevel(int pLevel) throws IOException, AutomationException
pLevel
- The pLevel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxRecords() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaxRecords(int pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getStartIndex() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setStartIndex(int pVal) throws IOException, AutomationException
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 |