Package org.netxms.client
Class NXCSession
java.lang.Object
org.netxms.client.NXCSession
Communication session with NetXMS server.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static final classMessage subscription class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructorsConstructorDescriptionNXCSession(String connAddress) Create session object that will connect to given address on default port (4701) without encryption.NXCSession(String connAddress, int connPort) Create session object that will connect to given address on given port without encryption.NXCSession(String connAddress, int connPort, boolean enableCompression) Create session object that will connect to given address on given port.
- 
Method SummaryModifier and TypeMethodDescriptionvoidacknowledgeAlarm(long alarmId) Acknowledge alarm.voidacknowledgeAlarm(long alarmId, boolean sticky, int time) Acknowledge alarm.voidacknowledgeAlarm(String helpdeskReference) Acknowledge alarm by helpdesk reference.voidaddClusterNode(long clusterId, long nodeId) Add node to cluster.voidaddConsoleListener(ServerConsoleListener listener) Add server console listenervoidaddListener(SessionListener listener) Add notification listenervoidaddMessageSubscription(int messageCode, long messageId, MessageHandler handler) Subscribe to specific messagesvoidAdd repository.voidAdd new scheduled taskvoidaddWirelessDomainController(long wirelessDomainId, long nodeId) Add controller node to wireless domain.voidapplyTemplate(long templateId, long nodeId) Apply data collection template to node.booleanareChildrenSynchronized(long id) Returns true if children are already synchronized for given object.booleanvoidbindAgentTunnel(int tunnelId, long nodeId) Bind agent tunnel to nodevoidbindObject(long parentId, long childId) Bind object.bulkResolveAlarms(List<Long> alarmIds) Bulk terminate alarms.bulkTerminateAlarms(List<Long> alarmIds) Bulk terminate alarms.voidcancelFileMonitoring(UUID monitorId) Cancel file monitoringvoidcancelPackageDeploymentJob(long jobId) long[]changeDCIStatus(long ownerId, long[] items, int status) Change data collection objects status without opening data collection configuration.voidchangeObjectZone(long objectId, int zoneUIN) Move object to different zone.booleanSend KEEPALIVE message.voidclearAgentDataCollectionConfiguration(long nodeId) Clear data collection configuration on agent.voidClear AI assistant chat history.voidclearCollectedData(long nodeId, long dciId) Clear collected data for given DCIvoidclearInterfacePeer(long interfaceId) Clear peer interface information.voidcloneNetworkMap(long mapId, String newObjectName, String alias) Create network map clonevoidClose server console.voidClose event processing policy.protected voidcloseTcpProxy(int channelId) Close TCP proxy channel.voidcompileMibs(Consumer<MibCompilationLogEntry> outputCallback) Compile MIBscompileScript(String source, boolean serialize) Compile NXSL script on server.voidconnect()Connect to NetMS server.voidconnect(int[] componentVersions) Connect to NetMS server.voidcopyAgentFile(long nodeId, String oldName, String newFileName, boolean overwrite) Copy file from agentlongcreateAction(String name) Create new server action.voidcreateAlarmComment(long alarmId, String text) Create alarm comment.voidcreateAlarmComment(String helpdeskReference, String text) Create alarm comment by helpdesk reference.voidcreateAssetAttribute(AssetAttribute attribute) Create asset attribute (definition in asset management schema)..protected voidcreateCustomObject(NXCObjectCreationData data, Object userData, NXCPMessage msg) Hook method to allow adding of custom object creation data to NXCP message.protected AbstractObjectcreateCustomObjectFromMessage(int objectClass, NXCPMessage msg) Create custom object from NXCP message.voidcreateFolderOnAgent(long nodeId, String folder) Create folder on remote system via agentstatic GraphFoldercreateGraphTree(List<GraphDefinition> graphs) Create graph tree from listcreateImage(LibraryImage image, ProgressListener listener) Create an imagevoidcreateMaintenanceEntry(long objectId, String description) Create new maintenance journal entry for specified objectintcreateMappingTable(String name, String description, int flags) Create new mapping table.voidCreate notification channellongCreate new NetXMS object.longcreateObject(NXCObjectCreationData data, Object userData) Create new NetXMS object.longcreateObjectAsync(NXCObjectCreationData data, ObjectCreationListener callback) Create new NetXMS object and run callback once it's created.Create new NetXMS object in synchronous mode.longCreate new trap configuration record.createToolTree(List<ObjectTool> tools) Create object tool treeintcreateUser(String name) Create user on servervoidcreateUserAgentNotification(String message, long[] objects, Date startTime, Date endTime, boolean onStartup) Create new user support application notificationsvoidcreateUserAgentNotification(String message, Collection<Long> objects, Date startTime, Date endTime, boolean onStartup) Create new user support application notificationsintcreateUserGroup(String name) Create user group on serverdciIdsToNames(Collection<? extends NodeItemPair> itemList) Get names for given DCI listdciIdsToNames(List<Long> nodeIds, List<Long> dciIds) Get names for given DCI listlongdciNameToId(long nodeId, String dciName) Get DCI ID for given DCI namevoiddelete2FAMethod(String name) Delete two-factor authentication method.voiddeleteAction(long actionId) Delete server actionvoiddeleteAgentConfig(long id) Delete server side agent configuration.voiddeleteAgentFile(long nodeId, String fileName) Delete file from agentvoiddeleteAlarm(long alarmId) Delete alarm.voiddeleteAlarmCategory(long id) Delete alarm category in DBvoiddeleteAlarmComment(long alarmId, long commentId) Delete alarm comment.voiddeleteAssetAttribute(String name) Delete asset attribute (definition in asset management schema).voiddeleteAssetProperty(long objectId, String name) Delete asset property.voiddeleteBusinessServiceCheck(long businessServiceid, long checkId) Delete check form businsess servicevoiddeleteDciEntry(long nodeId, long dciId, long timestamp) Delete collected data entry for given DCIvoiddeleteDciSummaryTable(int id) Delete DCI summary table.voiddeleteEventTemplate(long eventCode) Delete event template.voiddeleteGeoArea(int areaId, boolean forceDelete) Delete geographical area.voiddeleteImage(UUID guid) Delete an imagevoiddeleteImage(LibraryImage image) Delete an imagevoiddeleteMappingTable(int id) Delete mapping tablevoiddeleteMibFile(String serverFileName) Delete custom MIB file from server's file storevoidDelete notification channelvoiddeleteObject(long objectId) Delete objectvoiddeleteObjectCategory(int categoryId, boolean forceDelete) Delete object category.voiddeleteObjectQuery(int queryId) Delete predefined object query.voiddeleteObjectTool(long toolId) Delete object tool.voidDelete persistent storage valuevoiddeletePhysicalLink(long linkId) Delete physical link.voiddeletePolicy(long templateId, UUID guid) Delete policyvoiddeletePredefinedGraph(long graphId) Delete predefined graph.voiddeleteReportResult(UUID reportId, UUID jobId) Delete report resultvoiddeleteRepository(int id) Delete repository.voiddeleteScheduledTask(long taskId) Delete scheduled task.voiddeleteScript(long scriptId) Delete script from libraryvoiddeleteServerFile(String serverFileName) Delete file from server's file storevoiddeleteServerVariable(String name) Delete server configuration variablevoiddeleteSnmpTrapConfiguration(long trapId) Delete SNMP trap configuration record from server.voiddeleteSshKey(int id, boolean force) Delete SSH key.voiddeleteUserDBObject(int id) Delete user or group on servervoiddeleteWebServiceDefinition(int id) Delete web service definition.voiddeployAgentPolicy(long policyId, long nodeId) Deploy policy on agentvoiddeployPackage(long packageId, Collection<Long> nodeList) Deploy agent packages onto given nodesvoiddetachUserFromLdap(int userId) Detach user from LDAPvoidDisconnect from server.voidDisconnect from server because of user inactivity.downloadFileFromAgent(long nodeId, String remoteFileName, boolean expandMacros, long alarmId, Map<String, String> inputValues, long maxFileSize, boolean follow, ProgressListener listener) Download file from remote host via agent.downloadFileFromAgent(long nodeId, String remoteFileName, long maxFileSize, boolean follow, ProgressListener listener) Download file from remote host via agent.downloadFileFromServer(String remoteFileName) Download file from server file storage.Download MIB file from server.voideditMaintenanceEntry(long objectId, long entryId, String description) Edit specified maintenance journal entry for specified objectenableAnonymousObjectAccess(long objectId) Enable anonymous access to object.voidenableObjectTool(long toolId, boolean enable) Enable or disable object tool/voidenableReconnect(boolean enable) Enable or disable background reconnect.voidexecuteAction(long nodeId, String action, String[] args) Execute action on remote agentvoidexecuteAction(long nodeId, String action, String[] args, boolean receiveOutput, TextOutputListener listener, Writer writer) Execute action on remote agentexecuteActionWithExpansion(long nodeId, long alarmId, String action, boolean receiveOutput, Map<String, String> inputValues, List<String> maskedFields, TextOutputListener listener, Writer writer) Execute action on remote agentexecuteActionWithExpansion(long nodeId, long alarmId, String action, Map<String, String> inputValues, List<String> maskedFields) Execute action on remote agentvoidexecuteLibraryScript(long objectId, long alarmId, String script, Map<String, String> inputFields, List<String> maskedFields, TextOutputListener listener) Execute library script on object.voidexecuteLibraryScript(long nodeId, String script, Map<String, String> inputFields, List<String> maskedFields, TextOutputListener listener) Execute library script on object.executeReport(ReportingJobConfiguration jobConfiguration) Execute a reportvoidexecuteScript(long objectId, String script, String parameters, TextOutputListener listener) Execute script.voidexecuteScript(long objectId, String script, String parameters, TextOutputListener listener, boolean developmentMode) Execute script.voidexecuteScript(long objectId, String script, List<String> parameterList, TextOutputListener listener) Execute script.voidexecuteScript(long objectId, String script, List<String> parameterList, TextOutputListener listener, boolean developmentMode) Execute script.executeScriptedComparisonChartElement(long dashboardId, long elementId, long objectId) Execute dashboard script and get return value as map.voidexecuteServerCommand(long objectId, long alarmId, String command, Map<String, String> inputFields, List<String> maskedFields) Execute server command related to given object (usually defined as object tool)voidexecuteServerCommand(long objectId, long alarmId, String command, Map<String, String> inputFields, List<String> maskedFields, boolean receiveOutput, TextOutputListener listener, Writer writer) Execute server command related to given object (usually defined as object tool)protected voidexecuteSimpleCommand(int command) Execute simple commands (without arguments and only returning RCC)voidexecuteSshCommand(long nodeId, long alarmId, String command, Map<String, String> inputFields, List<String> maskedFields, boolean receiveOutput, TextOutputListener listener, Writer writer) Execute SSH command on remote agentexecuteTableTool(long toolId, long nodeId) Execute object tool of "table" type against given node.exportConfiguration(String description, long[] events, long[] traps, long[] templates, UUID[] rules, long[] scripts, long[] objectTools, long[] dciSummaryTables, long[] actions, long[] webServices, String[] assetAttributes) Export server configuration.filterObjects(ObjectFilter filter) Find all objects matching given filter.findAlarmCategoryById(long id) Find alarm category by id in alarm category database internally maintained by session object.Find alarm category by name in alarm category database internally maintained by session object.findConnectionPoint(int zoneId, InetAddress ipAddr) Find connection point (either directly connected or most close known interface on a switch) for given IP address.findConnectionPoint(long objectId) Find connection point (either directly connected or most close known interface on a switch) for given node or interface object.findConnectionPoint(MacAddress macAddr) Find node and/or connection point (either directly connected or most close known interface on a switch) for given MAC address.findConnectionPoints(byte[] pattern, int searchLimit) Find nodes and/or connection points (either directly connected or most close known interface on a switch) for all MAC addresses that match given MAC address pattern.DciValue[]Send request for last values using prepared messagefindEventTemplateByCode(int code) Find event template by code in event template database internally maintained by session object.Find event template by name in event template database internally maintained by session object.org.netxms.client.FutureObjectfindFutureObjectById(long id) Find NetXMS object by it's identifier or return wait an object to wait onfindMatchingDCI(long objectId, String objectName, String dciName, int flags) Find all DCIs matching given creteria.Find multiple alarm categories by category id`s in alarm category database internally maintained by session object.findMultipleEventTemplates(int[] codes) Find multiple event templates by event codes in event template database internally maintained by session object.Find multiple event templates by event codes in event template database internally maintained by session object.findMultipleObjects(long[] idList, boolean returnUnknown) Find multiple NetXMS objects by identifiersfindMultipleObjects(long[] idList, Class<? extends AbstractObject> classFilter, boolean returnUnknown) Find multiple NetXMS objects by identifiersfindMultipleObjects(Collection<Long> idList, boolean returnUnknown) Find multiple NetXMS objects by identifiersfindMultipleObjects(Collection<Long> idList, Class<? extends AbstractObject> classFilter, boolean returnUnknown) Find multiple NetXMS objects by identifiersfindNodesByHostname(int zoneId, String hostname) Find all nodes that contain the primary hostnamefindObject(ObjectFilter filter) Generic object find using filter.voidfindObjectAsync(long id, ObjectCreationListener callback) Find NetXMS object by it's identifier and execute provided callback once foundfindObjectByGUID(UUID guid) Find NetXMS object by it's GUID.<T extends AbstractObject>
 TfindObjectByGUID(UUID guid, Class<T> requiredClass) Find NetXMS object by it's GUID with additional class checking.findObjectById(long id) Find NetXMS object by it's identifier.findObjectById(long id, boolean allowPartial) Find NetXMS object by it's identifier as full object or as partial object<T> TfindObjectById(long id, Class<T> requiredClass) Find NetXMS object by it's identifier with additional class checking.findObjectByName(String name) Find object by name.findObjectByName(String name, ObjectFilter filter) Find object by name with object filter.findObjectByNamePattern(String pattern) Find object by name using regular expression.findObjectByRegex(String regex) Find object by regexlongfindProxyForNode(long nodeId) Find suitable proxy for given node.findUserDBObjectByGUID(UUID guid) Find user or group by GUIDfindUserDBObjectById(int id, Runnable callback) Find user or group by ID.findUserDBObjectByName(String name, Class<? extends AbstractUserObject> classFilter) Find user or group by name.Find multiple users by list of IDsfindZone(int zoneUIN) Find zone object by zone UIN (unique identification number).voidforceDCIPoll(long nodeId, long dciId) Force DCI poll for given DCIvoidforcePolicyInstallation(long templateId) Force policy installation on all nodes where template is appliedlongGenerate code for new event template.longGenerate unique ID for new object tool.voidgenerateSshKeys(String name) Generate new SSH keys .Get list of available two-factor authentication drivers.Get list of configured two-factor authentication methods.Get list of configured actions from servergetActiveThresholds(List<MapDataSource> dciConfig) Get active thresholdsgetAddressList(int listId) Get address list.getAgentConfiguration(long id) Get server side agent configurationGets the list of configuration files.(Config id, name and sequence number)getAgentFileFingerprint(long nodeId, String remoteFileName) Get file fingerprint from remote host via agent.getAgentFileInfo(AgentFile file) Return information about agent filegetAgentPolicy(long templateId, UUID policyGUID) Get agent policy by template id and GUIDgetAgentPolicyList(long templateId) Returns agent policy listGet agent shared secret list (global and all zones).getAgentSharedSecrets(int zoneUIN) Get agent shared secret list for specific zone.Get list of agent tunnelsgetAlarm(long alarmId) Get information about single active alarm.Get alarm categories from servergetAlarmComments(long alarmId) Get list of comments for given alarm.getAlarmEvents(long alarmId) Get information about events related to single active alarm.intGet maximum number of records allowed to be displayed in alarm listGet list of active alarms.getAllMaintenanceEntries(long objectId, int maxEntries) Get list of maintenance journal entries for specified object and it's child objectsGet list of all objectsGet all accessible zone objectsgetArpCache(long nodeId, boolean forceRead) Get ARP cache from nodeGet asset management schema from client-side cache.intGet size of asset management schema (number of defined attributes).Get custom attribute for currently logged in user.Get the current authentication methodgetAuthenticationTokens(int userId) Get list of active authentication tokens for given user.getBackgroundTaskState(long taskId) Get state of background task.doublegetBusinessServiceAvailablity(long businessServiceid, TimePeriod timePeriod) Get business service availabilitygetBusinessServiceChecks(long serviceId) Get list business service checksgetBusinessServiceTickets(long businessServiceid, TimePeriod timePeriod) Get business service ticketsGet cached list event templatesGet client configuration hint as stringgetClientConfigurationHint(String name, String defaultValue) Get client configuration hint as stringbooleangetClientConfigurationHintAsBoolean(String name, boolean defaultValue) Get client configuration hint as booleanintgetClientConfigurationHintAsInt(String name, int defaultValue) Get client configuration hint as integerGet client information stringGet the client`s languageintgetCollectedData(long nodeId, long dciId, Date from, Date to, int maxRows, HistoricalDataType valueType) Get collected DCI data from server.getCollectedData(long nodeId, long dciId, Date from, Date to, int maxRows, HistoricalDataType valueType, long delegateReadObject) Get collected DCI data from server.getCollectedTableData(long nodeId, long dciId, String instance, String dataColumn, Date from, Date to, int maxRows) Get collected table DCI data from server.getCollectedTableData(long nodeId, long dciId, String instance, String dataColumn, Date from, Date to, int maxRows, long delegateReadObject) Get collected table DCI data from server.getDataCollectionScripts(long objectId) Get names of all scripts used in data collection by given node, cluster, or template object.DciValue[]getDataCollectionSummary(long nodeId, boolean objectTooltipOnly, boolean overviewOnly, boolean includeNoValueObjects) Get DCI summary for given nodeDciValue[]getDataCollectionSummary(long nodeId, long mapId, boolean objectTooltipOnly, boolean overviewOnly, boolean includeNoValueObjects) Get DCI summary for given node and mapGet default date format provided by servergetDciLastValue(long nodeId, long dciId) Get last value for given table or single valued DCI on given nodegetDciMeasurementUnits(List<Long> nodeIds, List<Long> dciIds) Get info for given DCI listgetDciMeasurementUnits(List<ChartDciConfig> dciList) Get measurement units for given DCI listgetDciMeasurementUnits(ChartDciConfig[] dciList) Get info for given DCI listgetDciSummaryTable(int id) Get DCI summary table configuration.final intGet the default DCI polling intervalfinal intGet the default DCI retention timeintGet default receiver buffer size.getDependentNodes(long nodeId) Get list of dependent nodes for given node.getDeviceView(long nodeId) Get device view for node.intgetEffectiveRights(long objectId) Get effective rights of currently logged in user to given object.getEventName(int code) Get event name from event codeGet read-only copy of event processing policy.getEventReferences(long eventCode) Get list of objects that are using specified eventGet event objects from serverGet configured geographical areasintGet number of remaining grace loginsgetHelpdeskIssueUrl(long alarmId) Get URL for helpdesk issue associated with given alarmGet an image from the libraryGet the whole image librarygetImageLibrary(String category) Get the image library of specific categoryGet list of installed packagesDciValue[]getLastValues(long nodeId) Get last DCI values for given nodeDciValue[]getLastValues(List<? extends MapDataSource> dciConfig) Get last DCI values for given Single Dci Config listDciValue[]getLastValues(Set<MapDCIInstance> mapDcis) Get last DCI values for given Map DCI Instance listGet list of license problems reported by server.getLocationHistory(long objectId, Date from, Date to) Get location history for given object.getMappingTable(int id) Get list of specific mapping tableintGet max receiver buffer size.Get message of the day if server config is setGet timestamp of server's MIB file.intGet the minimal view refresh intervalintintgetNetworkPath(long node1, long node2) Get IPv4 network path between two nodes.getNodeHardwareComponents(long nodeId) Get list of hardware components as reported by agent.getNodePhysicalComponents(long nodeId) Get node's physical components (obtained from ENTITY-MIB).getNodeSoftwarePackages(long nodeId) Get list of software packages installed on node.getNodeWinPerfObjects(long nodeId) Get list of available Windows performance objects.Get server notification channelsGet list of available notification channel drivers.Get all object categories.getObjectCategory(int categoryId) Get object category by IDgetObjectName(long objectId) Get object name by ID.getObjectNameWithAlias(long objectId) Get object name with alias by ID.Get list of configured object queries.getObjectToolDetails(long toolId) Get object tool detailsGet list of configured object toolsgetOSPFInfo(long nodeId) Get OSPF information for given node.Get list of package deployment jobsgetPerfTabItems(long nodeId) Get list of DCIs configured to be shown on performance tab in console for given node.Get list of all values in persistent storagegetPhysicalLinks(long objectId, long patchPanelId) Get list of physical links filtered by provided optionsgetPredefinedGraph(long graphId) Get predefined graph information by graph idgetPredefinedGraphs(boolean graphTemplates) Get list of predefined graphs or graph templatesgetPredictedData(long nodeId, long dciId, Date from, Date to) Get predicted DCI data from server.Get list of registered prediction enginesGet server public configuration variablebooleanGet server public configuration variable as boolen valueintGet server public configuration variable as a intString[]Get list of registered server componentsint[]getRelatedEvents(long objectId) Get all events used in data collection by given node, cluster, or template object.getReportDefinition(UUID reportId) Get the report definitiongetReportResults(UUID reportId) List report resultsGet list of configured repositoriesGet allowed tags for responsible users.getRoutingTable(long nodeId) Get routing table from nodegetScheduledReportingJobs(UUID reportId) List scheduled jobsGet list of available scheduled task handlers.Get list of scheduled tasks.getScript(long scriptId) Get script from libraryGet list of all scripts in script library.Get server addressGet NetXMS server build information.byte[]Get server identification colourgetServerConfigClob(String name) Get server config CLOBlongGet NetXMS server UID.Get server nameGet server stats.longGet server timeGet server time zone.Get server configuration variablesGet NetXMS server version.intGet this session's ID on server.Get time format for short form (usually without seconds).getSmclpSupportedProperties(long nodeId) Get list of SM-CLP properties supported on given node.Get list of well-known SNMP communities configured on server.getSnmpCommunities(int zoneUIN) Get list of well-known SNMP communities configured on server.Get list of configured SNMP trapsGet summary of SNMP trap mapping.Get list of well-known SNMP USM (user security model) credentials configured on server.getSnmpUsmCredentials(int zoneUIN) Get list of well-known SNMP USM (user security model) credentials configured on server.Get SSH credentials for all zones.getSshCredentials(int zoneUIN) Get SSH credentials for specific zone.getSshKeys(boolean withPublicKey) Get list of SSH keylong[]getSubnetAddressMap(long subnetId) Get address map for subnet.getSupportedParameters(long nodeId) Get list of parameters supported by agent running on given node.getSupportedParameters(long nodeId, DataOrigin origin) Get list of parameters supported by entity defined by origin on given node.getSupportedTables(long nodeId) Get list of tables supported by agent running on given node.getSwitchForwardingDatabase(long nodeId) Get switch forwarding database (MAC address table) from nodegetTableLastValues(long nodeId, long dciId) Get last value for given table DCI on given nodegetThresholds(long nodeId, long dciId) Get list of thresholds configured for given DCIgetThresholds(long nodeId, long dciId, long delegateReadObject) Get list of thresholds configured for given DCIgetThresholdSummary(long objectId) Get threshold violation summary for all nodes under given parent object.Get server URLGet default time format provided by servergetTooltipLastValues(Set<Long> nodeList) Get tooltip last values for all objectsGet list of top-level objects.getTopLevelObjects(Set<Integer> classFilter) Get list of top-level objects matching given class filter.getTopLevelObjects(ObjectFilter objectFilter) Get list of top-level objects matching given object filter.Get user interface access rules.Get user support application notifications listGet list of all user database objectsintGet identifier of logged in user.Get the current user namegetUserSessions(long nodeId) Get list of user sessions on given node as reported by agent.longGet system-wide rights of currently logged in user.getVendorByMac(Set<MacAddress> macList) Get vendor names by OUI part of provided MAC addresses.getVendorByMac(MacAddress mac, Runnable callback) Get vendor name by OUI part of MAC address.getVlans(long nodeId) Get list of VLANs configured on given nodeGet configured web service definitions.getWellKnownPorts(int zoneUIN, String tag) Get list of well-known ports for given zone.getWellKnownPorts(String tag) Get list of well-known ports (global and all zones).getWirelessStations(long objectId) Get list of wireless stations registered at given wireless controller or access point.getZoneName(int zoneUIN) Get zone name by UINvoidhandover(NXCSession target) Handover object cache to new session.booleanCheck if server has any license problems.importConfiguration(File configFile, int flags) Import server configuration (events, traps, thresholds) from XML file.voidimportConfiguration(String config, int flags) Import server configuration (events, traps, thresholds) from XML document.longinstallPackage(PackageInfo info, File pkgFile, ProgressListener listener) Install (upload) package on serverbooleanCheck if alarm categories are synchronized.booleanisAssetAttributeUnique(String newName) Check if asset management attribute name is uniquebooleanGet connection statebooleanCheck if event configuratrion objects are synchronized.booleanGet status of helpdesk integration module on server.booleanGet the state of protocol version checkbooleanCheck if password is expired for currently logged in user.booleanCheck if background reconnect is enabled.booleanisServerComponentRegistered(String componentId) Check if server component with given id is registeredbooleanfinal booleanGet the state of alarm status flowbooleanbooleanCheck if user database is synchronized with clientbooleanGet the state of zoningvoidlinkAsset(long assetId, long objectId, boolean updateIdentification) Link asset object to given object.listAgentFiles(AgentFile file, String fullPath, long objectId) List files on agent file store.Get list of all configured DCI summary tablesGet list of all configured mapping tables.List custom MIB files in server's file store.List reportsList files in server's file store.listServerFiles(String[] filter) List files in server's file store.voidLogin to server using authentication token.voidLogin to server using login name and password.voidlogin(String login, Certificate certificate, Signature signature) Login to server using certificate.voidlogin(AuthenticationType authType, String login, String password, Certificate certificate, Signature signature, TwoFactorAuthenticationCallback twoFactorAuthenticationCallback) Login to server.voidModify existing two-factor authentication method or create new one.voidmodifyAction(ServerAction action) Modify server actionlongmodifyAlarmCategory(AlarmCategory object) Add or update alarm category in DBvoidmodifyBusinessServiceCheck(long businessServiceid, BusinessServiceCheck check) Modify check form businsess serviceprotected voidmodifyCustomObject(NXCObjectModificationData data, Object userData, NXCPMessage msg) Hook method to populate NXCP message with custom object's data on object modification.longModify data collection object without opening data collection configuration.intModify DCI summary table configuration.voidModify event template.intmodifyGeoArea(GeoArea area) Modify geographical area.voidmodifyImage(LibraryImage image, ProgressListener listener) Modify an imagevoidModify object (generic interface, in most cases wrapper functions should be used instead).voidmodifyObject(NXCObjectModificationData data, Object userData) Modify object (generic interface, in most cases wrapper functions should be used instead).intmodifyObjectCategory(MutableObjectCategory category) Modify object category.intmodifyObjectQuery(ObjectQuery query) Modify object query.voidModify object tool.voidModify repository.longmodifyScript(long scriptId, String name, String source) Modify script.voidModify SNMP trap configuration record.voidmodifyUserDBObject(AbstractUserObject object) Modify user database objectvoidmodifyUserDBObject(AbstractUserObject object, int fields) Modify user database objectintmodifyWebServiceDefinition(WebServiceDefinition definition) Modify (or create new) web service definition.voidmoveAgentFile(long nodeId, String oldName, String newFileName, boolean overwrite) Move file from agentfinal NXCPMessagenewMessage(int code) Create new NXCP message with unique idvoidonPolicyEditorClose(long templateId) Command sent on policyEditor close to send updates to all applied nodesvoidOpen server console.openDataCollectionConfiguration(long nodeId) Open data collection configuration for given node.openDataCollectionConfiguration(long nodeId, RemoteChangeListener changeListener) Open data collection configuration for given node.Open event processing policy for editing.openHelpdeskIssue(long alarmId) Open issue in helpdesk system from given alarmopenServerLog(String logName) Open server log by name.intparseDataRows(byte[] input, DciData data) Parse data from raw message CMD_DCI_DATA.voidpollObject(long objectId, ObjectPollType pollType, TextOutputListener listener) Perform a forced object poll.booleanprocessConsoleCommand(String command) Process console command on server.voidpushDciData(long nodeId, long dciId, String value) Push value for single DCI.voidpushDciData(String nodeName, String dciName, String value) Push value for single DCI.voidpushDciData(DciPushData[] data) Push data to server.queryAdHocDciSummaryTable(long baseObjectId, List<DciSummaryTableColumn> columns, AggregationFunction function, Date periodStart, Date periodEnd, boolean multiInstance) Query ad-hoc DCI summary table.queryAgentTable(long nodeId, String name) Query agent's table immediately.queryAiAssistant(String prompt) Send query to AI assistant.queryDciSummaryTable(int tableId, long baseObjectId) Query DCI summary table.queryInternalConnectionTopology(long nodeId) Query internal connection topology for nodequeryIPTopology(long nodeId, int discoveryRadius) Query IP topology for nodequeryLayer2Topology(long nodeId, int discoveryRadius, boolean useL1Topology) Query layer 2 topology for nodequeryMetric(long nodeId, DataOrigin origin, String name) Query metric immediately.queryObjectDetails(String query, long rootObjectId, List<String> properties, List<String> orderBy, Map<String, String> inputFields, long contextObjectId, boolean readAllComputedProperties, int limit, Consumer<Integer> progressCallback) Query objects on server side and read certain object properties.queryObjects(String query, long rootObjectId, Consumer<Integer> progressCallback) Query objects on server side, optionally only those located below given root object.queryObjects(String query, Consumer<Integer> progressCallback) Query objects on server side.queryOSPFTopology(long nodeId) Query OSPF topology for nodequeryScript(long nodeId, String script, List<String> parameterList, TextOutputListener listener) Execute script and get return value as map.queryTable(long nodeId, DataOrigin origin, String name) Query table immediately.readAgentConfigurationFile(long nodeId) Get agent's master configuration file.voidrecalculateDCIValues(long objectId, long dciId) Start background recalculation of DCI values using preserved raw values.voidrecallUserAgentNotification(long id) Recall user support application notificationreceiveTable(long requestId, int msgCode) Receive table from server.voidremoveClusterNode(long clusterId, long nodeId) Remove node from cluster.voidremoveConsoleListener(ServerConsoleListener listener) Remove server console listenervoidremoveListener(SessionListener listener) Remove notification listenervoidremoveMessageSubscription(int messageCode, long messageId) Remove message subscriptionvoidremovePackage(long packageId) Remove agent package from servervoidremoveTemplate(long templateId, long nodeId, boolean removeDci) Remove data collection template from node.voidremoveWirelessDomainController(long wirelessDomainId, long nodeId) Remove controller node from wireless domain.voidrename2FAMethod(String oldName, String newName) Rename two-factor authentication methodvoidrenameAgentFile(long nodeId, String oldName, String newFileName, boolean overwrite) Rename agent's filevoidrenameNotificationChannel(String oldName, String newName) Rename notification channelvoidrenameScript(long scriptId, String name) Rename script in script library.voidrenameServerFile(String oldFileName, String newFileName) Rename file in server's file storerenderReport(UUID reportId, UUID jobId, ReportRenderFormat format) Render reportvoidRequest new ephemetral authentication token for this session from server.requestAuthenticationToken(boolean persistent, int validFor, String description, int userId) Request new authentication token from server.voidresetServerComponent(int component) Reset server's internal component (defined by SERVER_COMPONENT_xxx)voidresolveAlarm(long alarmId) Resolve alarm.voidresolveAlarm(String helpdeskReference) Resolve alarm by helpdesk reference.voidresyncAgentDataCollectionConfiguration(long nodeId) Force re-synchronization of data collection configuration with agent.voidrevokeAuthenticationToken(int tokenId) Revoke persistent auithentication token.longsaveAgentConfig(AgentConfiguration configuration) Update server side agent configurationvoidSave event processing policy.longsaveGraph(GraphDefinition graph, boolean overwrite) Checks if graph with specified name can be created/overwritten and creates/overwrites it in DB.savePolicy(long templateId, AgentPolicy policy, boolean duplicate) Saves new or updated policyvoidConvenience wrapper for sendEvent interface.voidsendEvent(long eventCode, String eventName, long objectId, String[] parameters, String[] paramerNames, String userTag, Date originTimestamp) Send event to server.voidConvenience wrapper for sendEvent interface.protected voidsendFile(long requestId, byte[] data, ProgressListener listener, boolean allowStreamCompression) Send block of data as binary messageprotected voidsendFile(long requestId, File file, ProgressListener listener, boolean allowStreamCompression, long offset) Send file over NXCPvoidsendMessage(NXCPMessage msg) Send message to servervoidsendNotification(String channelName, String phoneNumber, String subject, String message) Send Notification via server.protected voidCall notification handlers on all registered listenersvoidsetAddressList(int listId, List<InetAddressListElement> list) Set content of address list.voidsetAlarmFlowState(int state) Changes state of alarm status flow.voidsetAssetProperty(long objectId, String name, String value) Set asset property value.voidsetAttributeForCurrentUser(String name, String value) Set custom attribute for currently logged in user.voidsetClientAddress(String clientAddress) Set the client addressvoidsetClientInfo(String connClientInfo) Set client information stringvoidsetClientLanguage(String clientLanguage) Set client`s languagevoidsetClientType(int clientType) Set client type.voidsetCommandTimeout(int commandTimeout) Set command execution timeout.voidsetConnectTimeout(int connectTimeout) Set connect call timeout (must be set before connect call)voidsetDefaultServerValues(List<ServerVariable> varList) Set server configuration variables to defaultvoidsetIgnoreProtocolVersion(boolean ignoreProtocolVersion) If set to true, protocol version is not checked at connect.voidsetInterfacePeer(long localInterfaceId, long peerInterfaceId) Set peer interface for given interface.voidsetObjectACL(long objectId, Collection<AccessListElement> acl, boolean inheritAccessRights) Change object's ACL (wrapper for modifyObject())voidsetObjectCustomAttributes(long objectId, Map<String, CustomAttribute> attrList) Change object's custom attributes (wrapper for modifyObject())voidsetObjectMaintenanceMode(long objectId, boolean inMaintenance) Set maintenance mode for objectvoidsetObjectMaintenanceMode(long objectId, boolean inMaintenance, String comments) Set maintenance mode for objectvoidsetObjectManaged(long objectId, boolean isManaged) Set object's managed status.voidsetObjectName(long objectId, String name) Change object's name (wrapper for modifyObject())voidsetPersistentStorageValue(String key, String value) Set persistent storage value.voidsetRecvBufferSize(int defaultBufferSize, int maxBufferSize) Set receiver buffer size.voidsetServerConfigClob(String name, String value) Set server config CLOBvoidsetServerVariable(String name, String value) Set server configuration variablesetupTcpProxy(long nodeId, int port) Setup new TCP proxy channel to given node.setupTcpProxy(long proxyId, InetAddress address, int port) Setup new TCP proxy channel.voidsetUserPassword(int id, String newPassword, String oldPassword) Set password for uservoidsnmpWalk(long nodeId, String rootOid, SnmpWalkListener listener) Do SNMP walk.voidsnmpWalk(long nodeId, SnmpObjectId rootOid, SnmpWalkListener listener) Do SNMP walk.voidStart active discovery for provided list manuallyvoidstopScript(long vmId) Stop running NXSL script.voidstopServerCommand(long commandId) Stop server commandvoidSubscribe to notification channel.voidSubscribe to user change notificationssubstituteMacros(ObjectContextBase[] context, String textToExpand, Map<String, String> inputValues) Substitute macros in one string within multiple contexts.substituteMacros(ObjectContextBase context, List<String> textsToExpand, Map<String, String> inputValues) Substitute macros in multiple strings within one context.voidswapAgentConfigs(long id1, long id2) Swap sequence numbers of two server side agent configurations.voidSynchronize alarm category configuration.voidSynchronize asset management schema.voidsyncChildren(AbstractObject object) Sync children of given object.voidSynchronize event templates configuration.voidsyncMissingObjects(long[] objects) Synchronize only those objects from given set which are not synchronized yet.voidsyncMissingObjects(long[] objects, int options) Synchronize only those objects from given set which are not synchronized yet.voidsyncMissingObjects(long[] objects, long mapId, int options) Synchronize only those objects from given set which are not synchronized yet.voidsyncMissingObjects(Collection<Long> objects, int options) Synchronize only those objects from given set which are not synchronized yet.voidsyncMissingObjects(Collection<Long> objects, long mapId, int options) Synchronize only those objects from given set which are not synchronized yet.booleansyncMissingUsers(Collection<Integer> users) Synchronize only objects that were not yet synchronizedvoidSynchronize object categoriesvoidSynchronizes NetXMS objects between server and client.voidsyncObjects(boolean syncNodeComponents) Synchronizes NetXMS objects between server and client.voidsyncObjectSet(long[] objects) Synchronizes selected object set with the server.voidsyncObjectSet(long[] objects, int options) Synchronizes selected object set with the server.voidsyncObjectSet(long[] objects, long mapId, int options) Synchronizes selected object set with the server.voidsyncObjectSet(Collection<Long> objects, long mapId, int options) Synchronizes selected object set with the server.voidSynchronize user database and subscribe to user change notificationsvoidsyncUserSet(Collection<Integer> users) Synchronize users by id if does not existbyte[]takeScreenshot(long nodeId, String sessionName) Take screenshot from given node.voidterminateAlarm(long alarmId) Terminate alarm.voidterminateAlarm(String helpdeskReference) Terminate alarm by helpdesk reference.testTransformationScript(long nodeId, String script, String inputValue, DataCollectionObject dcObject) Test DCI transformation script.voidunbindAgentTunnel(long nodeId) Unbind agent tunnel to nodevoidunbindObject(long parentId, long childId) Unbind object.voiduninstallAgentPolicy(long policyId, long nodeId) Uninstall policy from agentvoidunlinkAsset(long assetId) Unlink asset from object it is currently linked to.voidunlinkHelpdeskIssue(long alarmId) Unlink helpdesk issue from alarm.voidunlinkHelpdeskIssue(String helpdeskReference) Unlink helpdesk issue from alarm.voidunsubscribe(String channel) Unsubscribe from notification channel.voidupdateAgentSharedSecrets(int zoneUIN, List<String> sharedSecrets) Update agent shared secret list on server.voidupdateAlarmComment(long alarmId, long commentId, String text) Update alarm comment.voidupdateAssetAttribute(AssetAttribute attribute) Update asset attribute (definition in asset management schema).intupdateMappingTable(MappingTable table) Create or update mapping table.voidupdateNetworkMapElementPosition(long mapId, Set<NetworkMapElement> elements, Set<NetworkMapLink> links) Update network map object locationvoidUpdate notification channelvoidupdateObjectComments(long objectId, String comments) Change object's comments.voidUpdate metadata for existing package.voidCreate new or update existing physical linkvoidupdateResponsibleUsers(long objectId, List<ResponsibleUser> users) Update list of responsible users for given object.voidUpdate existing scheduled task.voidupdateSnmpCommunities(int zoneUIN, List<String> communityStrings) Update list of well-known SNMP community strings on server.voidupdateSnmpUsmCredentials(int zoneUIN, List<SnmpUsmCredential> usmCredentials) Update list of well-known SNMP USM credentials on server.voidupdateSshCredentials(int zoneUIN, List<SSHCredentials> sshCredentials) Update list of well-known SSH credentials on the server.voidupdateSshKey(SshKeyPair sshCertificateData) Update or import new SSH keysvoidupdateWellKnownPorts(int zoneUIN, String tag, List<Integer> ports) Update list of well-known ports.longuploadFileToAgent(long nodeId, String serverFileName, String remoteFileName) Start file upload from server's file store to agent.voiduploadFileToServer(File localFile, String serverFileName, ProgressListener listener) Upload local file to server's file storevoiduploadLocalFileToAgent(long nodeId, File localFile, String remoteFileName, boolean overwrite, ProgressListener listener) Upload local file to remote node via agent.voiduploadMibFile(File localFile, String serverFileName, ProgressListener listener) Upload custom MIB file to server's file storebooleanvalidateProtocolVersions(int[] versions) Validate protocol versionsbooleanvalidateUserPassword(String password) Validate password for currently logged in userbooleanwaitForAgentTunnel(long nodeId, long timeout) Wait for bound tunnel for given node to appear.waitForFile(long id, int timeout) Wait for specific file to arrivewaitForFileUpdate(UUID monitorId, int timeout) Wait for update from specific file monitor.waitForMessage(int code, long id) Wait for message with specific code and id.waitForMessage(int code, long id, int timeout) Wait for message with specific code and id.waitForRCC(long id) Wait for CMD_REQUEST_COMPLETED message with given id using default timeoutwaitForRCC(long id, int timeout) Wait for CMD_REQUEST_COMPLETED message with given idvoidwakeupNode(long objectId) Wakeup node by sending wake-on-LAN magic packet.voidwriteAgentConfigurationFile(long nodeId, String config, boolean apply) Update agent's master configuration file.
- 
Field Details- 
DCI_RES_SEARCH_NAMEpublic static final int DCI_RES_SEARCH_NAME- See Also:
 
- 
DEFAULT_CONN_PORTpublic static final int DEFAULT_CONN_PORT- See Also:
 
- 
CHANNEL_AGENT_TUNNELS- See Also:
 
- 
CHANNEL_ALARMS- See Also:
 
- 
CHANNEL_AUDIT_LOG- See Also:
 
- 
CHANNEL_DC_THRESHOLDS- See Also:
 
- 
CHANNEL_GEO_AREAS- See Also:
 
- 
CHANNEL_EVENTS- See Also:
 
- 
CHANNEL_OBJECTS- See Also:
 
- 
CHANNEL_PACKAGE_JOBS- See Also:
 
- 
CHANNEL_SNMP_TRAPS- See Also:
 
- 
CHANNEL_SYSLOG- See Also:
 
- 
CHANNEL_USERDB- See Also:
 
- 
OBJECT_SYNC_NOTIFYpublic static final int OBJECT_SYNC_NOTIFY- See Also:
 
- 
OBJECT_SYNC_WAITpublic static final int OBJECT_SYNC_WAIT- See Also:
 
- 
OBJECT_SYNC_ALLOW_PARTIALpublic static final int OBJECT_SYNC_ALLOW_PARTIAL- See Also:
 
- 
CFG_IMPORT_REPLACE_EVENTSpublic static final int CFG_IMPORT_REPLACE_EVENTS- See Also:
 
- 
CFG_IMPORT_REPLACE_ACTIONSpublic static final int CFG_IMPORT_REPLACE_ACTIONS- See Also:
 
- 
CFG_IMPORT_REPLACE_TEMPLATESpublic static final int CFG_IMPORT_REPLACE_TEMPLATES- See Also:
 
- 
CFG_IMPORT_REPLACE_TRAPSpublic static final int CFG_IMPORT_REPLACE_TRAPS- See Also:
 
- 
CFG_IMPORT_REPLACE_SCRIPTSpublic static final int CFG_IMPORT_REPLACE_SCRIPTS- See Also:
 
- 
CFG_IMPORT_REPLACE_SUMMARY_TABLESpublic static final int CFG_IMPORT_REPLACE_SUMMARY_TABLES- See Also:
 
- 
CFG_IMPORT_REPLACE_OBJECT_TOOLSpublic static final int CFG_IMPORT_REPLACE_OBJECT_TOOLS- See Also:
 
- 
CFG_IMPORT_REPLACE_EPP_RULESpublic static final int CFG_IMPORT_REPLACE_EPP_RULES- See Also:
 
- 
CFG_IMPORT_REPLACE_TEMPLATE_NAMES_LOCATIONSpublic static final int CFG_IMPORT_REPLACE_TEMPLATE_NAMES_LOCATIONS- See Also:
 
- 
CFG_IMPORT_DELETE_EMPTY_TEMPLATE_GROUPSpublic static final int CFG_IMPORT_DELETE_EMPTY_TEMPLATE_GROUPS- See Also:
 
- 
CFG_IMPORT_REPLACE_WEB_SVCERVICE_DEFINITIONSpublic static final int CFG_IMPORT_REPLACE_WEB_SVCERVICE_DEFINITIONS- See Also:
 
- 
CFG_IMPORT_REPLACE_AM_DEFINITIONSpublic static final int CFG_IMPORT_REPLACE_AM_DEFINITIONS- See Also:
 
- 
ADDRESS_LIST_DISCOVERY_TARGETSpublic static final int ADDRESS_LIST_DISCOVERY_TARGETS- See Also:
 
- 
ADDRESS_LIST_DISCOVERY_FILTERpublic static final int ADDRESS_LIST_DISCOVERY_FILTER- See Also:
 
- 
SERVER_COMPONENT_DISCOVERY_MANAGERpublic static final int SERVER_COMPONENT_DISCOVERY_MANAGER- See Also:
 
- 
DESKTOP_CLIENTpublic static final int DESKTOP_CLIENT- See Also:
 
- 
WEB_CLIENTpublic static final int WEB_CLIENT- See Also:
 
- 
MOBILE_CLIENTpublic static final int MOBILE_CLIENT- See Also:
 
- 
TABLET_CLIENTpublic static final int TABLET_CLIENT- See Also:
 
- 
APPLICATION_CLIENTpublic static final int APPLICATION_CLIENT- See Also:
 
 
- 
- 
Constructor Details- 
NXCSessionCreate session object that will connect to given address on default port (4701) without encryption.- Parameters:
- connAddress- server host name or IP address
 
- 
NXCSessionCreate session object that will connect to given address on given port without encryption.- Parameters:
- connAddress- server host name or IP address
- connPort- TCP port
 
- 
NXCSessionCreate session object that will connect to given address on given port.- Parameters:
- connAddress- server host name or IP address
- connPort- TCP port
- enableCompression- enable message compression
 
 
- 
- 
Method Details- 
createCustomObjectFromMessageCreate custom object from NXCP message. May be overridden by derived classes to create custom NetXMS objects. This method called before standard object creation, so it can be used for overriding standard object classes. If this method returns null, standard object creation mechanism will be used. Default implementation will always return null.- Parameters:
- objectClass- NetXMS object class ID
- msg- Source NXCP message
- Returns:
- NetXMS object or null if object cannot be created
 
- 
addListenerAdd notification listener- Parameters:
- listener- Listener to add
 
- 
removeListenerRemove notification listener- Parameters:
- listener- Listener to remove
 
- 
addConsoleListenerAdd server console listener- Parameters:
- listener- The ServerConsoleListener to add
 
- 
removeConsoleListenerRemove server console listener- Parameters:
- listener- The ServerConsoleListener to remove
 
- 
addMessageSubscriptionSubscribe to specific messages- Parameters:
- messageCode- The message code
- messageId- The message ID
- handler- The message handler
 
- 
removeMessageSubscriptionpublic void removeMessageSubscription(int messageCode, long messageId) Remove message subscription- Parameters:
- messageCode- The message code
- messageId- The message ID
 
- 
sendNotificationCall notification handlers on all registered listeners- Parameters:
- n- Notification object
 
- 
sendMessageSend message to server- Parameters:
- msg- Message to sent
- Throws:
- IOException- in case of socket communication failure
- NXCException- in case of encryption error
 
- 
sendFileprotected void sendFile(long requestId, File file, ProgressListener listener, boolean allowStreamCompression, long offset) throws IOException, NXCException Send file over NXCP- Parameters:
- requestId- request ID
- file- source file to be sent
- listener- progress listener
- allowStreamCompression- true if data stream compression is allowed
- offset- offset to start data send or 0 if from the start
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
sendFileprotected void sendFile(long requestId, byte[] data, ProgressListener listener, boolean allowStreamCompression) throws IOException, NXCException Send block of data as binary message- Parameters:
- requestId- request ID
- data- file data
- listener- progress listener
- allowStreamCompression- true if data stream compression is allowed
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
waitForMessageWait for message with specific code and id.- Parameters:
- code- Message code
- id- Message id
- timeout- Wait timeout in milliseconds
- Returns:
- Message object
- Throws:
- NXCException- if message was not arrived within timeout interval
 
- 
waitForMessageWait for message with specific code and id.- Parameters:
- code- Message code
- id- Message id
- Returns:
- Message object
- Throws:
- NXCException- if message was not arrived within timeout interval
 
- 
waitForRCCWait for CMD_REQUEST_COMPLETED message with given id using default timeout- Parameters:
- id- Message id
- Returns:
- received message
- Throws:
- NXCException- if message was not arrived within timeout interval or contains RCC other than RCC.SUCCESS
 
- 
waitForRCCWait for CMD_REQUEST_COMPLETED message with given id- Parameters:
- id- Message id
- timeout- Timeout in milliseconds
- Returns:
- received message
- Throws:
- NXCException- if message was not arrived within timeout interval or contains RCC other than RCC.SUCCESS
 
- 
newMessageCreate new NXCP message with unique id- Parameters:
- code- Message code
- Returns:
- New message object
 
- 
waitForFileWait for specific file to arrive- Parameters:
- id- Message ID
- timeout- Timeout (since arrival of last received file part) in milliseconds to consider file transfer as timed out
- Returns:
- Received file or null in case of failure
 
- 
waitForFileUpdateWait for update from specific file monitor.- Parameters:
- monitorId- file monitor ID (previously returned by- downloadFileFromAgent
- timeout- Wait timeout in milliseconds
- Returns:
- Received tail string or null in case of failure
 
- 
executeSimpleCommandExecute simple commands (without arguments and only returning RCC)- Parameters:
- command- Command code
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
receiveTableReceive table from server.- Parameters:
- requestId- request ID
- msgCode- Message code
- Returns:
- Received table
- Throws:
- NXCException- if operation was timed out
 
- 
connectConnect to NetMS server. Establish connection with the server and set up encryption if required. Only base protocol version check will be performed. Login must be performed before using session after successful connect.- Throws:
- IOException- if socket I/O error occurs
- UnknownHostException- if the host is unknown
- NXCException- if NetXMS server returns an error or operation was timed out
- IllegalStateException- if the state is illegal
 
- 
connectpublic void connect(int[] componentVersions) throws IOException, UnknownHostException, NXCException, IllegalStateException Connect to NetMS server. Establish connection with the server and set up encryption if required. Versions of protocol components given in *componentVersions* will be validated. Login must be performed before using session after successful connect.- Parameters:
- componentVersions- The versions of the components
- Throws:
- IOException- if socket I/O error occurs
- UnknownHostException- if the host is unknown
- NXCException- if NetXMS server returns an error or operation was timed out
- IllegalStateException- if the state is illegal
 
- 
loginpublic void login(String login, String password) throws NXCException, IOException, IllegalStateException Login to server using login name and password.- Parameters:
- login- login name
- password- password
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
- IllegalStateException- if the state is illegal
 
- 
loginLogin to server using authentication token.- Parameters:
- token- authentication token
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
- IllegalStateException- if the state is illegal
 
- 
loginpublic void login(String login, Certificate certificate, Signature signature) throws NXCException, IOException, IllegalStateException Login to server using certificate.- Parameters:
- login- login name
- certificate- user's certificate
- signature- user's digital signature
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
- IllegalStateException- if the state is illegal
 
- 
loginpublic void login(AuthenticationType authType, String login, String password, Certificate certificate, Signature signature, TwoFactorAuthenticationCallback twoFactorAuthenticationCallback) throws NXCException, IOException, IllegalStateException Login to server.- Parameters:
- authType- authentication type
- login- login name
- password- password
- certificate- user's certificate
- signature- user's digital signature
- twoFactorAuthenticationCallback- callback for handling two-factor authentication if requested by server
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
- IllegalStateException- if the state is illegal
 
- 
requestAuthenticationTokenRequest new ephemetral authentication token for this session from server.- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
requestAuthenticationTokenpublic AuthenticationToken requestAuthenticationToken(boolean persistent, int validFor, String description, int userId) throws IOException, NXCException Request new authentication token from server.- Parameters:
- persistent- true to request persistent token
- validFor- token validity time in seconds
- description- optional token description (can be null)
- userId- user ID to issue token for (0 to indicate currently logged in user)
- Returns:
- token ID for persistent tokens or 0 for ephemeral
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
revokeAuthenticationTokenRevoke persistent auithentication token.- Parameters:
- tokenId- token ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAuthenticationTokenspublic List<AuthenticationToken> getAuthenticationTokens(int userId) throws IOException, NXCException Get list of active authentication tokens for given user.- Parameters:
- userId- user ID to get token list for (0 to indicate currently logged in user)
- Returns:
- list of tokens
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
disconnectpublic void disconnect()Disconnect from server.
- 
disconnectInactiveSessionpublic void disconnectInactiveSession()Disconnect from server because of user inactivity. This method differs fromdisconnectin that it will send appropriate notification to session listeners.
- 
isReconnectEnabledpublic boolean isReconnectEnabled()Check if background reconnect is enabled.- Returns:
- true if background reconnect is enabled
 
- 
enableReconnectpublic void enableReconnect(boolean enable) Enable or disable background reconnect.- Parameters:
- enable- true to enable background session reconnect
 
- 
isConnectedpublic boolean isConnected()Get connection state- Returns:
- connection state
 
- 
isIgnoreProtocolVersionpublic boolean isIgnoreProtocolVersion()Get the state of protocol version check- Returns:
- true if protocol version should not be checked
 
- 
setIgnoreProtocolVersionpublic void setIgnoreProtocolVersion(boolean ignoreProtocolVersion) If set to true, protocol version is not checked at connect.- Parameters:
- ignoreProtocolVersion- true if protocol version should not be checked
 
- 
validateProtocolVersionspublic boolean validateProtocolVersions(int[] versions) Validate protocol versions- Parameters:
- versions- the protocol versions
- Returns:
- true if protocol versions are valid
 
- 
getDefaultRecvBufferSizepublic int getDefaultRecvBufferSize()Get default receiver buffer size.- Returns:
- Default receiver buffer size in bytes.
 
- 
getMaxRecvBufferSizepublic int getMaxRecvBufferSize()Get max receiver buffer size.- Returns:
- Max receiver buffer size in bytes.
 
- 
setRecvBufferSizepublic void setRecvBufferSize(int defaultBufferSize, int maxBufferSize) Set receiver buffer size. This method should be called before connect(). It will not have any effect after connect().- Parameters:
- defaultBufferSize- default size of receiver buffer in bytes.
- maxBufferSize- max size of receiver buffer in bytes.
 
- 
getServerAddressGet server address- Returns:
- Server address
 
- 
getServerVersionGet NetXMS server version.- Returns:
- Server version
 
- 
getServerBuildGet NetXMS server build information.- Returns:
- Server version
 
- 
getServerIdpublic long getServerId()Get NetXMS server UID.- Returns:
- Server UID
 
- 
getServerTimeZoneGet server time zone.- Returns:
- server's time zone string
 
- 
getServerNameGet server name- Returns:
- the serverName
 
- 
getServerColorGet server identification colour- Returns:
- the serverColor
 
- 
getServerTimepublic long getServerTime()Get server time- Returns:
- the serverTime
 
- 
getObjectMaintenancePredefinedPeriods- Returns:
- the objectMaintenancePredefinedPeriods
 
- 
getServerChallengepublic byte[] getServerChallenge()- Returns:
- the serverChallenge
 
- 
isServerComponentRegisteredCheck if server component with given id is registered- Parameters:
- componentId- The component ID
- Returns:
- true if server component is registered
 
- 
getRegisteredServerComponentsGet list of registered server components- Returns:
- Array of registered server components
 
- 
getTileServerURLGet server URL- Returns:
- the tileServerURL
 
- 
isZoningEnabledpublic boolean isZoningEnabled()Get the state of zoning- Returns:
- true if zoning is enabled
 
- 
isHelpdeskLinkActivepublic boolean isHelpdeskLinkActive()Get status of helpdesk integration module on server.- Returns:
- true if helpdesk integration module loaded on server
 
- 
getClientInfoGet client information string- Returns:
- The client information
 
- 
setClientInfoSet client information string- Parameters:
- connClientInfo- The client info to set
 
- 
setCommandTimeoutpublic void setCommandTimeout(int commandTimeout) Set command execution timeout.- Parameters:
- commandTimeout- New command timeout
 
- 
setConnectTimeoutpublic void setConnectTimeout(int connectTimeout) Set connect call timeout (must be set before connect call)- Parameters:
- connectTimeout- connect timeout in milliseconds
 
- 
getUserIdpublic int getUserId()Get identifier of logged in user.- Returns:
- Identifier of logged in user
 
- 
getUserNameGet the current user name- Returns:
- the userName
 
- 
getAuthenticationMethodGet the current authentication method- Returns:
- the authenticationMethod
 
- 
getUserSystemRightspublic long getUserSystemRights()Get system-wide rights of currently logged in user.- Returns:
- System-wide rights of currently logged in user
 
- 
getUIAccessRulesGet user interface access rules.- Returns:
- user interface access rules
 
- 
getMessageOfTheDayGet message of the day if server config is set- Returns:
- Message of the day
 
- 
getLicenseProblemsGet list of license problems reported by server. This method will always return null for community edition server.- Returns:
- list of license problems reported by server or null if there are none
 
- 
hasLicenseProblemspublic boolean hasLicenseProblems()Check if server has any license problems.- Returns:
- true if server has any license problems
 
- 
isPasswordExpiredpublic boolean isPasswordExpired()Check if password is expired for currently logged in user.- Returns:
- true if password is expired
 
- 
getGraceLoginspublic int getGraceLogins()Get number of remaining grace logins- Returns:
- number of remaining grace logins
 
- 
getAlarmListDisplayLimitpublic int getAlarmListDisplayLimit()Get maximum number of records allowed to be displayed in alarm list- Returns:
- The limit of alarms displayed
 
- 
getClientConfigurationHintGet client configuration hint as string- Parameters:
- name- hint name
- defaultValue- default value (returned if given hint was not provided by server)
- Returns:
- hint value as provided by server or default value
 
- 
getClientConfigurationHintGet client configuration hint as string- Parameters:
- name- hint name
- Returns:
- hint value as provided by server or null
 
- 
getClientConfigurationHintAsIntGet client configuration hint as integer- Parameters:
- name- hint name
- defaultValue- default value (returned if given hint was not provided by server or is not valid integer)
- Returns:
- hint value as provided by server or default value
 
- 
getClientConfigurationHintAsBooleanGet client configuration hint as boolean- Parameters:
- name- hint name
- defaultValue- default value (returned if given hint was not provided by server or is not valid boolean)
- Returns:
- hint value as provided by server or default value
 
- 
getResponsibleUserTagsGet allowed tags for responsible users.- Returns:
- allowed tags for responsible users
 
- 
syncObjectCategoriesSynchronize object categories- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getObjectCategoryGet object category by ID- Parameters:
- categoryId- object category ID
- Returns:
- object category or null
 
- 
getObjectCategoriesGet all object categories.- Returns:
- all object categories
 
- 
modifyObjectCategoryModify object category.- Parameters:
- category- updated category object
- Returns:
- ID of category object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteObjectCategorypublic void deleteObjectCategory(int categoryId, boolean forceDelete) throws IOException, NXCException Delete object category. This method will fail if category is in use (set to at least one object) unless forceDelete parameter set to true.- Parameters:
- categoryId- category ID
- forceDelete- force deletion flag - if set to true category will be deleted even if in use
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncObjectsSynchronizes NetXMS objects between server and client. After successful sync, subscribe client to object change notifications.- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncObjectsSynchronizes NetXMS objects between server and client. After successful sync, subscribe client to object change notifications.- Parameters:
- syncNodeComponents- defines if node components should be synced
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncObjectSetSynchronizes selected object set with the server.- Parameters:
- objects- identifiers of objects need to be synchronized
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncObjectSetSynchronizes selected object set with the server. The following options are accepted:
 OBJECT_SYNC_NOTIFY- send object update notification for each received object
 OBJECT_SYNC_WAIT- wait until all requested objects received- Parameters:
- objects- identifiers of objects need to be synchronized
- options- sync options (see above)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncObjectSetSynchronizes selected object set with the server. The following options are accepted:
 OBJECT_SYNC_NOTIFY- send object update notification for each received object
 OBJECT_SYNC_WAIT- wait until all requested objects received
 OBJECT_SYNC_ALLOW_PARTIAL- allow reading partial object information (map ID should be set to get partial access to objects)- Parameters:
- objects- identifiers of objects need to be synchronized
- mapId- ID of map object to be used as reference if OBJECT_SYNC_ALLOW_PARTIAL is set
- options- sync options (see above)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncObjectSetpublic void syncObjectSet(Collection<Long> objects, long mapId, int options) throws IOException, NXCException Synchronizes selected object set with the server. The following options are accepted:
 OBJECT_SYNC_NOTIFY- send object update notification for each received object
 OBJECT_SYNC_WAIT- wait until all requested objects received
 OBJECT_SYNC_ALLOW_PARTIAL- allow reading partial object information (map ID should be set to get partial access to objects)- Parameters:
- objects- identifiers of objects need to be synchronized
- mapId- ID of map object to be used as reference if OBJECT_SYNC_ALLOW_PARTIAL is set
- options- sync options (see above)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncMissingObjectsSynchronize only those objects from given set which are not synchronized yet.- Parameters:
- objects- identifiers of objects need to be synchronized
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncMissingObjectsSynchronize only those objects from given set which are not synchronized yet. Accepts all options which are valid for syncObjectSet.- Parameters:
- objects- identifiers of objects need to be synchronized
- options- sync options (see comments for syncObjectSet)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncMissingObjectspublic void syncMissingObjects(long[] objects, long mapId, int options) throws IOException, NXCException Synchronize only those objects from given set which are not synchronized yet. Accepts all options which are valid for syncObjectSet.- Parameters:
- objects- identifiers of objects need to be synchronized
- mapId- ID of map object to be used as reference if OBJECT_SYNC_ALLOW_PARTIAL is set
- options- sync options (see comments for syncObjectSet)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncMissingObjectspublic void syncMissingObjects(Collection<Long> objects, int options) throws IOException, NXCException Synchronize only those objects from given set which are not synchronized yet. Accepts all options which are valid for syncObjectSet.- Parameters:
- objects- identifiers of objects need to be synchronized
- options- sync options (see comments for syncObjectSet)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncMissingObjectspublic void syncMissingObjects(Collection<Long> objects, long mapId, int options) throws IOException, NXCException Synchronize only those objects from given set which are not synchronized yet. Accepts all options which are valid for syncObjectSet.- Parameters:
- objects- identifiers of objects need to be synchronized
- mapId- ID of map object to be used as reference if OBJECT_SYNC_ALLOW_PARTIAL is set
- options- sync options (see comments for syncObjectSet)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncChildrenSync children of given object.- Parameters:
- object- parent object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
areChildrenSynchronizedpublic boolean areChildrenSynchronized(long id) Returns true if children are already synchronized for given object.- Parameters:
- id- object id
- Returns:
- true if children are synchronized
 
- 
findObjectByRegexFind object by regex- Parameters:
- regex- for object name
- Returns:
- list of matching objects
 
- 
findObjectByIdFind NetXMS object by it's identifier.- Parameters:
- id- Object identifier
- Returns:
- Object with given ID or null if object cannot be found
 
- 
findObjectByIdFind NetXMS object by it's identifier as full object or as partial object- Parameters:
- id- Object identifier
- allowPartial- true to allow returning objects with partial data
- Returns:
- Object with given ID or null if object cannot be found
 
- 
findFutureObjectByIdpublic org.netxms.client.FutureObject findFutureObjectById(long id) Find NetXMS object by it's identifier or return wait an object to wait on- Parameters:
- id- Object identifier
- Returns:
- Object to wait on if object not found. If object is found it will be already set inside
 
- 
findObjectAsyncFind NetXMS object by it's identifier and execute provided callback once found- Parameters:
- id- Object identifier
- callback- callback to be called when object is found
 
- 
findObjectByIdFind NetXMS object by it's identifier with additional class checking.- Type Parameters:
- T- Object
- Parameters:
- id- object identifier
- requiredClass- required object class
- Returns:
- Object with given ID or null if object cannot be found or is not an instance of required class
 
- 
findMultipleObjectsFind multiple NetXMS objects by identifiers- Parameters:
- idList- array of object identifiers
- returnUnknown- if true, this method will return UnknownObject placeholders for unknown object identifiers
- Returns:
- list of found objects
 
- 
findMultipleObjectspublic List<AbstractObject> findMultipleObjects(long[] idList, Class<? extends AbstractObject> classFilter, boolean returnUnknown) Find multiple NetXMS objects by identifiers- Parameters:
- idList- array of object identifiers
- classFilter- class filter for objects, or null to disable filtering
- returnUnknown- if true, this method will return UnknownObject placeholders for unknown object identifiers
- Returns:
- list of found objects
 
- 
findMultipleObjectsFind multiple NetXMS objects by identifiers- Parameters:
- idList- collection of object identifiers
- returnUnknown- if true, this method will return UnknownObject placeholders for unknown object identifiers
- Returns:
- array of found objects
 
- 
findMultipleObjectspublic List<AbstractObject> findMultipleObjects(Collection<Long> idList, Class<? extends AbstractObject> classFilter, boolean returnUnknown) Find multiple NetXMS objects by identifiers- Parameters:
- idList- collection of object identifiers
- classFilter- class filter for objects, or null to disable filtering
- returnUnknown- if true, this method will return UnknownObject placeholders for unknown object identifiers
- Returns:
- array of found objects
 
- 
findObjectByGUIDFind NetXMS object by it's GUID.- Parameters:
- guid- Object GUID
- Returns:
- Object with given ID or null if object cannot be found
 
- 
findObjectByGUIDFind NetXMS object by it's GUID with additional class checking.- Type Parameters:
- T- Object
- Parameters:
- guid- object GUID
- requiredClass- required object class
- Returns:
- Object with given ID or null if object cannot be found or is not an instance of required class
 
- 
findZoneFind zone object by zone UIN (unique identification number).- Parameters:
- zoneUIN- zone UIN to find
- Returns:
- zone object or null
 
- 
getAllZonesGet all accessible zone objects- Returns:
- list of all accessible zone objects
 
- 
findObjectByNameFind object by name. If multiple objects with same name exist, it is not determined what object will be returned. Name comparison is case-insensitive.- Parameters:
- name- object name to find
- Returns:
- object with matching name or null
 
- 
findObjectByNameFind object by name with object filter. Name comparison is case-insensitive.- Parameters:
- name- object name to find
- filter- TODO
- Returns:
- object with matching name or null
 
- 
findObjectByNamePatternFind object by name using regular expression. If multiple objects with same name exist, it is not determined what object will be returned. Name comparison is case-insensitive.- Parameters:
- pattern- regular expression for matching object name
- Returns:
- object with matching name or null
 
- 
findObjectGeneric object find using filter. WIll return first object matching given filter.- Parameters:
- filter- ObjectFilter to filter the result
- Returns:
- first matching object or null
 
- 
filterObjectsFind all objects matching given filter.- Parameters:
- filter- ObjectFilter to filter the result
- Returns:
- list of matching objects (empty list if nothing found)
 
- 
getTopLevelObjectsGet list of top-level objects matching given object filter. Filter may be null.- Parameters:
- objectFilter- filter for objects
- Returns:
- List of all matching top level objects (either without parents or with inaccessible parents)
 
- 
getTopLevelObjectsGet list of top-level objects matching given class filter. Class filter may be null to ignore object class.- Parameters:
- classFilter- To filter the classes
- Returns:
- List of all top matching level objects (either without parents or with inaccessible parents)
 
- 
getTopLevelObjectsGet list of top-level objects.- Returns:
- List of all top level objects (either without parents or with inaccessible parents)
 
- 
getAllObjectsGet list of all objects- Returns:
- List of all objects
 
- 
getObjectNameGet object name by ID.- Parameters:
- objectId- object ID
- Returns:
- object name if object is known, or string in form [<object_id>] for unknown objects
 
- 
getObjectNameWithAliasGet object name with alias by ID.- Parameters:
- objectId- object ID
- Returns:
- object name with alias if object is known, or string in form [<object_id>] for unknown objects
 
- 
getZoneNameGet zone name by UIN- Parameters:
- zoneUIN- zone UIN
- Returns:
- zone name
 
- 
queryObjectspublic List<AbstractObject> queryObjects(String query, long rootObjectId, Consumer<Integer> progressCallback) throws IOException, NXCException Query objects on server side, optionally only those located below given root object. If progress callback is not null, it will be called periodically during query with updated completion percentage.- Parameters:
- query- query to execute
- rootObjectId- root object ID or 0 to query all objects
- progressCallback- optional progress callback
- Returns:
- list of matching objects
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryObjectspublic List<AbstractObject> queryObjects(String query, Consumer<Integer> progressCallback) throws IOException, NXCException Query objects on server side. If progress callback is not null, it will be called periodically during query with updated completion percentage.- Parameters:
- query- query to execute
- progressCallback- optional progress callback
- Returns:
- list of matching objects
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryObjectDetailspublic List<ObjectQueryResult> queryObjectDetails(String query, long rootObjectId, List<String> properties, List<String> orderBy, Map<String, String> inputFields, long contextObjectId, boolean readAllComputedProperties, int limit, Consumer<Integer> progressCallback) throws IOException, NXCExceptionQuery objects on server side and read certain object properties. Available properties are the same as in corresponding NXSL objects or computed properties set using "with" statement in query. IfreadAllComputedPropertiesis set totruethen all computed properties will be retrieved in addition to those explicitly listed. Set of queried objects can be limited to child objects of certain object. If progress callback is not null, it will be called periodically during query with updated completion percentage.- Parameters:
- query- query to execute
- rootObjectId- ID of root object or 0 to query all objects
- properties- object properties to read
- orderBy- list of properties for ordering result set (can be null)
- inputFields- set of input fields provided by user (can be null)
- contextObjectId- ID of context object (will be available in query via global variable $context), 0 if none
- readAllComputedProperties- if set to- true, query will return all computed properties in addition to properties explicitly listed in- propertiesparameter
- limit- limit number of records (0 for unlimited)
- progressCallback- optional progress callback
- Returns:
- list of matching objects
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getObjectQueriesGet list of configured object queries.- Returns:
- list of configured object queries
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyObjectQueryModify object query. If query ID is 0 new query object will be created and assigned ID will be returned.- Parameters:
- query- query to create or modify
- Returns:
- assigned query ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteObjectQueryDelete predefined object query.- Parameters:
- queryId- query ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAlarmsGet list of active alarms. For accessing terminated alarms log view API should be used.- Returns:
- Hash map containing alarms
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAlarmGet information about single active alarm. Terminated alarms cannot be accessed with this call.- Parameters:
- alarmId- alarm ID
- Returns:
- alarm object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAlarmEventsGet information about events related to single active alarm. Information for terminated alarms cannot be accessed with this call. User must have "view alarms" permission on alarm's source node and "view event log" system-wide access.- Parameters:
- alarmId- alarm ID
- Returns:
- list of related events
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
acknowledgeAlarmpublic void acknowledgeAlarm(long alarmId, boolean sticky, int time) throws IOException, NXCException Acknowledge alarm.- Parameters:
- alarmId- Identifier of alarm to be acknowledged.
- sticky- if set to true, acknowledged state will be made "sticky" (duplicate alarms with same key will not revert it back to outstanding)
- time- timeout for sticky acknowledge in seconds (0 for infinite)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
acknowledgeAlarmAcknowledge alarm.- Parameters:
- alarmId- Identifier of alarm to be acknowledged.
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
acknowledgeAlarmAcknowledge alarm by helpdesk reference.- Parameters:
- helpdeskReference- Helpdesk issue reference (e.g. JIRA issue key)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
resolveAlarmResolve alarm.- Parameters:
- alarmId- Identifier of alarm to be resolved.
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
resolveAlarmResolve alarm by helpdesk reference.- Parameters:
- helpdeskReference- Identifier of alarm to be resolved.
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
terminateAlarmTerminate alarm.- Parameters:
- alarmId- Identifier of alarm to be terminated.
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
terminateAlarmTerminate alarm by helpdesk reference.- Parameters:
- helpdeskReference- Identifier of alarm to be resolved.
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
bulkResolveAlarmsBulk terminate alarms.- Parameters:
- alarmIds- Identifiers of alarms to be terminated.
- Returns:
- true if all alarms were terminated, false if some, or all, were not terminated
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
bulkTerminateAlarmsBulk terminate alarms.- Parameters:
- alarmIds- Identifiers of alarms to be terminated.
- Returns:
- true if all alarms were terminated, false if some, or all, were not terminated
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteAlarmDelete alarm.- Parameters:
- alarmId- Identifier of alarm to be deleted.
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
openHelpdeskIssueOpen issue in helpdesk system from given alarm- Parameters:
- alarmId- alarm identifier
- Returns:
- helpdesk issue identifier
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getHelpdeskIssueUrlGet URL for helpdesk issue associated with given alarm- Parameters:
- alarmId- The ID of alarm
- Returns:
- URL of helpdesk issue
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
unlinkHelpdeskIssueUnlink helpdesk issue from alarm. User must have OBJECT_ACCESS_UPDATE_ALARMS access right on alarm's source object and SYSTEM_ACCESS_UNLINK_ISSUES system wide access right.- Parameters:
- helpdeskReference- The helpdesk reference
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
unlinkHelpdeskIssueUnlink helpdesk issue from alarm. User must have OBJECT_ACCESS_UPDATE_ALARMS access right on alarm's source object and SYSTEM_ACCESS_UNLINK_ISSUES system wide access right.- Parameters:
- alarmId- alarm id
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAlarmCommentsGet list of comments for given alarm.- Parameters:
- alarmId- alarm ID
- Returns:
- list of alarm comments
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteAlarmCommentDelete alarm comment.- Parameters:
- alarmId- alarm ID
- commentId- comment ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createAlarmCommentCreate alarm comment.- Parameters:
- alarmId- The alarm ID
- text- The comment text
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createAlarmCommentpublic void createAlarmComment(String helpdeskReference, String text) throws IOException, NXCException Create alarm comment by helpdesk reference.- Parameters:
- helpdeskReference- The helpdesk reference
- text- The reference text
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateAlarmCommentpublic void updateAlarmComment(long alarmId, long commentId, String text) throws IOException, NXCException Update alarm comment. If alarmId == 0 — new comment will be created.- Parameters:
- alarmId- alarm ID
- commentId- comment ID or 0 for creating new comment
- text- message text
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setAlarmFlowStateChanges state of alarm status flow. Strict or not - terminate state can be set only after resolve state or after any state.- Parameters:
- state- state of alarm status flow - strict or not (1 or 0)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getServerVariablesGet server configuration variables- Returns:
- The server variables
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getPublicServerVariableGet server public configuration variable- Parameters:
- name- configuration variable name
- Returns:
- value of requested configuration variable
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getPublicServerVariableAsIntGet server public configuration variable as a int- Parameters:
- name- configuration variable name
- Returns:
- value of requested configuration variable
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getPublicServerVariableAsBooleanGet server public configuration variable as boolen value- Parameters:
- name- configuration variable name
- Returns:
- value of requested configuration variable
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setServerVariableSet server configuration variable- Parameters:
- name- The name of the variable
- value- The value of the variable
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteServerVariableDelete server configuration variable- Parameters:
- name- The name of the variable
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setDefaultServerValuesSet server configuration variables to default- Parameters:
- varList- The list of variables
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getServerConfigClobGet server config CLOB- Parameters:
- name- The name of the config
- Returns:
- The config CLOB
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setServerConfigClobSet server config CLOB- Parameters:
- name- The name to set
- value- The value to set
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
subscribeSubscribe to notification channel. Each subscribe call should be matched by unsubscribe call. Calling subscribe on already subscribed channel will increase internal counter, and subscription will be cancelled when this counter returns back to 0.- Parameters:
- channel- Notification channel to subscribe to.
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
unsubscribeUnsubscribe from notification channel.- Parameters:
- channel- Notification channel to unsubscribe from.
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncUserDatabaseSynchronize user database and subscribe to user change notifications- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
subscribeToUserDBUpdatesSubscribe to user change notifications- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncUserSetSynchronize users by id if does not exist- Parameters:
- users- list of user id's to synchronize
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncMissingUsersSynchronize only objects that were not yet synchronized- Parameters:
- users- set of user IDs to sync
- Returns:
- true if synchronization was completed and false if synchronization is not needed
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
isUserDatabaseSynchronizedpublic boolean isUserDatabaseSynchronized()Check if user database is synchronized with client- Returns:
- true if user database is synchronized with client
 
- 
findUserDBObjectsByIdsFind multiple users by list of IDs- Parameters:
- ids- of user DBObjects to find
- Returns:
- list of found users
 
- 
findUserDBObjectByIdFind user or group by ID. If full user database synchronization was not done this method may return null for existing user that is not yet synchronized with the client. In such case client library will initiate background synchronization of that user object. If provided callback is not null it will be executed when synchronization is complete.- Parameters:
- id- The user database object ID
- callback- synchronization completion callback (may be null)
- Returns:
- User object with given ID or null if such user does not exist or not synchronized with client.
 
- 
findUserDBObjectByGUIDFind user or group by GUID- Parameters:
- guid- The user DBObject GUID
- Returns:
- User object with given GUID or null if such user does not exist
 
- 
findUserDBObjectByNamepublic AbstractUserObject findUserDBObjectByName(String name, Class<? extends AbstractUserObject> classFilter) Find user or group by name.- Parameters:
- name- user database object name
- classFilter- optional class filter. If not null, only objects of given class will be matched.
- Returns:
- User object with given name or null if such object does not exist
 
- 
getUserDatabaseObjectsGet list of all user database objects- Returns:
- List of all user database objects
 
- 
createUserCreate user on server- Parameters:
- name- Login name for new user
- Returns:
- ID assigned to newly created user
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createUserGroupCreate user group on server- Parameters:
- name- Name for new user group
- Returns:
- ID assigned to newly created user group
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteUserDBObjectDelete user or group on server- Parameters:
- id- User or group ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setUserPasswordpublic void setUserPassword(int id, String newPassword, String oldPassword) throws IOException, NXCException Set password for user- Parameters:
- id- User ID
- newPassword- New password
- oldPassword- Old password
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
validateUserPasswordValidate password for currently logged in user- Parameters:
- password- password to validate
- Returns:
- true if password is valid
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyUserDBObjectpublic void modifyUserDBObject(AbstractUserObject object, int fields) throws IOException, NXCException Modify user database object- Parameters:
- object- User data
- fields- bit mask indicating fields to modify
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyUserDBObjectModify user database object- Parameters:
- object- User data
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
detachUserFromLdapDetach user from LDAP- Parameters:
- userId- user ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setAttributeForCurrentUserSet custom attribute for currently logged in user. Server will allow to change only attributes whose name starts with dot.- Parameters:
- name- Attribute's name
- value- New attribute's value
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAttributeForCurrentUserGet custom attribute for currently logged in user. If attribute is not set, empty string will be returned.- Parameters:
- name- Attribute's name
- Returns:
- Attribute's value
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
findMatchingDCIpublic List<DciValue> findMatchingDCI(long objectId, String objectName, String dciName, int flags) throws IOException, NXCException Find all DCIs matching given creteria.- Parameters:
- objectId- if specific object needed (set to 0 if match by object name is needed)
- objectName- regular expression to match object name (not used if object ID is not 0)
- dciName- regular expression to match DCI name
- flags- find flags
- Returns:
- list of all found DCIs and their last values
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getDataCollectionSummarypublic DciValue[] getDataCollectionSummary(long nodeId, boolean objectTooltipOnly, boolean overviewOnly, boolean includeNoValueObjects) throws IOException, NXCException Get DCI summary for given node- Parameters:
- nodeId- ID of the node to get DCI values for
- objectTooltipOnly- if set to true, only DCIs with DCF_SHOW_ON_OBJECT_TOOLTIP flag set are returned
- overviewOnly- if set to true, only DCIs with DCF_SHOW_IN_OBJECT_OVERVIEW flag set are returned
- includeNoValueObjects- if set to true, objects with no value (like instance discovery DCIs) will be returned as well
- Returns:
- List of DCI values
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getDataCollectionSummarypublic DciValue[] getDataCollectionSummary(long nodeId, long mapId, boolean objectTooltipOnly, boolean overviewOnly, boolean includeNoValueObjects) throws IOException, NXCException Get DCI summary for given node and map- Parameters:
- nodeId- ID of the node to get DCI values for
- objectTooltipOnly- if set to true, only DCIs with DCF_SHOW_ON_OBJECT_TOOLTIP flag set are returned
- overviewOnly- if set to true, only DCIs with DCF_SHOW_IN_OBJECT_OVERVIEW flag set are returned
- includeNoValueObjects- if set to true, objects with no value (like instance discovery DCIs) will be returned as well
- Returns:
- List of DCI values
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getLastValuesGet last DCI values for given node- Parameters:
- nodeId- ID of the node to get DCI values for
- Returns:
- List of DCI values
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getTooltipLastValuespublic Map<Long,DciValue[]> getTooltipLastValues(Set<Long> nodeList) throws IOException, NXCException Get tooltip last values for all objects- Parameters:
- nodeList- list of node IDs
- Returns:
- map with node id to DCI last values
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getLastValuesGet last DCI values for given Map DCI Instance list- Parameters:
- mapDcis- List with Map DCI Instances
- Returns:
- List of DCI values
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getLastValuespublic DciValue[] getLastValues(List<? extends MapDataSource> dciConfig) throws IOException, NXCException Get last DCI values for given Single Dci Config list- Parameters:
- dciConfig- List with Single Dci Configs
- Returns:
- List of DCI values
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getActiveThresholdspublic List<Threshold> getActiveThresholds(List<MapDataSource> dciConfig) throws IOException, NXCException Get active thresholds- Parameters:
- dciConfig- Dci config
- Returns:
- list of active thresholds
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getTableLastValuesGet last value for given table DCI on given node- Parameters:
- nodeId- ID of the node to get DCI values for
- dciId- DCI ID
- Returns:
- Table object with last values for table DCI
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getDciLastValueGet last value for given table or single valued DCI on given node- Parameters:
- nodeId- ID of the node to get DCI values for
- dciId- DCI ID
- Returns:
- Last value object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getPerfTabItemsGet list of DCIs configured to be shown on performance tab in console for given node.- Parameters:
- nodeId- Node object ID
- Returns:
- List of performance tab DCIs
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getThresholdSummarypublic List<ThresholdViolationSummary> getThresholdSummary(long objectId) throws IOException, NXCException Get threshold violation summary for all nodes under given parent object. Parent object could be container, subnet, zone, entire network, or infrastructure service root.- Parameters:
- objectId- parent object ID
- Returns:
- list of threshold violation summary objects for all nodes below given root
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
parseDataRowsParse data from raw message CMD_DCI_DATA. This method is intended for calling by client internal methods only. It made public to allow access from client extensions.- Parameters:
- input- Raw data
- data- Data object to add rows to
- Returns:
- number of received data rows
 
- 
getCollectedDatapublic DciData getCollectedData(long nodeId, long dciId, Date from, Date to, int maxRows, HistoricalDataType valueType, long delegateReadObject) throws IOException, NXCException Get collected DCI data from server. Please note that you should specify either row count limit or time from/to limit.- Parameters:
- nodeId- Node ID
- dciId- DCI ID
- from- Start of time range or null for no limit
- to- End of time range or null for no limit
- maxRows- Maximum number of rows to retrieve or 0 for no limit
- valueType- TODO
- delegateReadObject- delegate object read access should be provided thought
- Returns:
- DCI data set
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getCollectedDatapublic DciData getCollectedData(long nodeId, long dciId, Date from, Date to, int maxRows, HistoricalDataType valueType) throws IOException, NXCException Get collected DCI data from server. Please note that you should specify either row count limit or time from/to limit.- Parameters:
- nodeId- Node ID
- dciId- DCI ID
- from- Start of time range or null for no limit
- to- End of time range or null for no limit
- maxRows- Maximum number of rows to retrieve or 0 for no limit
- valueType- TODO
- Returns:
- DCI data set
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getCollectedTableDatapublic DciData getCollectedTableData(long nodeId, long dciId, String instance, String dataColumn, Date from, Date to, int maxRows, long delegateReadObject) throws IOException, NXCException Get collected table DCI data from server. Please note that you should specify either row count limit or time from/to limit.- Parameters:
- nodeId- Node ID
- dciId- DCI ID
- instance- instance value
- dataColumn- name of column to retrieve data from
- from- Start of time range or null for no limit
- to- End of time range or null for no limit
- maxRows- Maximum number of rows to retrieve or 0 for no limit
- delegateReadObject- delegate object read access should be provided thought
- Returns:
- DCI data set
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getCollectedTableDatapublic DciData getCollectedTableData(long nodeId, long dciId, String instance, String dataColumn, Date from, Date to, int maxRows) throws IOException, NXCException Get collected table DCI data from server. Please note that you should specify either row count limit or time from/to limit.- Parameters:
- nodeId- Node ID
- dciId- DCI ID
- instance- instance value
- dataColumn- name of column to retrieve data from
- from- Start of time range or null for no limit
- to- End of time range or null for no limit
- maxRows- Maximum number of rows to retrieve or 0 for no limit
- Returns:
- DCI data set
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
clearCollectedDataClear collected data for given DCI- Parameters:
- nodeId- Node object ID
- dciId- DCI ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteDciEntrypublic void deleteDciEntry(long nodeId, long dciId, long timestamp) throws IOException, NXCException Delete collected data entry for given DCI- Parameters:
- nodeId- Node object ID
- dciId- DCI ID
- timestamp- timestamp of entry
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
recalculateDCIValuesStart background recalculation of DCI values using preserved raw values.- Parameters:
- objectId- object ID
- dciId- DCI ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
forceDCIPollForce DCI poll for given DCI- Parameters:
- nodeId- Node object ID
- dciId- DCI ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getThresholdsGet list of thresholds configured for given DCI- Parameters:
- nodeId- Node object ID
- dciId- DCI ID
- Returns:
- List of configured thresholds
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getThresholdspublic Threshold[] getThresholds(long nodeId, long dciId, long delegateReadObject) throws IOException, NXCException Get list of thresholds configured for given DCI- Parameters:
- nodeId- Node object ID
- dciId- DCI ID
- delegateReadObject- delegate object read access should be provided thought
- Returns:
- List of configured thresholds
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
dciIdsToNamespublic Map<Long,DciInfo> dciIdsToNames(List<Long> nodeIds, List<Long> dciIds) throws IOException, NXCException Get names for given DCI list- Parameters:
- nodeIds- node identifiers
- dciIds- DCI identifiers (length must match length of node identifiers list)
- Returns:
- array of resolved DCI names
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
dciIdsToNamespublic Map<Long,DciInfo> dciIdsToNames(Collection<? extends NodeItemPair> itemList) throws IOException, NXCException Get names for given DCI list- Parameters:
- itemList- list of items to resolved
- Returns:
- map of DCI id to DCI description
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
dciNameToIdGet DCI ID for given DCI name- Parameters:
- nodeId- node object identifier
- dciName- DCI name
- Returns:
- id of DCI with given name
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryMetricpublic String queryMetric(long nodeId, DataOrigin origin, String name) throws IOException, NXCException Query metric immediately. This call will cause server to do actual call to managed node and will return current value for given metric. Result is not cached.- Parameters:
- nodeId- node object ID
- origin- parameter's origin (NetXMS agent, SNMP, etc.)
- name- parameter's name
- Returns:
- current parameter's value
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryTablepublic Table queryTable(long nodeId, DataOrigin origin, String name) throws IOException, NXCException Query table immediately. This call will cause server to do actual call to managed node and will return current value for given table. Result is not cached.- Parameters:
- nodeId- node object ID
- origin- parameter's origin (NetXMS agent, SNMP, etc.)
- name- table's name
- Returns:
- current table's value
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryAgentTableQuery agent's table immediately. This call will cause server to do actual call to managed node and will return current value for given table. Result is not cached.- Parameters:
- nodeId- node object ID
- name- table's name
- Returns:
- current table's value
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createCustomObjectHook method to allow adding of custom object creation data to NXCP message. Default implementation does nothing.- Parameters:
- data- object creation data passed to createObject
- userData- user-defined data for object creation passed to createObject
- msg- NXCP message that will be sent to server
 
- 
createObjectpublic long createObject(NXCObjectCreationData data, Object userData) throws IOException, NXCException Create new NetXMS object.- Parameters:
- data- Object creation data
- userData- User-defined data for custom object creation
- Returns:
- ID of new object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createObjectCreate new NetXMS object. Equivalent of calling createObject(data, null).- Parameters:
- data- Object creation data
- Returns:
- ID of new object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createObjectSyncCreate new NetXMS object in synchronous mode.- Parameters:
- data- Object creation data
- Returns:
- newly created AbstractObject
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createObjectAsyncpublic long createObjectAsync(NXCObjectCreationData data, ObjectCreationListener callback) throws IOException, NXCException Create new NetXMS object and run callback once it's created.- Parameters:
- data- Object creation data
- callback- callback to run on object creation
- Returns:
- ID of new object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteObjectDelete object- Parameters:
- objectId- ID of an object which should be deleted
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyCustomObjectHook method to populate NXCP message with custom object's data on object modification. Default implementation does nothing.- Parameters:
- data- object modification data passed to modifyObject
- userData- user-defined data passed to modifyObject
- msg- NXCP message to be sent to server
 
- 
modifyObjectpublic void modifyObject(NXCObjectModificationData data, Object userData) throws IOException, NXCException Modify object (generic interface, in most cases wrapper functions should be used instead).- Parameters:
- data- Object modification data
- userData- user-defined data for custom object modification
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyObjectModify object (generic interface, in most cases wrapper functions should be used instead). Equivalent of calling modifyObject(data, null).- Parameters:
- data- Object modification data
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setObjectNameChange object's name (wrapper for modifyObject())- Parameters:
- objectId- ID of object to be changed
- name- New object's name
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setObjectCustomAttributespublic void setObjectCustomAttributes(long objectId, Map<String, CustomAttribute> attrList) throws IOException, NXCExceptionChange object's custom attributes (wrapper for modifyObject())- Parameters:
- objectId- The object ID
- attrList- The attribute list
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setObjectACLpublic void setObjectACL(long objectId, Collection<AccessListElement> acl, boolean inheritAccessRights) throws IOException, NXCException Change object's ACL (wrapper for modifyObject())- Parameters:
- objectId- The object id
- acl- The AccessListElements
- inheritAccessRights- true if access rights should be inherited
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
enableAnonymousObjectAccessEnable anonymous access to object. Server will add read access right for user "anonymous" and issue authentication token for that user. Authentication token will be returned by this call and can be used for anonymous login.- Parameters:
- objectId- object ID
- Returns:
- authentication token for anonymous access
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
changeObjectZoneMove object to different zone. Only nodes and clusters can be moved between zones.- Parameters:
- objectId- Node or cluster object ID
- zoneUIN- The zone UIN (unique identification number)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateObjectCommentsChange object's comments.- Parameters:
- objectId- Object's ID
- comments- New comments
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateResponsibleUserspublic void updateResponsibleUsers(long objectId, List<ResponsibleUser> users) throws IOException, NXCException Update list of responsible users for given object.- Parameters:
- objectId- Object's ID
- users- New list of responsible users
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setObjectManagedSet object's managed status.- Parameters:
- objectId- object's identifier
- isManaged- object's managed status
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getEffectiveRightsGet effective rights of currently logged in user to given object.- Parameters:
- objectId- The object ID
- Returns:
- The effective rights
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
bindObjectBind object.- Parameters:
- parentId- parent object's identifier
- childId- Child object's identifier
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
unbindObjectUnbind object.- Parameters:
- parentId- parent object's identifier
- childId- Child object's identifier
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
removeTemplatepublic void removeTemplate(long templateId, long nodeId, boolean removeDci) throws IOException, NXCException Remove data collection template from node.- Parameters:
- templateId- template object identifier
- nodeId- node object identifier
- removeDci- true if DCIs created from this template should be removed
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
applyTemplateApply data collection template to node.- Parameters:
- templateId- template object ID
- nodeId- node object ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
addClusterNodeAdd node to cluster.- Parameters:
- clusterId- cluster object ID
- nodeId- node object ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
removeClusterNodeRemove node from cluster.- Parameters:
- clusterId- cluster object ID
- nodeId- node object ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryLayer2Topologypublic NetworkMapPage queryLayer2Topology(long nodeId, int discoveryRadius, boolean useL1Topology) throws IOException, NXCException Query layer 2 topology for node- Parameters:
- nodeId- The node ID
- discoveryRadius- topology discovery radios (use -1 to use server default)
- useL1Topology- if true server will add known L1 links to the map
- Returns:
- network map page representing layer 2 topology
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryIPTopologypublic NetworkMapPage queryIPTopology(long nodeId, int discoveryRadius) throws IOException, NXCException Query IP topology for node- Parameters:
- nodeId- The node ID
- discoveryRadius- topology discovery radios (use -1 to use server default)
- Returns:
- network map page representing IP topology
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryOSPFTopologyQuery OSPF topology for node- Parameters:
- nodeId- The node ID
- Returns:
- network map page representing OSPF topology
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryInternalConnectionTopologyQuery internal connection topology for node- Parameters:
- nodeId- The node ID
- Returns:
- network map page representing internal communication topology
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeActionWithExpansionpublic String executeActionWithExpansion(long nodeId, long alarmId, String action, Map<String, String> inputValues, List<String> maskedFields) throws IOException, NXCExceptionExecute action on remote agent- Parameters:
- nodeId- Node object ID
- alarmId- Alarm ID (used for macro expansion)
- action- Action with all arguments, that will be expanded and splitted on server side
- inputValues- Input values provided by user for expansion
- maskedFields- List if input fields whose content should be masked (can be null)
- Returns:
- Expanded action name
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeActionWithExpansionpublic String executeActionWithExpansion(long nodeId, long alarmId, String action, boolean receiveOutput, Map<String, String> inputValues, List<String> maskedFields, TextOutputListener listener, Writer writer) throws IOException, NXCExceptionExecute action on remote agent- Parameters:
- nodeId- Node object ID
- alarmId- Alarm ID (used for macro expansion)
- action- Action with all arguments, that will be expanded and splitted on server side
- inputValues- Input values provided by user for expansion
- maskedFields- List if input fields whose content should be masked (can be null)
- receiveOutput- true if action's output has to be read
- listener- listener for action's output or null
- writer- writer for action's output or null
- Returns:
- Expanded action name
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeActionpublic void executeAction(long nodeId, String action, String[] args) throws IOException, NXCException Execute action on remote agent- Parameters:
- nodeId- Node object ID
- action- Action name
- args- Action arguments
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeActionpublic void executeAction(long nodeId, String action, String[] args, boolean receiveOutput, TextOutputListener listener, Writer writer) throws IOException, NXCException Execute action on remote agent- Parameters:
- nodeId- Node object ID
- action- Action name
- args- Action arguments
- receiveOutput- true if action's output has to be read
- listener- listener for action's output or null
- writer- writer for action's output or null
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeSshCommandpublic void executeSshCommand(long nodeId, long alarmId, String command, Map<String, String> inputFields, List<String> maskedFields, boolean receiveOutput, TextOutputListener listener, Writer writer) throws IOException, NXCExceptionExecute SSH command on remote agent- Parameters:
- nodeId- Node object ID
- alarmId- Alarm ID (0 if not executed in alarm context)
- command- Command to execute
- inputFields- Input fields provided by user or null
- maskedFields- List of input field names for which values should be masked (can be null)
- receiveOutput- true if command's output has to be read
- listener- listener for command's output or null
- writer- writer for command's output or null
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
wakeupNodeWakeup node by sending wake-on-LAN magic packet. Either node ID or interface ID may be given. If node ID is given, system will send wakeup packets to all active interfaces with IP address.- Parameters:
- objectId- node or interface ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getNodePhysicalComponentsGet node's physical components (obtained from ENTITY-MIB).- Parameters:
- nodeId- node object identifier
- Returns:
- root component
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getDeviceViewGet device view for node.- Parameters:
- nodeId- node object identifier
- Returns:
- device view object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getNodeWinPerfObjectsGet list of available Windows performance objects. Returns empty list if node does is not a Windows node or does not have WinPerf subagent installed.- Parameters:
- nodeId- node object ID
- Returns:
- list of available Windows performance objects
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getNodeSoftwarePackagesGet list of software packages installed on node.- Parameters:
- nodeId- node object identifier
- Returns:
- root component
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getNodeHardwareComponentspublic List<HardwareComponent> getNodeHardwareComponents(long nodeId) throws IOException, NXCException Get list of hardware components as reported by agent.- Parameters:
- nodeId- node object identifier
- Returns:
- list of hardware components
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getUserSessionsGet list of user sessions on given node as reported by agent.- Parameters:
- nodeId- node object identifier
- Returns:
- list of user sessions
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getDependentNodesGet list of dependent nodes for given node. Node is considered dependent if it use given node as any type of proxy or as data collection source for at least one DCI.- Parameters:
- nodeId- node object ID
- Returns:
- list of dependent node descriptors
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getBackgroundTaskStateGet state of background task.- Parameters:
- taskId- Task ID
- Returns:
- state of background task
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deployAgentPolicyDeploy policy on agent- Parameters:
- policyId- Policy object ID
- nodeId- Node object ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
uninstallAgentPolicyUninstall policy from agent- Parameters:
- policyId- Policy object ID
- nodeId- Node object ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getEventProcessingPolicyGet read-only copy of event processing policy.- Returns:
- Event processing policy
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
openEventProcessingPolicyOpen event processing policy for editing. This call will lock event processing policy on server until closeEventProcessingPolicy called or session terminated.- Returns:
- Event processing policy
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
saveEventProcessingPolicySave event processing policy. If policy was not previously open by current session exception will be thrown.- Parameters:
- epp- Modified event processing policy
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
closeEventProcessingPolicyClose event processing policy. This call will unlock event processing policy on server. If policy was not previously open by current session exception will be thrown.- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
openDataCollectionConfigurationpublic DataCollectionConfiguration openDataCollectionConfiguration(long nodeId) throws IOException, NXCException Open data collection configuration for given node. You must call DataCollectionConfiguration.close() to close data collection configuration when it is no longer needed.- Parameters:
- nodeId- Node object identifier
- Returns:
- Data collection configuration object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
openDataCollectionConfigurationpublic DataCollectionConfiguration openDataCollectionConfiguration(long nodeId, RemoteChangeListener changeListener) throws IOException, NXCException Open data collection configuration for given node. You must call DataCollectionConfiguration.close() to close data collection configuration when it is no longer needed.- Parameters:
- nodeId- Node object identifier
- changeListener- callback that will be called when DCO object is changed by server notification
- Returns:
- Data collection configuration object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyDataCollectionObjectpublic long modifyDataCollectionObject(DataCollectionObject dcObject) throws IOException, NXCException Modify data collection object without opening data collection configuration.- Parameters:
- dcObject- dcObject collection object
- Returns:
- Identifier assigned to newly created object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
clearAgentDataCollectionConfigurationClear data collection configuration on agent. Will wipe out all configuration and collected data.- Parameters:
- nodeId- node object ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
changeDCIStatuspublic long[] changeDCIStatus(long ownerId, long[] items, int status) throws IOException, NXCException Change data collection objects status without opening data collection configuration.- Parameters:
- ownerId- DCI owner
- items- items to change
- status- new status
- Returns:
- return code for each DCI
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
resyncAgentDataCollectionConfigurationForce re-synchronization of data collection configuration with agent.- Parameters:
- nodeId- node object ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
testTransformationScriptpublic TransformationTestResult testTransformationScript(long nodeId, String script, String inputValue, DataCollectionObject dcObject) throws IOException, NXCException Test DCI transformation script.- Parameters:
- nodeId- ID of the node object to test script on
- script- script source code
- inputValue- input value for the script
- dcObject- optional data collection object data (for $dci variable in script)
- Returns:
- test execution results
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeLibraryScriptpublic void executeLibraryScript(long nodeId, String script, Map<String, String> inputFields, List<String> maskedFields, TextOutputListener listener) throws IOException, NXCExceptionExecute library script on object. Script name interpreted as command line with server-side macro substitution. Map inputValues can be used to pass data for %() macros.- Parameters:
- nodeId- node ID to execute script on
- script- script name and parameters
- inputFields- input values map for %() macro substitution (can be null)
- maskedFields- List of input field names for which values should be masked (can be null)
- listener- script output listener
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeLibraryScriptpublic void executeLibraryScript(long objectId, long alarmId, String script, Map<String, String> inputFields, List<String> maskedFields, TextOutputListener listener) throws IOException, NXCExceptionExecute library script on object. Script name interpreted as command line with server-side macro substitution. Map inputValues can be used to pass data for %() macros.- Parameters:
- objectId- ID of the object to execute script on
- alarmId- alarm ID to use for expansion
- script- script name and parameters
- inputFields- input values map for %() macro substitution (can be null)
- maskedFields- List of input field names for which values should be masked (can be null)
- listener- script output listener
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeScriptpublic void executeScript(long objectId, String script, String parameters, TextOutputListener listener) throws IOException, NXCException Execute script.- Parameters:
- objectId- ID of the object to execute script on
- script- script source code
- listener- script output listener
- parameters- script parameter list (can be null)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeScriptpublic void executeScript(long objectId, String script, String parameters, TextOutputListener listener, boolean developmentMode) throws IOException, NXCException Execute script.- Parameters:
- objectId- ID of the object to execute script on
- script- script source code
- listener- script output listener
- parameters- script parameter list (can be null)
- developmentMode- true if script should be run in development mode
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeScriptpublic void executeScript(long objectId, String script, List<String> parameterList, TextOutputListener listener) throws IOException, NXCException Execute script.- Parameters:
- objectId- ID of the object to execute script on
- script- script source code
- parameterList- script parameter list (can be null)
- listener- script output listener
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeScriptpublic void executeScript(long objectId, String script, List<String> parameterList, TextOutputListener listener, boolean developmentMode) throws IOException, NXCException Execute script.- Parameters:
- objectId- ID of the object to execute script on
- script- script source code
- parameterList- script parameter list (can be null)
- listener- script output listener
- developmentMode- true if script should be run in development mode
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
stopScriptStop running NXSL script. VM identifier is provided via output listener's methodsetStreamId.- Parameters:
- vmId- NXSL VM identifier
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryScriptpublic Map<String,String> queryScript(long nodeId, String script, List<String> parameterList, TextOutputListener listener) throws IOException, NXCException Execute script and get return value as map. Content of returned map depends on actual data type of script return value:- For hash map matching map will be returned;
- For array all elements will be returned as values and keys will be element positions starting as 1;
- For all other types map will consist of single element with key "1" and script return value as value.
 - Parameters:
- nodeId- ID of the node object to test script on
- script- script source code
- parameterList- script parameter list can be null
- listener- script output listener
- Returns:
- script return value as a map
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
compileScriptpublic ScriptCompilationResult compileScript(String source, boolean serialize) throws IOException, NXCException Compile NXSL script on server. Field *success* in compilation result object will indicate compilation status. If compilation fails, field *errorMessage* will contain compilation error message.- Parameters:
- source- script source
- serialize- flag to indicate if compiled script should be serialized and sent back to client
- Returns:
- script compilation result object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
openServerLogOpen server log by name.- Parameters:
- logName- Log name
- Returns:
- Log object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAlarmCategoriesGet alarm categories from server- Returns:
- List of configured alarm categories
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyAlarmCategoryAdd or update alarm category in DB- Parameters:
- object- alarm category
- Returns:
- The ID of the category
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteAlarmCategoryDelete alarm category in DB- Parameters:
- id- of alarm category
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncAlarmCategoriesSynchronize alarm category configuration. After call to this method session object will maintain internal list of configured alarm categories- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
isAlarmCategoriesSynchronizedpublic boolean isAlarmCategoriesSynchronized()Check if alarm categories are synchronized.- Returns:
- true if if alarm categories are synchronized
 
- 
findAlarmCategoryByIdFind alarm category by id in alarm category database internally maintained by session object. You must call NXCSession.syncAlarmCategories() first to make local copy of event template database.- Parameters:
- id- alarm category id
- Returns:
- Event template object or null if not found
 
- 
findAlarmCategoryByNameFind alarm category by name in alarm category database internally maintained by session object. You must call NXCSession.syncAlarmCategories() first to make local copy of event template database.- Parameters:
- name- alarm category name
- Returns:
- alarm category with given name or null if not found
 
- 
findMultipleAlarmCategoriesFind multiple alarm categories by category id`s in alarm category database internally maintained by session object. You must call NXCSession.syncAlarmCategories() first to make local copy of alarm category database.- Parameters:
- ids- List of alarm category id`s
- Returns:
- List of found alarm categories
 
- 
isEventObjectsSynchronizedpublic boolean isEventObjectsSynchronized()Check if event configuratrion objects are synchronized.- Returns:
- true if event configuratrion objects are synchronized
 
- 
syncEventTemplatesSynchronize event templates configuration. After call to this method session object will maintain internal list of configured event templates.- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getCachedEventTemplatesGet cached list event templates- Returns:
- List of event templates cached by client library
 
- 
findEventTemplateByNameFind event template by name in event template database internally maintained by session object. You must call NXCSession.syncEventObjects() first to make local copy of event template database.- Parameters:
- name- Event name
- Returns:
- Event template object or null if not found
 
- 
getEventNameGet event name from event code- Parameters:
- code- event code
- Returns:
- event name or event code as string if event not found
 
- 
findEventTemplateByCodeFind event template by code in event template database internally maintained by session object. You must call NXCSession.syncEventObjects() first to make local copy of event template database.- Parameters:
- code- Event code
- Returns:
- Event template object or null if not found
 
- 
findMultipleEventTemplatesFind multiple event templates by event codes in event template database internally maintained by session object. You must callNXCSession.syncEventObjects()first to make local copy of event template database.- Parameters:
- codes- set of event codes
- Returns:
- List of found event templates
 
- 
findMultipleEventTemplatesFind multiple event templates by event codes in event template database internally maintained by session object. You must call NXCSession.syncEventObjects() first to make local copy of event template database.- Parameters:
- codes- List of event codes
- Returns:
- List of found event templates
 
- 
getEventTemplatesGet event objects from server- Returns:
- List of configured event objects
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
generateEventCodeGenerate code for new event template.- Returns:
- Code for new event template
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteEventTemplateDelete event template.- Parameters:
- eventCode- Event code
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyEventObjectModify event template.- Parameters:
- tmpl- Event template
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
sendEventpublic void sendEvent(long eventCode, String eventName, long objectId, String[] parameters, String[] paramerNames, String userTag, Date originTimestamp) throws IOException, NXCException Send event to server. Event can be identified either by event code or event name. If event name is given, event code will be ignored.Node: sending events by name supported by server version 1.1.8 and higher. - Parameters:
- eventCode- event code. Ignored if event name is not null.
- eventName- event name. Must be set to null if event identified by code.
- objectId- Object ID to send event on behalf of. If set to 0, server will determine object ID by client IP address.
- parameters- event's parameters
- paramerNames- event's parameter names
- userTag- event's user tag
- originTimestamp- origin timestamp or null
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
sendEventpublic void sendEvent(long eventCode, String[] parameters, String[] paramerNames) throws IOException, NXCException Convenience wrapper for sendEvent interface.- Parameters:
- eventCode- event code
- parameters- event's parameters
- paramerNames- event's parameter names
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
sendEventpublic void sendEvent(String eventName, String[] parameters, String[] paramerNames) throws IOException, NXCException Convenience wrapper for sendEvent interface.- Parameters:
- eventName- event name
- parameters- event's parameters
- paramerNames- event's parameter names
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSnmpCommunitiesGet list of well-known SNMP communities configured on server.- Returns:
- map of SNMP community strings
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSnmpCommunitiesGet list of well-known SNMP communities configured on server.- Parameters:
- zoneUIN- Zone UIN (unique identification number)
- Returns:
- list of SNMP community strings
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateSnmpCommunitiespublic void updateSnmpCommunities(int zoneUIN, List<String> communityStrings) throws IOException, NXCException Update list of well-known SNMP community strings on server. Existing list will be replaced by provided one.- Parameters:
- zoneUIN- Zone UIN (unique identification number)
- communityStrings- New list of SNMP community strings
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSnmpUsmCredentialspublic Map<Integer,List<SnmpUsmCredential>> getSnmpUsmCredentials() throws IOException, NXCExceptionGet list of well-known SNMP USM (user security model) credentials configured on server.- Returns:
- Map of SNMP USM credentials
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSnmpUsmCredentialsGet list of well-known SNMP USM (user security model) credentials configured on server.- Parameters:
- zoneUIN- Zone UIN (unique identification number)
- Returns:
- List of configured SNMP USM credentials
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateSnmpUsmCredentialspublic void updateSnmpUsmCredentials(int zoneUIN, List<SnmpUsmCredential> usmCredentials) throws IOException, NXCException Update list of well-known SNMP USM credentials on server. Existing list will be replaced by provided one.- Parameters:
- zoneUIN- Zone UIN (unique identification number)
- usmCredentials- List of SNMP credentials
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSshCredentialsGet SSH credentials for all zones.- Returns:
- list of SSH credentials for all zones
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSshCredentialsGet SSH credentials for specific zone.- Parameters:
- zoneUIN- zone UIN
- Returns:
- list of SSH credentials for specific zone
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateSshCredentialspublic void updateSshCredentials(int zoneUIN, List<SSHCredentials> sshCredentials) throws IOException, NXCException Update list of well-known SSH credentials on the server. Existing list will be replaced by the provided one.- Parameters:
- zoneUIN- Zone UIN (unique identification number)
- sshCredentials- List of SSH credentials
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
readAgentConfigurationFileGet agent's master configuration file.- Parameters:
- nodeId- Node ID
- Returns:
- Master configuration file of agent running on given node
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
writeAgentConfigurationFilepublic void writeAgentConfigurationFile(long nodeId, String config, boolean apply) throws IOException, NXCException Update agent's master configuration file.- Parameters:
- nodeId- Node ID
- config- New configuration file content
- apply- Apply flag - if set to true, agent will restart automatically to apply changes
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSupportedParameterspublic List<AgentParameter> getSupportedParameters(long nodeId, DataOrigin origin) throws IOException, NXCException Get list of parameters supported by entity defined by origin on given node.- Parameters:
- nodeId- Node ID
- origin- data origin (agent, driver, etc.)
- Returns:
- List of parameters supported by agent
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSmclpSupportedPropertiesGet list of SM-CLP properties supported on given node.- Parameters:
- nodeId- Node ID
- Returns:
- List of SM-CLP properties supported on given node
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSupportedParametersGet list of parameters supported by agent running on given node.- Parameters:
- nodeId- Node ID
- Returns:
- List of parameters supported by agent
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSupportedTablesGet list of tables supported by agent running on given node.- Parameters:
- nodeId- Node ID
- Returns:
- List of tables supported by agent
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getRelatedEventsGet all events used in data collection by given node, cluster, or template object.- Parameters:
- objectId- node, cluster, or template object ID
- Returns:
- list of used event codes
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getDataCollectionScriptsGet names of all scripts used in data collection by given node, cluster, or template object.- Parameters:
- objectId- node, cluster, or template object ID
- Returns:
- list of used library scripts
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
exportConfigurationpublic File exportConfiguration(String description, long[] events, long[] traps, long[] templates, UUID[] rules, long[] scripts, long[] objectTools, long[] dciSummaryTables, long[] actions, long[] webServices, String[] assetAttributes) throws IOException, NXCException Export server configuration. Returns requested configuration elements exported into XML.- Parameters:
- description- Description of exported configuration
- events- List of event codes
- traps- List of trap identifiers
- templates- List of template object identifiers
- rules- List of event processing rule GUIDs
- scripts- List of library script identifiers
- objectTools- List of object tool identifiers
- dciSummaryTables- List of DCI summary table identifiers
- actions- List of action codes
- webServices- List of web service definition id's
- assetAttributes- List of asset management atributes to be exported
- Returns:
- file with resulting XML document
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
importConfigurationImport server configuration (events, traps, thresholds) from XML document. Please note that for importing large configuration files it is recommended to use variant that accepts file on file system instead of in-memory document.- Parameters:
- config- Configuration in XML format
- flags- Import flags
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
importConfigurationImport server configuration (events, traps, thresholds) from XML file.- Parameters:
- configFile- Configuration file in XML format
- flags- Import flags
- Returns:
- Import output messages
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getServerStatsGet server stats. Returns set of named properties. The following properties could be found in result set: String: VERSION Integer: UPTIME, SESSION_COUNT, DCI_COUNT, OBJECT_COUNT, NODE_COUNT, PHYSICAL_MEMORY_USED, VIRTUAL_MEMORY_USED, QSIZE_CONDITION_POLLER, QSIZE_CONF_POLLER, QSIZE_DCI_POLLER, QSIZE_DBWRITER, QSIZE_EVENT, QSIZE_DISCOVERY, QSIZE_NODE_POLLER, QSIZE_ROUTE_POLLER, QSIZE_STATUS_POLLER, QSIZE_DCI_CACHE_LOADER, ALARM_COUNT long[]: ALARMS_BY_SEVERITY- Returns:
- Server stats as set of named properties.
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getActionsGet list of configured actions from server- Returns:
- List of configured actions
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createActionCreate new server action.- Parameters:
- name- action name
- Returns:
- ID assigned to new action
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyActionModify server action- Parameters:
- action- Action object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteActionDelete server action- Parameters:
- actionId- Action ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getObjectToolsGet list of configured object tools- Returns:
- List of object tools
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createToolTreeCreate object tool tree- Parameters:
- tools- list of object tools
- Returns:
- the root folder of the tree
 
- 
getObjectToolsAsTree- Returns:
- root object tool folder
- Throws:
- IOException- if socker or file I/O error occours
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getObjectToolDetailsGet object tool details- Parameters:
- toolId- Tool ID
- Returns:
- Object tool details
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
generateObjectToolIdGenerate unique ID for new object tool.- Returns:
- Unique ID for object tool
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyObjectToolModify object tool.- Parameters:
- tool- Object tool
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteObjectToolDelete object tool.- Parameters:
- toolId- Object tool ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
enableObjectToolEnable or disable object tool/- Parameters:
- toolId- Object tool ID
- enable- true if object tool should be enabled, false if it should be disabled
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeTableToolExecute object tool of "table" type against given node.- Parameters:
- toolId- Tool ID
- nodeId- Node object ID
- Returns:
- Table with tool execution results
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeServerCommandpublic void executeServerCommand(long objectId, long alarmId, String command, Map<String, String> inputFields, List<String> maskedFields) throws IOException, NXCExceptionExecute server command related to given object (usually defined as object tool)- Parameters:
- objectId- object ID
- alarmId- Alarm ID (0 if executed outside alarm context)
- command- command
- inputFields- values for input fields (can be null)
- maskedFields- List if input fields whose content should be masked (can be null)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeServerCommandpublic void executeServerCommand(long objectId, long alarmId, String command, Map<String, String> inputFields, List<String> maskedFields, boolean receiveOutput, TextOutputListener listener, Writer writer) throws IOException, NXCExceptionExecute server command related to given object (usually defined as object tool)- Parameters:
- objectId- object ID
- alarmId- Alarm ID (0 if executed outside alarm context)
- command- command
- inputFields- values for input fields (can be null)
- maskedFields- List if input fields whose content should be masked (can be null)
- receiveOutput- true if command's output has to be read
- listener- listener for command's output or null
- writer- writer for command's output or null
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
stopServerCommandStop server command- Parameters:
- commandId- The command ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSnmpTrapsConfigurationSummaryGet summary of SNMP trap mapping. Trap configurations returned without parameter mapping.- Returns:
- List of SnmpTrap objects
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSnmpTrapsConfigurationGet list of configured SNMP traps- Returns:
- List of configured SNMP traps.
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createSnmpTrapConfigurationCreate new trap configuration record.- Returns:
- ID of new record
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteSnmpTrapConfigurationDelete SNMP trap configuration record from server.- Parameters:
- trapId- Trap configuration record ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifySnmpTrapConfigurationModify SNMP trap configuration record.- Parameters:
- trap- Modified trap configuration record
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getMibFileTimestampGet timestamp of server's MIB file.- Returns:
- Timestamp of server's MIB file
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
downloadMibFileDownload MIB file from server.- Returns:
- file handle for temporary file on local file system
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getPredefinedGraphGet predefined graph information by graph id- Parameters:
- graphId- graph id
- Returns:
- predefined chart object
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getPredefinedGraphspublic List<GraphDefinition> getPredefinedGraphs(boolean graphTemplates) throws IOException, NXCException Get list of predefined graphs or graph templates- Parameters:
- graphTemplates- defines if non template or template graph list should re requested
- Returns:
- message with predefined graphs or with template graphs
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createGraphTreeCreate graph tree from list- Parameters:
- graphs- list of predefined graphs
- Returns:
- graph tree
 
- 
getPredefinedGraphsAsTree- Returns:
- root graph folder
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
saveGraphChecks if graph with specified name can be created/overwritten and creates/overwrites it in DB. If graph id is set to 0 it checks if graph with the same name exists, and if yes checks overwrite parameter. If it is set to false, then function returns error that graph with this name already exists. If there is no graph with the same name it just creates a new one. If id is set it checks that provided name is assigned only to this graph and overwrites it or throws error is the same name was already used. Also check if user have permissions to overwrite graph.If it can, then it returns 1. If graph with this name already exists, but can be overwritten by current user function returns 2. If graph with this name already exists, but can not be overwritten by current user function returns 0. - Parameters:
- graph- predefined graph configuration
- overwrite- defines if existing graph should be overwritten
- Returns:
- ID of predefined graph object
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deletePredefinedGraphDelete predefined graph.- Parameters:
- graphId- predefined graph object ID
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getScriptLibraryGet list of all scripts in script library.- Returns:
- ID/name pairs for scripts in script library
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getScriptGet script from library- Parameters:
- scriptId- script ID
- Returns:
- script source code
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyScriptpublic long modifyScript(long scriptId, String name, String source) throws IOException, NXCException Modify script. If scriptId is 0, new script will be created in library.- Parameters:
- scriptId- script ID
- name- script name
- source- script source code
- Returns:
- script ID (newly assigned if new script was created)
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
renameScriptRename script in script library.- Parameters:
- scriptId- script ID
- name- new script name
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteScriptDelete script from library- Parameters:
- scriptId- script ID
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
findConnectionPointFind connection point (either directly connected or most close known interface on a switch) for given node or interface object. Will return null if connection point information cannot be found.- Parameters:
- objectId- Node or interface object ID
- Returns:
- connection point information or null
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
findConnectionPointFind node and/or connection point (either directly connected or most close known interface on a switch) for given MAC address. Will return null if no information can be found.- Parameters:
- macAddr- MAC address
- Returns:
- connection point information or null
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
findConnectionPointspublic List<ConnectionPoint> findConnectionPoints(byte[] pattern, int searchLimit) throws IOException, NXCException Find nodes and/or connection points (either directly connected or most close known interface on a switch) for all MAC addresses that match given MAC address pattern. Will return empty list if no information can be found.- Parameters:
- pattern- MAC address pattern (1-6 bytes)
- searchLimit- limits count of elements in output list
- Returns:
- list of connection point information
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
findConnectionPointpublic ConnectionPoint findConnectionPoint(int zoneId, InetAddress ipAddr) throws IOException, NXCException Find connection point (either directly connected or most close known interface on a switch) for given IP address. Will return null if connection point information cannot be found.- Parameters:
- zoneId- zone ID
- ipAddr- IP address to find
- Returns:
- connection point information or null
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
findNodesByHostnamepublic List<AbstractNode> findNodesByHostname(int zoneId, String hostname) throws IOException, NXCException Find all nodes that contain the primary hostname- Parameters:
- zoneId- zone ID
- hostname- Hostname to find
- Returns:
- List of nodes found
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
checkConnectionpublic boolean checkConnection()Send KEEPALIVE message. Return true is connection is fine and false otherwise. If connection is broken, session notification with code CONNECTION_BROKEN will be sent to all subscribers. Note that this function will not throw exception in case of error.- Returns:
- true if connection is fine
 
- 
getImageLibraryGet the whole image library- Returns:
- List of library images
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getImageLibraryGet the image library of specific category- Parameters:
- category- The name of the category
- Returns:
- List of library images
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getImageGet an image from the library- Parameters:
- guid- UUID of the image
- Returns:
- The image
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createImagepublic LibraryImage createImage(LibraryImage image, ProgressListener listener) throws IOException, NXCException Create an image- Parameters:
- image- The Image
- listener- The ProgressListener
- Returns:
- The image created
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteImageDelete an image- Parameters:
- image- The image to delete
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteImageDelete an image- Parameters:
- guid- ID of image to delete
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyImagepublic void modifyImage(LibraryImage image, ProgressListener listener) throws IOException, NXCException Modify an image- Parameters:
- image- The image to modify
- listener- The ProgressListener
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
pollObjectpublic void pollObject(long objectId, ObjectPollType pollType, TextOutputListener listener) throws IOException, NXCException Perform a forced object poll. This method will not return until poll is complete, so it's advised to run it from separate thread. For each message received from poller listener's method onPollerMessage will be called.- Parameters:
- objectId- object ID
- pollType- poll type
- listener- text output listener (can be null)
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getPersistentStorageListGet list of all values in persistent storage- Returns:
- Hash map wit persistent storage key, value
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setPersistentStorageValueSet persistent storage value. Will create new or update existing- Parameters:
- key- unique key of persistent storage value
- value- value
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deletePersistentStorageValueDelete persistent storage value- Parameters:
- key- unique key of persistent storage value
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
listMibFilesList custom MIB files in server's file store.- Returns:
- list of MIB files in server's file store
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
listServerFilesList files in server's file store.- Returns:
- list of files in server's file store
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
listServerFilesList files in server's file store.- Parameters:
- filter- array with required extension. Will be used as file filter. Give empty array or null if no filter should be applyed.
- Returns:
- list of files in server's file store
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
listAgentFilespublic List<AgentFile> listAgentFiles(AgentFile file, String fullPath, long objectId) throws IOException, NXCException List files on agent file store.- Parameters:
- file- parent of new coomming list
- fullPath- path that will be used on an agent to get list of subfiles
- objectId- the ID of the node
- Returns:
- will return the list of sub files or the list of allowed folders if full path is set to "/"
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAgentFileInfoReturn information about agent file- Parameters:
- file- The AgentFile in question
- Returns:
- AgentFileInfo object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
uploadFileToAgentpublic long uploadFileToAgent(long nodeId, String serverFileName, String remoteFileName) throws IOException, NXCException Start file upload from server's file store to agent. Returns ID of background task.- Parameters:
- nodeId- node object ID
- serverFileName- file name in server's file store
- remoteFileName- fully qualified file name on target system or null to upload file to agent's file store
- Returns:
- ID of background task
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
uploadMibFilepublic void uploadMibFile(File localFile, String serverFileName, ProgressListener listener) throws IOException, NXCException Upload custom MIB file to server's file store- Parameters:
- localFile- local file
- serverFileName- name under which file will be stored on server
- listener- The ProgressListener to set
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
uploadFileToServerpublic void uploadFileToServer(File localFile, String serverFileName, ProgressListener listener) throws IOException, NXCException Upload local file to server's file store- Parameters:
- localFile- local file
- serverFileName- name under which file will be stored on server
- listener- The ProgressListener to set
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
uploadLocalFileToAgentpublic void uploadLocalFileToAgent(long nodeId, File localFile, String remoteFileName, boolean overwrite, ProgressListener listener) throws IOException, NXCException Upload local file to remote node via agent. If remote file name is not provided local file name will be used.- Parameters:
- nodeId- node object ID
- localFile- local file
- remoteFileName- remote file name (can be null or empty)
- overwrite- "allow overwrite" flag (if set to true, agent will overwrite existing file)
- listener- progress listener (can be null)
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createFolderOnAgentCreate folder on remote system via agent- Parameters:
- nodeId- node object ID
- folder- folder name
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
downloadFileFromAgentpublic AgentFileData downloadFileFromAgent(long nodeId, String remoteFileName, long maxFileSize, boolean follow, ProgressListener listener) throws IOException, NXCException Download file from remote host via agent. IfmaxFileSizeis set to non-zero value then lastmaxFileSizebytes will be retrieved.- Parameters:
- nodeId- node object ID
- remoteFileName- fully qualified file name on remote system
- maxFileSize- maximum download size, 0 == UNLIMITED
- follow- if set to true, server will send file updates as they appear (like for tail -f command)
- listener- The ProgressListener to set
- Returns:
- agent file handle which contains server assigned ID and handle for local file
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
downloadFileFromAgentpublic AgentFileData downloadFileFromAgent(long nodeId, String remoteFileName, boolean expandMacros, long alarmId, Map<String, String> inputValues, long maxFileSize, boolean follow, ProgressListener listener) throws IOException, NXCExceptionDownload file from remote host via agent. IfmaxFileSizeis set to non-zero value then lastmaxFileSizebytes will be retrieved.- Parameters:
- nodeId- node object ID
- remoteFileName- fully qualified file name on remote system
- expandMacros- if true, macros in remote file name will be expanded on server side
- alarmId- alarm ID used for macro expansion
- inputValues- input field values for macro expansion (can be null if none provided)
- maxFileSize- maximum download size, 0 == UNLIMITED
- follow- if set to true, server will send file updates as they appear (like for tail -f command)
- listener- The ProgressListener to set
- Returns:
- agent file handle which contains server assigned ID and handle for local file
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
downloadFileFromServerDownload file from server file storage.- Parameters:
- remoteFileName- fully qualified file name on remote system
- Returns:
- The downloaded file
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
cancelFileMonitoringCancel file monitoring- Parameters:
- monitorId- file monitor ID (previously returned by- downloadFileFromAgent
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAgentFileFingerprintpublic AgentFileFingerprint getAgentFileFingerprint(long nodeId, String remoteFileName) throws IOException, NXCException Get file fingerprint from remote host via agent.- Parameters:
- nodeId- node object ID
- remoteFileName- fully qualified file name on remote system
- Returns:
- agent file fingerprint which contains size, hashes and partial data for the file
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
renameServerFilepublic void renameServerFile(String oldFileName, String newFileName) throws IOException, NXCException Rename file in server's file store- Parameters:
- oldFileName- name of existing server file
- newFileName- new name for selected file
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteMibFileDelete custom MIB file from server's file store- Parameters:
- serverFileName- name of server file
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteServerFileDelete file from server's file store- Parameters:
- serverFileName- name of server file
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteAgentFileDelete file from agent- Parameters:
- nodeId- node id
- fileName- full path to file
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
renameAgentFilepublic void renameAgentFile(long nodeId, String oldName, String newFileName, boolean overwrite) throws IOException, NXCException Rename agent's file- Parameters:
- nodeId- node id
- oldName- old file path
- newFileName- new file path
- overwrite- should the file in destination be overwritten
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
moveAgentFilepublic void moveAgentFile(long nodeId, String oldName, String newFileName, boolean overwrite) throws IOException, NXCException Move file from agent- Parameters:
- nodeId- node id
- oldName- old file path
- newFileName- new file path
- overwrite- should the file in destination be overwritten
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
copyAgentFilepublic void copyAgentFile(long nodeId, String oldName, String newFileName, boolean overwrite) throws IOException, NXCException Copy file from agent- Parameters:
- nodeId- node id
- oldName- old file path
- newFileName- new file path
- overwrite- should the file in destination be overwritten
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
openConsoleOpen server console.- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
closeConsoleClose server console.- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
processConsoleCommandProcess console command on server. Output of the command delivered via console listener.- Parameters:
- command- command to process
- Returns:
- true if console should be closed (usually after "exit" command)
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
isServerConsoleConnectedpublic boolean isServerConsoleConnected()- Returns:
- the serverConsoleConnected
 
- 
snmpWalkpublic void snmpWalk(long nodeId, SnmpObjectId rootOid, SnmpWalkListener listener) throws IOException, NXCException Do SNMP walk. Operation will start at given root object, and callback will be called one or more times as data will come from server. This method will exit only when walk operation is complete.- Parameters:
- nodeId- node object ID
- rootOid- root SNMP object ID (as text)
- listener- listener
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
snmpWalkpublic void snmpWalk(long nodeId, String rootOid, SnmpWalkListener listener) throws IOException, NXCException Do SNMP walk. Operation will start at given root object, and callback will be called one or more times as data will come from server. This method will exit only when walk operation is complete.- Parameters:
- nodeId- node object ID
- rootOid- root SNMP object ID (as text)
- listener- listener
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getVlansGet list of VLANs configured on given node- Parameters:
- nodeId- node object ID
- Returns:
- list of VLANs
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
areObjectsSynchronizedpublic boolean areObjectsSynchronized()- Returns:
- the objectsSynchronized
 
- 
getAddressListGet address list.- Parameters:
- listId- list identifier (defined in NXCSession as ADDRESS_LIST_xxx)
- Returns:
- address list
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setAddressListpublic void setAddressList(int listId, List<InetAddressListElement> list) throws IOException, NXCException Set content of address list.- Parameters:
- listId- list ID
- list- new list content
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
resetServerComponentReset server's internal component (defined by SERVER_COMPONENT_xxx)- Parameters:
- component- component id
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getNetworkPathGet IPv4 network path between two nodes. Server will return path based on cached routing table information. Network path object may be incomplete if server does not have enough information to build full path. In this case, no exception thrown, and completness of path can be checked by calling NetworkPath.isComplete().- Parameters:
- node1- source node
- node2- destination node
- Returns:
- network path object
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getRoutingTableGet routing table from node- Parameters:
- nodeId- node object ID
- Returns:
- list of routing table entries
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getArpCachepublic List<ArpCacheEntry> getArpCache(long nodeId, boolean forceRead) throws IOException, NXCException Get ARP cache from node- Parameters:
- nodeId- node object ID
- forceRead- if true, ARP cache will be read from node, otherwise cached version may be returned
- Returns:
- list of ARP cache entries
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getOSPFInfoGet OSPF information for given node.- Parameters:
- nodeId- node object ID
- Returns:
- OSPF information
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSwitchForwardingDatabaseGet switch forwarding database (MAC address table) from node- Parameters:
- nodeId- node object ID
- Returns:
- list of switch forwarding database entries
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getWirelessStationsGet list of wireless stations registered at given wireless controller or access point.- Parameters:
- objectId- controller node ID or access point ID
- Returns:
- list of wireless stations
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
addWirelessDomainControllerpublic void addWirelessDomainController(long wirelessDomainId, long nodeId) throws IOException, NXCException Add controller node to wireless domain.- Parameters:
- wirelessDomainId- wireless domain object ID
- nodeId- node object ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
removeWirelessDomainControllerpublic void removeWirelessDomainController(long wirelessDomainId, long nodeId) throws IOException, NXCException Remove controller node from wireless domain.- Parameters:
- wirelessDomainId- wireless domain object ID
- nodeId- node object ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
removePackageRemove agent package from server- Parameters:
- packageId- The package ID
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
installPackagepublic long installPackage(PackageInfo info, File pkgFile, ProgressListener listener) throws IOException, NXCException Install (upload) package on server- Parameters:
- info- package information
- pkgFile- package file
- listener- progress listener (may be null)
- Returns:
- unique ID assigned to package
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updatePackageMetadataUpdate metadata for existing package.- Parameters:
- info- package information (file name field will be ignored)
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getInstalledPackagesGet list of installed packages- Returns:
- List of PackageInfo objects
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deployPackagepublic void deployPackage(long packageId, Collection<Long> nodeList) throws IOException, NXCException Deploy agent packages onto given nodes- Parameters:
- packageId- package ID
- nodeList- list of nodes
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getPackageDeploymentJobsGet list of package deployment jobs- Returns:
- list of package deployment jobs
- Throws:
- IOException- if socket or file I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
cancelPackageDeploymentJob- Throws:
- IOException
- NXCException
 
- 
sendNotificationpublic void sendNotification(String channelName, String phoneNumber, String subject, String message) throws IOException, NXCException Send Notification via server. User should have appropriate rights to execute this command.- Parameters:
- channelName- channel name
- phoneNumber- target phone number
- subject- message subject
- message- message text
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
pushDciDataPush data to server.- Parameters:
- data- push data
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
pushDciDataPush value for single DCI.- Parameters:
- nodeId- node ID
- dciId- DCI ID
- value- value to push
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
pushDciDatapublic void pushDciData(String nodeName, String dciName, String value) throws IOException, NXCException Push value for single DCI.- Parameters:
- nodeName- node name
- dciName- DCI name
- value- value to push
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getClientTypepublic int getClientType()- Returns:
- the clientType
 
- 
setClientTypepublic void setClientType(int clientType) Set client type. Can be one of the following: DESKTOP_CLIENT WEB_CLIENT MOBILE_CLIENT TABLET_CLIENT APPLICATION_CLIENT Must be called before connect(), otherwise will not have any effect. Ignored by servers prior to 1.2.2.- Parameters:
- clientType- the clientType to set
 
- 
getDateFormatGet default date format provided by server- Returns:
- The current date format
 
- 
getTimeFormatGet default time format provided by server- Returns:
- The current time format
 
- 
getShortTimeFormatGet time format for short form (usually without seconds).- Returns:
- The current short time format
 
- 
handoverHandover object cache to new session. After call to this method, object cache of this session invalidated and should not be used.- Parameters:
- target- target session object
 
- 
getSessionIdpublic int getSessionId()Get this session's ID on server.- Returns:
- the sessionId
 
- 
listMappingTablesGet list of all configured mapping tables.- Returns:
- List of MappingTableDescriptor objects
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getMappingTableGet list of specific mapping table- Parameters:
- id- The ID of mapping table
- Returns:
- The MappingTable
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createMappingTablepublic int createMappingTable(String name, String description, int flags) throws IOException, NXCException Create new mapping table.- Parameters:
- name- name of new table
- description- description for new table
- flags- flags for new table
- Returns:
- ID of new table object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateMappingTableCreate or update mapping table. If table ID is 0, new table will be created on server.- Parameters:
- table- mapping table
- Returns:
- ID of new table object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteMappingTableDelete mapping table- Parameters:
- id- mapping table ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getDefaultDciRetentionTimepublic final int getDefaultDciRetentionTime()Get the default DCI retention time- Returns:
- the default DCI retention time in days
 
- 
getDefaultDciPollingIntervalpublic final int getDefaultDciPollingInterval()Get the default DCI polling interval- Returns:
- the default DCI polling interval in seconds
 
- 
getMinViewRefreshIntervalpublic int getMinViewRefreshInterval()Get the minimal view refresh interval- Returns:
- the minViewRefreshInterval
 
- 
isStrictAlarmStatusFlowpublic final boolean isStrictAlarmStatusFlow()Get the state of alarm status flow- Returns:
- true if alarm status flow set to "strict" mode
 
- 
isTimedAlarmAckEnabledpublic boolean isTimedAlarmAckEnabled()- Returns:
- true if timed alarm acknowledgement is enabled
 
- 
listDciSummaryTablesGet list of all configured DCI summary tables- Returns:
- List of DciSummaryTableDescriptor objects
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getDciSummaryTableGet DCI summary table configuration.- Parameters:
- id- DCI summary table ID.
- Returns:
- The DciSummaryTable object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyDciSummaryTableModify DCI summary table configuration. Will create new table object if id is 0.- Parameters:
- table- DCI summary table configuration
- Returns:
- assigned summary table ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteDciSummaryTableDelete DCI summary table.- Parameters:
- id- The ID of the summary table
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryDciSummaryTableQuery DCI summary table.- Parameters:
- tableId- DCI summary table ID
- baseObjectId- base container object ID
- Returns:
- table with last values data for all nodes under given base container
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryAdHocDciSummaryTablepublic Table queryAdHocDciSummaryTable(long baseObjectId, List<DciSummaryTableColumn> columns, AggregationFunction function, Date periodStart, Date periodEnd, boolean multiInstance) throws IOException, NXCException Query ad-hoc DCI summary table.- Parameters:
- baseObjectId- base container object ID
- columns- columns for resulting table
- function- data aggregation function
- periodStart- start of query period
- periodEnd- end of query period
- multiInstance- The multiInstance flag
- Returns:
- table with last values data for all nodes under given base container
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
listReportsList reports- Returns:
- List of report UUIDs
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getReportDefinitionGet the report definition- Parameters:
- reportId- The UUID of the report
- Returns:
- The ReportDefinition object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeReportpublic UUID executeReport(ReportingJobConfiguration jobConfiguration) throws NXCException, IOException Execute a report- Parameters:
- jobConfiguration- The parameters to set
- Returns:
- the UUID of the report
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getReportResultsList report results- Parameters:
- reportId- The report UUID
- Returns:
- List of ReportResult objects
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteReportResultDelete report result- Parameters:
- reportId- The report UUID
- jobId- The job UUID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
renderReportpublic File renderReport(UUID reportId, UUID jobId, ReportRenderFormat format) throws NXCException, IOException Render report- Parameters:
- reportId- The report UUID
- jobId- The job UUID
- format- The format of the render
- Returns:
- The render of the report
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getScheduledReportingJobsList scheduled jobs- Parameters:
- reportId- The report UUID
- Returns:
- List of ReportingJob objects
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setClientAddressSet the client address- Parameters:
- clientAddress- the clientAddress to set
 
- 
getClientLanguageGet the client`s language- Returns:
- the clientLanguage
 
