org.netxms.api.client.servermanager
Interface ServerManager


public interface ServerManager

Interface for server management.


Method Summary
 void deleteServerVariable(java.lang.String name)
          Delete server configuration variable.
 java.util.Map<java.lang.String,ServerVariable> getServerVariables()
          Get server configuration variables.
 void setServerVariable(java.lang.String name, java.lang.String value)
          Set server configuration variable.
 

Method Detail

getServerVariables

java.util.Map<java.lang.String,ServerVariable> getServerVariables()
                                                                  throws java.io.IOException,
                                                                         NetXMSClientException
Get server configuration variables.

Returns:
Map containing server configuration variables
Throws:
java.io.IOException - if socket I/O error occurs
NetXMSClientException - if NetXMS server returns an error or operation was timed out

setServerVariable

void setServerVariable(java.lang.String name,
                       java.lang.String value)
                       throws java.io.IOException,
                              NetXMSClientException
Set server configuration variable.

Parameters:
name - variable's name
value - new variable's value
Throws:
java.io.IOException - if socket I/O error occurs
NetXMSClientException - if NetXMS server returns an error or operation was timed out

deleteServerVariable

void deleteServerVariable(java.lang.String name)
                          throws java.io.IOException,
                                 NetXMSClientException
Delete server configuration variable.

Parameters:
name - variable's name
Throws:
java.io.IOException - if socket I/O error occurs
NetXMSClientException - if NetXMS server returns an error or operation was timed out


Copyright © 2012. All Rights Reserved.