|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netxms.client.NXCSession
public class NXCSession
| Field Summary | |
|---|---|
static int |
AUTH_TYPE_CERTIFICATE
|
static int |
AUTH_TYPE_PASSWORD
|
static int |
CHANNEL_ALARMS
|
static int |
CHANNEL_AUDIT_LOG
|
static int |
CHANNEL_EVENTS
|
static int |
CHANNEL_OBJECTS
|
static int |
CHANNEL_SITUATIONS
|
static int |
CHANNEL_SNMP_TRAPS
|
static int |
CHANNEL_SYSLOG
|
static int |
CLIENT_PROTOCOL_VERSION
|
static int |
DEFAULT_CONN_PORT
|
static int |
USER_MODIFY_ACCESS_RIGHTS
|
static int |
USER_MODIFY_AUTH_METHOD
|
static int |
USER_MODIFY_CERT_MAPPING
|
static int |
USER_MODIFY_DESCRIPTION
|
static int |
USER_MODIFY_FLAGS
|
static int |
USER_MODIFY_FULL_NAME
|
static int |
USER_MODIFY_LOGIN_NAME
|
static int |
USER_MODIFY_MEMBERS
|
| Constructor Summary | |
|---|---|
NXCSession(java.lang.String connAddress,
int connPort,
java.lang.String connLoginName,
java.lang.String connPassword)
|
|
NXCSession(java.lang.String connAddress,
int connPort,
java.lang.String connLoginName,
java.lang.String connPassword,
boolean connUseEncryption)
|
|
NXCSession(java.lang.String connAddress,
java.lang.String connLoginName,
java.lang.String connPassword)
|
|
| Method Summary | |
|---|---|
void |
acknowledgeAlarm(long alarmId)
Acknowledge alarm. |
void |
addListener(NXCListener lst)
Add notification listener |
void |
bindObject(long parentId,
long childId)
Bind object. |
void |
cancelServerJob(long jobId)
Cancel server job |
void |
changeNodeIpAddress(long nodeId,
java.net.InetAddress addr)
Change primary IP address of a node. |
void |
closeAlarm(long alarmId)
Set alarm's helpdesk state to "Closed". |
void |
closeEventProcessingPolicy()
Close event processing policy. |
void |
connect()
Connect to server using previously set credentials. |
long |
createObject(NXCObjectCreationData data)
Create object |
long |
createUser(java.lang.String name)
Create user on server |
long |
createUserGroup(java.lang.String name)
Create user group on server |
void |
deleteAlarm(long alarmId)
Delete alarm. |
void |
deleteEventTemplate(long eventCode)
Delete event template. |
void |
deleteObject(long objectId)
Delete object |
void |
deleteServerVariable(java.lang.String name)
Delete server configuration variable. |
void |
deleteUserDBObject(long id)
Delete user or group on server |
void |
deployAgentPolicy(long policyId,
long nodeId)
Deploy policy on agent |
void |
disconnect()
Disconnect from server. |
void |
executeAction(long nodeId,
java.lang.String action)
Execute action on remote agent |
protected void |
executeSimpleCommand(int command)
Execute simple commands (without arguments and only returning RCC) |
protected void |
finalize()
|
NXCObject[] |
findMultipleObjects(long[] idList)
Find multiple NetXMS objects by identifiers |
NXCObject |
findObjectById(long id)
Find NetXMS object by it's identifier. |
NXCUserDBObject |
findUserDBObjectById(long id)
Find user by ID |
long |
generateEventCode()
Generate code for new event template. |
java.util.HashMap<java.lang.Long,NXCAlarm> |
getAlarms(boolean getTerminated)
Get alarm list. |
NXCObject[] |
getAllObjects()
Get list of all objects |
java.lang.String |
getAttributeForCurrentUser(java.lang.String name)
Get custom attribute for currently logged in user. |
DciData |
getCollectedData(long nodeId,
long dciId,
java.util.Date from,
java.util.Date to,
int maxRows)
Get collected DCI data from server. |
java.lang.String |
getConnClientInfo()
|
java.util.List<EventTemplate> |
getEventTemplates()
Get event templates from server |
DciValue[] |
getLastValues(long nodeId)
Get last DCI values for given node |
int |
getRecvBufferSize()
Get receiver buffer size. |
byte[] |
getServerChallenge()
|
byte[] |
getServerId()
Get NetXMS server UID. |
NXCServerJob[] |
getServerJobList()
Get list of server jobs |
java.lang.String |
getServerTimeZone()
|
java.util.HashMap<java.lang.String,NXCServerVariable> |
getServerVariables()
Get server configuration variables. |
java.lang.String |
getServerVersion()
Get NetXMS server version. |
java.util.List<java.lang.String> |
getSnmpCommunities()
Get list of well-known SNMP communities configured on server. |
java.util.List<SnmpUsmCredential> |
getSnmpUsmCredentials()
Get list of well-known SNMP USM (user security model) credentials configured on server. |
NXCObject[] |
getTopLevelObjects()
Get list of top-level objects. |
NXCUserDBObject[] |
getUserDatabaseObjects()
Get list of all user database objects |
int |
getUserId()
Get identifier of logged in user. |
int |
getUserSystemRights()
Get system-wide rights of currently logged in user. |
boolean |
isPasswordExpired()
|
void |
lockEventConfiguration()
Lock event configuration. |
void |
lockUserDatabase()
Lock user database |
void |
modifyEventTemplate(EventTemplate evt)
Modify event template. |
void |
modifyObject(NXCObjectModificationData data)
Modify object (generic interface, in most cases wrapper functions should be used instead) |
void |
modifyUserDBObject(NXCUserDBObject object)
Modify user database object |
void |
modifyUserDBObject(NXCUserDBObject object,
int fields)
Modify user database object |
NXCPMessage |
newMessage(int code)
Create new NXCP message with unique id |
void |
openAlarm(long alarmId,
java.lang.String reference)
Set alarm's helpdesk state to "Open". |
DataCollectionConfiguration |
openDataCollectionConfiguration(long nodeId)
Open data collection configuration for given node. |
EventProcessingPolicy |
openEventProcessingPolicy()
Open event processing policy for editing. |
Log |
openServerLog(java.lang.String logName)
Open server log by name. |
NetworkMapPage |
queryLayer2Topology(long nodeId)
Query layer 2 topology for node |
Table |
receiveTable(long requestId,
int msgCode)
Receive table from server. |
void |
removeListener(NXCListener lst)
Remove notification listener |
void |
removeTemplate(long templateId,
long nodeId,
boolean removeDci)
Remove data collection template from node. |
void |
sendMessage(NXCPMessage msg)
Send message to server |
protected void |
sendNotification(NXCNotification n)
Call notification handlers on all registered listeners |
void |
setAttributeForCurrentUser(java.lang.String name,
java.lang.String value)
Set custom attribute for currently logged in user. |
void |
setCommandTimeout(int commandTimeout)
Set command execution timeout. |
void |
setConnClientInfo(java.lang.String connClientInfo)
|
void |
setObjectACL(long objectId,
NXCAccessListElement[] acl,
boolean inheritAccessRights)
Change object's ACL (wrapper for modifyObject()) |
void |
setObjectCustomAttributes(long objectId,
java.util.Map<java.lang.String,java.lang.String> attrList)
Change object's custom attributes (wrapper for modifyObject()) |
void |
setObjectManaged(long objectId,
boolean isManaged)
Set object's managed status. |
void |
setObjectName(long objectId,
java.lang.String name)
Change object's name (wrapper for modifyObject()) |
void |
setRecvBufferSize(int recvBufferSize)
Set receiver buffer size. |
void |
setServerVariable(java.lang.String name,
java.lang.String value)
Set server configuration variable. |
void |
setUserPassword(long id,
java.lang.String password)
Set password for user |
void |
subscribe(int channels)
Subscribe to notification channel(s) |
void |
syncObjects()
Synchronizes NetXMS objects between server and client. |
void |
syncUserDatabase()
Synchronize user database |
void |
terminateAlarm(long alarmId)
Terminate alarm. |
void |
unbindObject(long parentId,
long childId)
Unbind object. |
void |
uninstallAgentPolicy(long policyId,
long nodeId)
Uninstall policy from agent |
void |
unlockEventConfiguration()
Unlock event configuration. |
void |
unlockUserDatabase()
Unlock user database |
void |
unsubscribe(int channels)
Unsubscribe from notification channel(s) |
void |
updateObjectComments(long objectId,
java.lang.String comments)
Change object's comments. |
void |
updateSnmpCommunities(java.util.List<java.lang.String> list)
Update list of well-known SNMP community strings on server. |
void |
updateSnmpUsmCredentials(java.util.List<SnmpUsmCredential> list)
Update list of well-known SNMP USM credentials on server. |
java.io.File |
waitForFile(long id,
int timeout)
Wait for specific file to arrive |
NXCPMessage |
waitForMessage(int code,
long id)
Wait for message with specific code and id. |
NXCPMessage |
waitForMessage(int code,
long id,
int timeout)
Wait for message with specific code and id. |
NXCPMessage |
waitForRCC(long id)
Wait for CMD_REQUEST_COMPLETED message with given id |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_CONN_PORT
public static final int CLIENT_PROTOCOL_VERSION
public static final int AUTH_TYPE_PASSWORD
public static final int AUTH_TYPE_CERTIFICATE
public static final int CHANNEL_EVENTS
public static final int CHANNEL_SYSLOG
public static final int CHANNEL_ALARMS
public static final int CHANNEL_OBJECTS
public static final int CHANNEL_SNMP_TRAPS
public static final int CHANNEL_AUDIT_LOG
public static final int CHANNEL_SITUATIONS
public static final int USER_MODIFY_LOGIN_NAME
public static final int USER_MODIFY_DESCRIPTION
public static final int USER_MODIFY_FULL_NAME
public static final int USER_MODIFY_FLAGS
public static final int USER_MODIFY_ACCESS_RIGHTS
public static final int USER_MODIFY_MEMBERS
public static final int USER_MODIFY_CERT_MAPPING
public static final int USER_MODIFY_AUTH_METHOD
| Constructor Detail |
|---|
public NXCSession(java.lang.String connAddress,
java.lang.String connLoginName,
java.lang.String connPassword)
connAddress - connLoginName - connPassword -
public NXCSession(java.lang.String connAddress,
int connPort,
java.lang.String connLoginName,
java.lang.String connPassword)
connAddress - connPort - connLoginName - connPassword -
public NXCSession(java.lang.String connAddress,
int connPort,
java.lang.String connLoginName,
java.lang.String connPassword,
boolean connUseEncryption)
connAddress - connPort - connLoginName - connPassword - connUseEncryption - | Method Detail |
|---|
protected void finalize()
finalize in class java.lang.Objectpublic void addListener(NXCListener lst)
lst - Listener to addpublic void removeListener(NXCListener lst)
lst - Listener to removeprotected void sendNotification(NXCNotification n)
n - Notification object
public void sendMessage(NXCPMessage msg)
throws java.io.IOException
msg - Message to sent
java.io.IOException - if case of socket communication failure
public NXCPMessage waitForMessage(int code,
long id,
int timeout)
throws NXCException
code - Message codeid - Message idtimeout - Wait timeout in milliseconds
NXCException - if message was not arrived within timeout interval
public NXCPMessage waitForMessage(int code,
long id)
throws NXCException
code - Message codeid - Message id
NXCException - if message was not arrived within timeout interval
public NXCPMessage waitForRCC(long id)
throws NXCException
id - Message id
NXCException - if message was not arrived within timeout interval or contains RCC other than RCC.SUCCESSpublic final NXCPMessage newMessage(int code)
code - Message code
public java.io.File waitForFile(long id,
int timeout)
id - Message IDtimeout - Wait timeout in milliseconds
protected void executeSimpleCommand(int command)
throws java.io.IOException,
NXCException
command - Command code
java.io.IOException
NXCException
public Table receiveTable(long requestId,
int msgCode)
throws NXCException
requestId - request IDmsgCode - Message code
NXCException - if operation was timed out
public void connect()
throws java.io.IOException,
java.net.UnknownHostException,
NXCException
java.io.IOException - to indicate socket I/O error
java.net.UnknownHostException - if given host name cannot be resolved
NXCException - if NetXMS server returns an error, protocol negotiation with the server was failed, or operation was
timed outpublic void disconnect()
public int getRecvBufferSize()
public void setRecvBufferSize(int recvBufferSize)
recvBufferSize - Size of receiver buffer in bytes.public java.lang.String getServerVersion()
public byte[] getServerId()
public java.lang.String getServerTimeZone()
public byte[] getServerChallenge()
public java.lang.String getConnClientInfo()
public void setConnClientInfo(java.lang.String connClientInfo)
connClientInfo - the connClientInfo to setpublic void setCommandTimeout(int commandTimeout)
commandTimeout - New command timeoutpublic int getUserId()
public int getUserSystemRights()
public boolean isPasswordExpired()
public void syncObjects()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed outpublic NXCObject findObjectById(long id)
id - Object identifier
public NXCObject[] findMultipleObjects(long[] idList)
idList - array of object identifiers
public NXCObject[] getTopLevelObjects()
public NXCObject[] getAllObjects()
public java.util.HashMap<java.lang.Long,NXCAlarm> getAlarms(boolean getTerminated)
throws java.io.IOException,
NXCException
getTerminated - if set to true, all alarms will be retrieved from database, otherwise only active alarms
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void acknowledgeAlarm(long alarmId)
throws java.io.IOException,
NXCException
alarmId - Identifier of alarm to be acknowledged.
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void terminateAlarm(long alarmId)
throws java.io.IOException,
NXCException
alarmId - Identifier of alarm to be terminated.
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void deleteAlarm(long alarmId)
throws java.io.IOException,
NXCException
alarmId - Identifier of alarm to be deleted.
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void openAlarm(long alarmId,
java.lang.String reference)
throws java.io.IOException,
NXCException
alarmId - Identifier of alarm to be changed.reference - Helpdesk reference string.
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void closeAlarm(long alarmId)
throws java.io.IOException,
NXCException
alarmId - Identifier of alarm to be changed.
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public java.util.HashMap<java.lang.String,NXCServerVariable> getServerVariables()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void setServerVariable(java.lang.String name,
java.lang.String value)
throws java.io.IOException,
NXCException
name - variable's namevalue - new variable's value
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void deleteServerVariable(java.lang.String name)
throws java.io.IOException,
NXCException
name - variable's name
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void subscribe(int channels)
throws java.io.IOException,
NXCException
channels - Notification channels to subscribe to. Multiple channels can be specified by combining them with OR
operation.
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void unsubscribe(int channels)
throws java.io.IOException,
NXCException
channels - Notification channels to unsubscribe from. Multiple channels can be specified by combining them with OR
operation.
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void syncUserDatabase()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed outpublic NXCUserDBObject findUserDBObjectById(long id)
public NXCUserDBObject[] getUserDatabaseObjects()
public long createUser(java.lang.String name)
throws java.io.IOException,
NXCException
name - Login name for new user
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public long createUserGroup(java.lang.String name)
throws java.io.IOException,
NXCException
name - Name for new user group
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void deleteUserDBObject(long id)
throws java.io.IOException,
NXCException
id - User or group ID
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void setUserPassword(long id,
java.lang.String password)
throws java.io.IOException,
NXCException
id - User IDpassword - New password
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void modifyUserDBObject(NXCUserDBObject object,
int fields)
throws java.io.IOException,
NXCException
user - User data
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void modifyUserDBObject(NXCUserDBObject object)
throws java.io.IOException,
NXCException
user - User data
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void lockUserDatabase()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void unlockUserDatabase()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void setAttributeForCurrentUser(java.lang.String name,
java.lang.String value)
throws java.io.IOException,
NXCException
name - Attribute's namevalue - New attribute's value
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public java.lang.String getAttributeForCurrentUser(java.lang.String name)
throws java.io.IOException,
NXCException
name - Attribute's name
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public DciValue[] getLastValues(long nodeId)
throws java.io.IOException,
NXCException
nodeId - ID of the node to get DCI values for
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public DciData getCollectedData(long nodeId,
long dciId,
java.util.Date from,
java.util.Date to,
int maxRows)
throws java.io.IOException,
NXCException
nodeId - Node IDdciId - DCI IDfrom - Start of time range or null for no limitto - End of time range or null for no limitmaxRows - Maximum number of rows to retrieve or 0 for no limit
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public long createObject(NXCObjectCreationData data)
throws java.io.IOException,
NXCException
data - Object creation data
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void deleteObject(long objectId)
throws java.io.IOException,
NXCException
objectId - ID of an object which should be deleted
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void modifyObject(NXCObjectModificationData data)
throws java.io.IOException,
NXCException
data - Object modification data
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void setObjectName(long objectId,
java.lang.String name)
throws java.io.IOException,
NXCException
objectId - ID of object to be changedname - New object's name
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void setObjectCustomAttributes(long objectId,
java.util.Map<java.lang.String,java.lang.String> attrList)
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void setObjectACL(long objectId,
NXCAccessListElement[] acl,
boolean inheritAccessRights)
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void changeNodeIpAddress(long nodeId,
java.net.InetAddress addr)
throws java.io.IOException,
NXCException
nodeId - ID of node objectaddr - New IP address
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void updateObjectComments(long objectId,
java.lang.String comments)
throws java.io.IOException,
NXCException
objectId - Object's IDcomments - New comments
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void setObjectManaged(long objectId,
boolean isManaged)
throws java.io.IOException,
NXCException
objectId - object's identifierisManaged - object's managed status
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void bindObject(long parentId,
long childId)
throws java.io.IOException,
NXCException
parentId - parent object's identifierchildId - Child object's identifier
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void unbindObject(long parentId,
long childId)
throws java.io.IOException,
NXCException
parentId - parent object's identifierchildId - Child object's identifier
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void removeTemplate(long templateId,
long nodeId,
boolean removeDci)
throws java.io.IOException,
NXCException
templateId - template object identifiernodeId - node object identifierremoveDci - true if DCIs created from this template should be removed
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public NetworkMapPage queryLayer2Topology(long nodeId)
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void executeAction(long nodeId,
java.lang.String action)
throws java.io.IOException,
NXCException
nodeId - Node object IDaction - Action name
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public NXCServerJob[] getServerJobList()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void cancelServerJob(long jobId)
throws java.io.IOException,
NXCException
jobId - Job ID
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void deployAgentPolicy(long policyId,
long nodeId)
throws java.io.IOException,
NXCException
policyId - Policy object IDnodeId - Node object ID
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void uninstallAgentPolicy(long policyId,
long nodeId)
throws java.io.IOException,
NXCException
policyId - Policy object IDnodeId - Node object ID
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public EventProcessingPolicy openEventProcessingPolicy()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void closeEventProcessingPolicy()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public DataCollectionConfiguration openDataCollectionConfiguration(long nodeId)
throws java.io.IOException,
NXCException
nodeId - Node object identifier
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public Log openServerLog(java.lang.String logName)
throws java.io.IOException,
NXCException
logName - Log name
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public java.util.List<EventTemplate> getEventTemplates()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void lockEventConfiguration()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void unlockEventConfiguration()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public long generateEventCode()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void deleteEventTemplate(long eventCode)
throws java.io.IOException,
NXCException
eventCode - Event code
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void modifyEventTemplate(EventTemplate evt)
throws java.io.IOException,
NXCException
evt - Event template
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public java.util.List<java.lang.String> getSnmpCommunities()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void updateSnmpCommunities(java.util.List<java.lang.String> list)
throws java.io.IOException,
NXCException
list - New list of SNMP community strings
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public java.util.List<SnmpUsmCredential> getSnmpUsmCredentials()
throws java.io.IOException,
NXCException
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
public void updateSnmpUsmCredentials(java.util.List<SnmpUsmCredential> list)
throws java.io.IOException,
NXCException
list - New list of SNMP USM credentials
java.io.IOException - if socket I/O error occurs
NXCException - if NetXMS server returns an error or operation was timed out
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||