- 
setClientLanguageSet client`s language- Parameters:
- clientLanguage- the clientLanguage to set
 
- 
getSubnetAddressMapGet address map for subnet. Returned array contains one entry for each IP address in a subnet. Element value could be eithet ID of the node with that IP address, 0 for unused addresses, and 0xFFFFFFFF for subnet and broadcast addresses.- Parameters:
- subnetId- The subnet ID
- Returns:
- Address map
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAgentConfigurationsGets the list of configuration files.(Config id, name and sequence number)- Returns:
- the list of configuration files in correct sequence
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAgentConfigurationGet server side agent configuration- Parameters:
- id- configuration object ID
- Returns:
- agent configuration object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
saveAgentConfigUpdate server side agent configuration- Parameters:
- configuration- agent configuration object
- Returns:
- configuration ID (possibly newly assigned)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteAgentConfigDelete server side agent configuration. This call will not change sequence numbers of other configurations.- Parameters:
- id- agent configuration ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
swapAgentConfigsSwap sequence numbers of two server side agent configurations.- Parameters:
- id1- first agent configuration ID
- id2- second agent configuration ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getLocationHistorypublic List<GeoLocation> getLocationHistory(long objectId, Date from, Date to) throws NXCException, IOException Get location history for given object.- Parameters:
- objectId- The object ID
- from- The date from
- to- The date to
- Returns:
- List of location history
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
takeScreenshotTake screenshot from given node. Session to take screenshot from can be identified either by ID or name. If ID is used name must be set to null.- Parameters:
- nodeId- node object ID
- sessionName- session name for session to take screenshot from
- Returns:
- Screenshot as PNG image
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getScheduledTaskHandlersGet list of available scheduled task handlers.- Returns:
- list of available scheduled task handlers.
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getScheduledTasksGet list of scheduled tasks.- Returns:
- list of scheduled tasks
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
addScheduledTaskAdd new scheduled task- Parameters:
- task- new scheduled task
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateScheduledTaskUpdate existing scheduled task.- Parameters:
- task- updated scheduled task
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteScheduledTaskDelete scheduled task.- Parameters:
- taskId- scheduled task ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setObjectMaintenanceModepublic void setObjectMaintenanceMode(long objectId, boolean inMaintenance, String comments) throws NXCException, IOException Set maintenance mode for object- Parameters:
- objectId- object ID
- inMaintenance- new maintenance mode setting (true = on, false = off)
- comments- comments for entering maintenance
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setObjectMaintenanceModepublic void setObjectMaintenanceMode(long objectId, boolean inMaintenance) throws NXCException, IOException Set maintenance mode for object- Parameters:
- objectId- object ID
- inMaintenance- new maintenance mode setting (true = on, false = off)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getRepositoriesGet list of configured repositories- Returns:
- list of configured repositories
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
addRepositoryAdd repository. Will update given repository object with assigned ID.- Parameters:
- r- The repository
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyRepositoryModify repository.- Parameters:
- r- The repository
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteRepositoryDelete repository.- Parameters:
- id- The id
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getPredictionEnginesGet list of registered prediction engines- Returns:
- List of PredictionEngine objects
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getPredictedDatapublic DciData getPredictedData(long nodeId, long dciId, Date from, Date to) throws IOException, NXCException Get predicted DCI data from server.- Parameters:
- nodeId- Node ID
- dciId- DCI ID
- from- Start of time range
- to- End of time range
- Returns:
- DCI data set
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAgentTunnelsGet list of agent tunnels- Returns:
- list of agent tunnels
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
waitForAgentTunnelpublic boolean waitForAgentTunnel(long nodeId, long timeout) Wait for bound tunnel for given node to appear. This method will not throw usual exceptions on communication or server errors but will return false instead.- Parameters:
- nodeId- node ID
- timeout- waiting timeout in milliseconds
- Returns:
- true if bound tunnel for given node exist
 
- 
bindAgentTunnelBind agent tunnel to node- Parameters:
- tunnelId- tunnel ID
- nodeId- node ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
unbindAgentTunnelUnbind agent tunnel to node- Parameters:
- nodeId- node ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
substituteMacrospublic List<String> substituteMacros(ObjectContextBase context, List<String> textsToExpand, Map<String, String> inputValues) throws IOException, NXCExceptionSubstitute macros in multiple strings within one context.- Parameters:
- context- expansion context
- textsToExpand- texts to be expanded
- inputValues- input values provided by used used for %() expansion
- Returns:
- same count and order of strings already expanded
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
substituteMacrospublic List<String> substituteMacros(ObjectContextBase[] context, String textToExpand, Map<String, String> inputValues) throws IOException, NXCExceptionSubstitute macros in one string within multiple contexts.- Parameters:
- context- expansion contexts
- textToExpand- text to be expanded
- inputValues- input values provided by used used for %() expansion
- Returns:
- same count and order of strings already expanded
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setupTcpProxypublic TcpProxy setupTcpProxy(long proxyId, InetAddress address, int port) throws IOException, NXCException Setup new TCP proxy channel. Proxy object should be disposed with TcpProxy.close() call when no longer needed. If zone object ID passed as proxyId then server will select most suitable proxy node from zone's proxy node list.- Parameters:
- proxyId- proxy node ID (node that will initiate TCP connection to target) or zone object ID
- address- target IP address
- port- target TCP port
- Returns:
- TCP proxy object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setupTcpProxySetup new TCP proxy channel to given node. Server will select appropriate proxy node. Proxy object should be disposed with TcpProxy.close() call when no longer needed.- Parameters:
- nodeId- target node ID
- port- target TCP port
- Returns:
- TCP proxy object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
closeTcpProxyprotected void closeTcpProxy(int channelId) Close TCP proxy channel.- Parameters:
- channelId- proxy channel ID
 
- 
getAgentPolicypublic AgentPolicy getAgentPolicy(long templateId, UUID policyGUID) throws IOException, NXCException Get agent policy by template id and GUID- Parameters:
- templateId- template id policy is in
- policyGUID- policy GUID
- Returns:
- agent policy
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAgentPolicyListpublic HashMap<UUID,AgentPolicy> getAgentPolicyList(long templateId) throws IOException, NXCException Returns agent policy list- Parameters:
- templateId- id of the template where policy are defined
- Returns:
- hash map of policy UUID to policy
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
savePolicypublic UUID savePolicy(long templateId, AgentPolicy policy, boolean duplicate) throws NXCException, IOException Saves new or updated policy- Parameters:
- templateId- id of template where policy is defined
- policy- policy data to be updated or created. For new policy GUID should be null
- duplicate- if set to true server will make copy of existing policy instead of updating existing one
- Returns:
- UUID of saved policy
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deletePolicyDelete policy- Parameters:
- templateId- id of template where policy is defined
- guid- guid of the policy that should be deleted
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
onPolicyEditorCloseCommand sent on policyEditor close to send updates to all applied nodes- Parameters:
- templateId- id of the closed template
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
forcePolicyInstallationForce policy installation on all nodes where template is applied- Parameters:
- templateId- template id
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getUserAgentNotificationsGet user support application notifications list- Returns:
- list of user support application notifications
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
recallUserAgentNotificationRecall user support application notification- Parameters:
- id- recall id
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createUserAgentNotificationpublic void createUserAgentNotification(String message, long[] objects, Date startTime, Date endTime, boolean onStartup) throws NXCException, IOException Create new user support application notifications- Parameters:
- message- notification message
- objects- objects to show notifications on
- startTime- notification's activation time
- endTime- notificaiton's display end time
- onStartup- true if notification should be shown only after user agent startup (usually immediately after user login)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createUserAgentNotificationpublic void createUserAgentNotification(String message, Collection<Long> objects, Date startTime, Date endTime, boolean onStartup) throws NXCException, IOException Create new user support application notifications- Parameters:
- message- notification message
- objects- objects to show notifications on
- startTime- notification's activation time
- endTime- notificaiton's display end time
- onStartup- true if notification should be shown only after user agent startup (usually immediately after user login)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getNotificationChannelsGet server notification channels- Returns:
- list of server notifications channels
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createNotificationChannelCreate notification channel- Parameters:
- nc- new notification channel
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateNotificationChannelUpdate notification channel- Parameters:
- nc- update notification channel
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteNotificationChannelDelete notification channel- Parameters:
- name- name of notification channel to be deleted
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
renameNotificationChannelpublic void renameNotificationChannel(String oldName, String newName) throws NXCException, IOException Rename notification channel- Parameters:
- oldName- old notification channel name
- newName- new notification channel name
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getNotificationDriversGet list of available notification channel drivers.- Returns:
- list of available notification channel drivers
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
startManualActiveDiscoverypublic void startManualActiveDiscovery(List<InetAddressListElement> ranges) throws NXCException, IOException Start active discovery for provided list manually- Parameters:
- ranges- IP address ranges to scan
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getPhysicalLinkspublic List<PhysicalLink> getPhysicalLinks(long objectId, long patchPanelId) throws NXCException, IOException Get list of physical links filtered by provided options- Parameters:
- objectId- node id or rack id to filter out physical links
- patchPanelId- patch panel id to filter out it's physical links (first parameter should be rack id)
- Returns:
- list of physical links
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updatePhysicalLinkCreate new or update existing physical link- Parameters:
- link- link to be created with ID 0 or link to be updated with correct ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deletePhysicalLinkDelete physical link.- Parameters:
- linkId- physical link ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getWebServiceDefinitionsGet configured web service definitions.- Returns:
- list of configured web service definitions
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyWebServiceDefinitionpublic int modifyWebServiceDefinition(WebServiceDefinition definition) throws NXCException, IOException Modify (or create new) web service definition. New definition will be created if ID of provided definition object set to 0.- Parameters:
- definition- web service definition to create or modify
- Returns:
- assigned ID of web service definition (same as provided if modifying existing definition)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteWebServiceDefinitionDelete web service definition.- Parameters:
- id- web service definition ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getWellKnownPortsGet list of well-known ports (global and all zones).- Parameters:
- tag- port list tag
- Returns:
- list of well-known ports
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getWellKnownPortsGet list of well-known ports for given zone.- Parameters:
- zoneUIN- zone UIN (-1 for global port list)
- tag- port list tag
- Returns:
- list of well-known ports
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateWellKnownPortspublic void updateWellKnownPorts(int zoneUIN, String tag, List<Integer> ports) throws IOException, NXCException Update list of well-known ports.- Parameters:
- zoneUIN- zone UIN for which port list should be updated (-1 for global port list)
- tag- port list tag
- ports- new port list
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getGeoAreasGet configured geographical areas- Returns:
- list of configured geographical areas
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyGeoAreaModify geographical area.- Parameters:
- area- updated geographical area object
- Returns:
- ID of geographical area object
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteGeoAreaDelete geographical area. This method will fail if area is in use (set to at least one object) unless forceDelete parameter set to true.- Parameters:
- areaId- area ID
- forceDelete- force deletion flag - if set to true area will be deleted even if in use
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
findProxyForNodeFind suitable proxy for given node.- Parameters:
- nodeId- node object ID
- Returns:
- proxy node object ID or 0 if proxy cannot be found
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getSshKeysGet list of SSH key- Parameters:
- withPublicKey- true if ssh data should be returned with public key
- Returns:
- list of SSH keys
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteSshKeyDelete SSH key.- Parameters:
- id- key ID
- force- if set to true key will be deleted even if it is in use
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateSshKeyUpdate or import new SSH keys- Parameters:
- sshCertificateData- ssh key information
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
generateSshKeysGenerate new SSH keys .- Parameters:
- name- for new keys
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
get2FADriversGet list of available two-factor authentication drivers.- Returns:
- list of available two-factor authentication drivers
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
get2FAMethodsGet list of configured two-factor authentication methods. Depending on user access method configuration may not be returned.- Returns:
- list of configured two-factor authentication methods
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modify2FAMethodModify existing two-factor authentication method or create new one.- Parameters:
- method- method definition
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
rename2FAMethodRename two-factor authentication method- Parameters:
- oldName- old method name
- newName- new method name
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
delete2FAMethodDelete two-factor authentication method.- Parameters:
- name- method name
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getBusinessServiceCheckspublic Map<Long,BusinessServiceCheck> getBusinessServiceChecks(long serviceId) throws NXCException, IOException Get list business service checks- Parameters:
- serviceId- business service id
- Returns:
- list of business service checks
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteBusinessServiceCheckpublic void deleteBusinessServiceCheck(long businessServiceid, long checkId) throws NXCException, IOException Delete check form businsess service- Parameters:
- businessServiceid- business service id
- checkId- cehck id
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
modifyBusinessServiceCheckpublic void modifyBusinessServiceCheck(long businessServiceid, BusinessServiceCheck check) throws NXCException, IOException Modify check form businsess service- Parameters:
- businessServiceid- business service id
- check- cehck id
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getBusinessServiceAvailablitypublic double getBusinessServiceAvailablity(long businessServiceid, TimePeriod timePeriod) throws NXCException, IOException Get business service availability- Parameters:
- businessServiceid- business service id
- timePeriod- time period
- Returns:
- uptime for selected period
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getBusinessServiceTicketspublic List<BusinessServiceTicket> getBusinessServiceTickets(long businessServiceid, TimePeriod timePeriod) throws NXCException, IOException Get business service tickets- Parameters:
- businessServiceid- business service id
- timePeriod- time period
- Returns:
- list of tickets for business service
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
findDCISend request for last values using prepared message- Parameters:
- rootObjectId- root object id
- query- qury string
- Returns:
- The DCI values
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getEventReferencesGet list of objects that are using specified event- Parameters:
- eventCode- code of the event
- Returns:
- list of event references
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAllMaintenanceEntriespublic List<MaintenanceJournalEntry> getAllMaintenanceEntries(long objectId, int maxEntries) throws IOException, NXCException Get list of maintenance journal entries for specified object and it's child objects- Parameters:
- objectId- journal owner object ID
- maxEntries- upper entries count limit. No limit used if set to 0
- Returns:
- list of maintenance journal entries
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
createMaintenanceEntrypublic void createMaintenanceEntry(long objectId, String description) throws IOException, NXCException Create new maintenance journal entry for specified object- Parameters:
- objectId- journal owner object ID
- description- journal entry description
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
editMaintenanceEntrypublic void editMaintenanceEntry(long objectId, long entryId, String description) throws IOException, NXCException Edit specified maintenance journal entry for specified object- Parameters:
- objectId- journal owner object ID
- entryId- journal entry ID
- description- journal entry description
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getDciMeasurementUnitspublic Map<Long,MeasurementUnit> getDciMeasurementUnits(List<Long> nodeIds, List<Long> dciIds) throws IOException, NXCException Get info for given DCI list- Parameters:
- nodeIds- node identifiers
- dciIds- DCI identifiers (length must match length of node identifiers list)
- Returns:
- map with DCI information
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getDciMeasurementUnitspublic Map<Long,MeasurementUnit> getDciMeasurementUnits(List<ChartDciConfig> dciList) throws IOException, NXCException Get measurement units for given DCI list- Parameters:
- dciList- list of DCI chart configurations
- Returns:
- map with DCI information
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getDciMeasurementUnitspublic Map<Long,MeasurementUnit> getDciMeasurementUnits(ChartDciConfig[] dciList) throws IOException, NXCException Get info for given DCI list- Parameters:
- dciList- list of DCI chart configurations
- Returns:
- map with DCI information
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
cloneNetworkMappublic void cloneNetworkMap(long mapId, String newObjectName, String alias) throws IOException, NXCException Create network map clone- Parameters:
- mapId- map id to clone
- newObjectName- name of the new object
- alias- new object alias
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getVendorByMacGet vendor name by OUI part of MAC address. Local cache is checked first, and only if OUI is not found in local cache request to server is made. If server request is made method will return null and queue background request to the server, and if completion callback is provided it will be called after local cache is populated, so next request togetVendorByMacwill complete without request to the server.- Parameters:
- mac- MAC address
- callback- request completion callback
- Returns:
- vendor name, could be null or empty string if OUI is not known (yet)
 
- 
getVendorByMacpublic Map<MacAddress,String> getVendorByMac(Set<MacAddress> macList) throws IOException, NXCException Get vendor names by OUI part of provided MAC addresses. Resulting map will contain all unique OUIs extracted from provided MAC addresses.- Parameters:
- macList- list of MAC addresses
- Returns:
- OUI to vendor map
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
syncAssetManagementSchemaSynchronize asset management schema.- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getAssetManagementSchemaGet asset management schema from client-side cache.- Returns:
- asset management attributes
 
- 
getAssetManagementSchemaSizepublic int getAssetManagementSchemaSize()Get size of asset management schema (number of defined attributes).- Returns:
- size of asset management schema
 
- 
createAssetAttributeCreate asset attribute (definition in asset management schema)..- Parameters:
- attribute- attribute to create
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateAssetAttributeUpdate asset attribute (definition in asset management schema).- Parameters:
- attribute- attribute to update
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteAssetAttributeDelete asset attribute (definition in asset management schema).- Parameters:
- name- name of attribute to be deleted
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
isAssetAttributeUniqueCheck if asset management attribute name is unique- Parameters:
- newName- new attribute name
- Returns:
- true if it is unique
 
- 
setAssetPropertypublic void setAssetProperty(long objectId, String name, String value) throws IOException, NXCException Set asset property value.- Parameters:
- objectId- object id
- name- property name
- value- new value
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
deleteAssetPropertyDelete asset property.- Parameters:
- objectId- object id
- name- property name
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
linkAssetpublic void linkAsset(long assetId, long objectId, boolean updateIdentification) throws IOException, NXCException Link asset object to given object. If asset is already linked to another object, that link will be removed.- Parameters:
- assetId- asset object ID
- objectId- other object ID
- updateIdentification- if identification filed (serial or MAC address should be updated on link)
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
unlinkAssetUnlink asset from object it is currently linked to. Will do nothing if asset is not linked.- Parameters:
- assetId- asset object ID
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
updateNetworkMapElementPositionpublic void updateNetworkMapElementPosition(long mapId, Set<NetworkMapElement> elements, Set<NetworkMapLink> links) throws IOException, NXCException Update network map object location- Parameters:
- mapId- network map id
- elements- element list to be updated
- links- link list to be updated
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
getNetworkMapDefaultWidthpublic int getNetworkMapDefaultWidth()- Returns:
- the networkMapDefaultWidth
 
- 
getNetworkMapDefaultHeightpublic int getNetworkMapDefaultHeight()- Returns:
- the networkMapDefaultHeight
 
- 
compileMibspublic void compileMibs(Consumer<MibCompilationLogEntry> outputCallback) throws IOException, NXCException Compile MIBs- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
executeScriptedComparisonChartElementpublic Map<String,String> executeScriptedComparisonChartElement(long dashboardId, long elementId, long objectId) throws IOException, NXCException Execute dashboard script and get return value as map. Content of returned map depends on actual data type of script return value:- For hash map matching map will be returned;
- For array all elements will be returned as values and keys will be element positions starting as 1;
- For all other types map will consist of single element with key "1" and script return value as value.
 - Parameters:
- dashboardId- ID of the dashboard script should be taken from
- elementId- index of the dashboard element script should be taken from
- objectId- ID of the object to run script on
- Returns:
- script return value as a map
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
setInterfacePeerpublic void setInterfacePeer(long localInterfaceId, long peerInterfaceId) throws IOException, NXCException Set peer interface for given interface.- Parameters:
- localInterfaceId- ID of interface object to set peer information on.
- peerInterfaceId- remote interface object to be set as peer.
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
clearInterfacePeerClear peer interface information.- Parameters:
- interfaceId- interface object to clear peer information on
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
queryAiAssistantSend query to AI assistant.- Parameters:
- prompt- user prompt
- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
- 
clearAiAssistantChatClear AI assistant chat history.- Throws:
- IOException- if socket I/O error occurs
- NXCException- if NetXMS server returns an error or operation was timed out
 
 
-