public class Log extends Object
| Constructor and Description |
|---|
Log(NXCSession session,
org.netxms.base.NXCPMessage msg,
String name)
Create log object from server's reply to CMD_LOG_OPEN.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close log
|
protected void |
finalize() |
LogColumn |
getColumn(String columnName)
Get column object by column name.
|
String |
getColumnDescription(String columnName)
Get description for given column name.
|
Collection<LogColumn> |
getColumns()
Get column information
|
String |
getName()
Get log name.
|
long |
getNumRecords()
Get number of records available on server after successful query() call.
|
void |
query(LogFilter filter)
Send query to server
|
Table |
retrieveData(long startRow,
long rowCount)
Retrieve log data from server.
|
Table |
retrieveData(long startRow,
long rowCount,
boolean refresh)
Retrieve log data from server.
|
String |
toString() |
public Log(NXCSession session, org.netxms.base.NXCPMessage msg, String name)
session - Client sessionmsg - NXCP message with server's replypublic String getName()
public Collection<LogColumn> getColumns()
public String getColumnDescription(String columnName)
columnName - Column namepublic LogColumn getColumn(String columnName)
columnName - Column namepublic void query(LogFilter filter) throws IOException, NXCException
filter - Log filterIOExceptionNXCExceptionpublic Table retrieveData(long startRow, long rowCount) throws IOException, NXCException
startRow - start row to retrieverowCount - number of rows to retrieveIOExceptionNXCExceptionpublic Table retrieveData(long startRow, long rowCount, boolean refresh) throws IOException, NXCException
startRow - start row to retrieverowCount - number of rows to retrieverefresh - if set to true, server will reload data from database instead of using cacheIOExceptionNXCExceptionpublic long getNumRecords()
public void close()
throws IOException,
NXCException
IOException - if socket I/O error occursNXCException - if NetXMS server returns an error or operation was timed outprotected void finalize()
throws Throwable
Copyright © 2015. All rights reserved.