org.netxms.client.objects
Class AbstractNode

java.lang.Object
  extended by org.netxms.client.objects.AbstractObject
      extended by org.netxms.client.objects.GenericObject
          extended by org.netxms.client.objects.AbstractNode
Direct Known Subclasses:
Node

public abstract class AbstractNode
extends GenericObject

Abstract base class for node objects.


Field Summary
static int AGENT_AUTH_MD5
           
static int AGENT_AUTH_NONE
           
static int AGENT_AUTH_PLAINTEXT
           
static int AGENT_AUTH_SHA1
           
protected  int agentAuthMethod
           
protected  int agentPort
           
protected  java.lang.String agentSharedSecret
           
protected  java.lang.String agentVersion
           
protected  MacAddress bridgeBaseAddress
           
protected  java.lang.String driverName
           
protected  java.lang.String driverVersion
           
protected  int flags
           
static int IFXTABLE_DEFAULT
           
static int IFXTABLE_DISABLED
           
static int IFXTABLE_ENABLED
           
protected  int ifXTablePolicy
           
protected  java.lang.String lldpNodeId
           
static int NDF_AGENT_UNREACHABLE
           
static int NDF_CPSNMP_UNREACHABLE
           
static int NDF_POLLING_DISABLED
           
static int NDF_SNMP_UNREACHABLE
           
static int NDF_UNREACHABLE
           
static int NF_BEHIND_NAT
           
static int NF_DISABLE_CONF_POLL
           
static int NF_DISABLE_DATA_COLLECT
           
static int NF_DISABLE_DISCOVERY_POLL
           
static int NF_DISABLE_ICMP
           
static int NF_DISABLE_NXCP
           
static int NF_DISABLE_ROUTE_POLL
           
static int NF_DISABLE_SNMP
           
static int NF_DISABLE_STATUS_POLL
           
static int NF_DISABLE_TOPOLOGY_POLL
           
static int NF_FORCE_ENCRYPTION
           
static int NF_HAS_AGENT_IFXCOUNTERS
           
static int NF_HAS_ENTITY_MIB
           
static int NF_HAS_IFXTABLE
           
static int NF_HAS_VLANS
           
static int NF_HAS_WINPDH
           
static int NF_IS_8021X
           
static int NF_IS_BRIDGE
           
static int NF_IS_CDP
           
static int NF_IS_CPSNMP
           
static int NF_IS_LLDP
           
static int NF_IS_LOCAL_MGMT
           
static int NF_IS_NATIVE_AGENT
           
static int NF_IS_OSPF
           
static int NF_IS_PRINTER
           
static int NF_IS_ROUTER
           
static int NF_IS_SMCLP
           
static int NF_IS_SNMP
           
static int NF_IS_SONMP
           
static int NF_IS_STP
           
static int NF_IS_VRRP
           
static int NF_IS_WIFI_CONTROLLER
           
protected  int nodeType
           
protected  java.lang.String platformName
           
protected  long pollerNodeId
           
protected  java.lang.String primaryName
           
protected  long proxyNodeId
           
protected  int requredPollCount
           
protected  int runtimeFlags
           
static int SNMP_VERSION_1
           
static int SNMP_VERSION_2C
           
static int SNMP_VERSION_3
           
protected  int snmpAuthMethod
           
protected  java.lang.String snmpAuthName
           
protected  java.lang.String snmpAuthPassword
           
protected  java.lang.String snmpOID
           
protected  int snmpPort
           
protected  int snmpPrivMethod
           
protected  java.lang.String snmpPrivPassword
           
protected  long snmpProxyId
           
protected  java.lang.String snmpSysName
           
protected  int snmpVersion
           
protected  java.lang.String systemDescription
           
protected  int vrrpVersion
           
protected  long zoneId
           
 
Fields inherited from class org.netxms.client.objects.AbstractObject
accessList, BUSINESSSERVICEROOT, CALCULATE_DEFAULT, CALCULATE_MOST_CRITICAL, CALCULATE_MULTIPLE_THRESHOLDS, CALCULATE_SINGLE_THRESHOLD, children, comments, customAttributes, DASHBOARDROOT, fixedPropagatedStatus, geolocation, guid, image, inheritAccessRights, isDeleted, NETWORK, NETWORKMAPROOT, OBJECT_ACCESSPOINT, OBJECT_AGENTPOLICY, OBJECT_AGENTPOLICY_CONFIG, OBJECT_BUSINESSSERVICE, OBJECT_BUSINESSSERVICEROOT, OBJECT_CLUSTER, OBJECT_CONDITION, OBJECT_CONTAINER, OBJECT_CUSTOM, OBJECT_DASHBOARD, OBJECT_DASHBOARDROOT, OBJECT_GENERIC, OBJECT_INTERFACE, OBJECT_MOBILEDEVICE, OBJECT_NETWORK, OBJECT_NETWORKMAP, OBJECT_NETWORKMAPGROUP, OBJECT_NETWORKMAPROOT, OBJECT_NETWORKSERVICE, OBJECT_NODE, OBJECT_NODELINK, OBJECT_POLICYGROUP, OBJECT_POLICYROOT, OBJECT_RACK, OBJECT_REPORT, OBJECT_REPORTGROUP, OBJECT_REPORTROOT, OBJECT_SERVICEROOT, OBJECT_SLMCHECK, OBJECT_SUBNET, OBJECT_TEMPLATE, OBJECT_TEMPLATEGROUP, OBJECT_TEMPLATEROOT, OBJECT_VPNCONNECTOR, OBJECT_ZONE, objectClass, objectId, objectName, parents, POLICYROOT, primaryIP, PROPAGATE_DEFAULT, PROPAGATE_FIXED, PROPAGATE_RELATIVE, PROPAGATE_TRANSLATED, PROPAGATE_UNCHANGED, REPORTROOT, SERVICEROOT, session, status, statusCalculationMethod, statusPropagationMethod, statusShift, statusSingleThreshold, statusThresholds, statusTransformation, submapId, TEMPLATEROOT, trustedNodes, ZONE0
 
Constructor Summary
AbstractNode(long id, NXCSession session)
          Create new node object.
AbstractNode(NXCPMessage msg, NXCSession session)
          Create node object from NXCP message.
 
Method Summary
 int getAgentAuthMethod()
           
 int getAgentPort()
           
 java.lang.String getAgentSharedSecret()
           
 java.lang.String getAgentVersion()
           
 MacAddress getBridgeBaseAddress()
           
 java.lang.String getDriverName()
           
 java.lang.String getDriverVersion()
           
 int getFlags()
           
 int getIfXTablePolicy()
           
 java.lang.String getLldpNodeId()
           
 int getNodeType()
           
 java.lang.String getPlatformName()
           
 long getPollerNodeId()
           
 MacAddress getPrimaryMAC()
          Get MAC address of interface with node's primary IP
 java.lang.String getPrimaryName()
           
 long getProxyNodeId()
           
 int getRequredPollCount()
           
 int getRuntimeFlags()
           
 int getSnmpAuthMethod()
          Get SNMP authentication method
 java.lang.String getSnmpAuthName()
          Get SNMP authentication name - community string for version 1 and 2c, or user name for version 3.
 java.lang.String getSnmpAuthPassword()
          Get SNMP authentication password.
 java.lang.String getSnmpOID()
           
 int getSnmpPort()
           
 int getSnmpPrivMethod()
          Get SNMP privacy (encryption) method
 java.lang.String getSnmpPrivPassword()
          Get SNMP privacy password.
 long getSnmpProxyId()
           
 java.lang.String getSnmpSysName()
           
 int getSnmpVersion()
           
 java.lang.String getSystemDescription()
           
protected  int getVrrpVersion()
           
 long getZoneId()
           
 boolean hasAgent()
           
 boolean hasSnmpAgent()
           
 boolean is8021xSupported()
           
 boolean isAgentIfXCountersSupported()
           
 boolean isEntityMibSupported()
           
 boolean isIfXTableSupported()
           
 boolean isManagementServer()
           
 boolean isSpanningTreeSupported()
           
 boolean isVrrpSupported()
           
 boolean isWirelessController()
           
 
Methods inherited from class org.netxms.client.objects.AbstractObject
getAccessList, getAllChilds, getAllParents, getChildIdList, getChildren, getChildsAsArray, getComments, getCustomAttributes, getFixedPropagatedStatus, getGeolocation, getGuid, getImage, getObjectClass, getObjectClassName, getObjectId, getObjectName, getParentIdList, getParents, getParentsAsArray, getPrimaryIP, getStatus, getStatusCalculationMethod, getStatusPropagationMethod, getStatusShift, getStatusSingleThreshold, getStatusThresholds, getStatusTransformation, getSubmapId, getTrustedNodes, hasAccessibleChildren, hasChildren, hashCode, hasParents, isAllowedOnMap, isChildOf, isChildOf, isDefaultImage, isDeleted, isDirectChildOf, isInheritAccessRights, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SNMP_VERSION_1

public static final int SNMP_VERSION_1
See Also:
Constant Field Values

SNMP_VERSION_2C

public static final int SNMP_VERSION_2C
See Also:
Constant Field Values

SNMP_VERSION_3

public static final int SNMP_VERSION_3
See Also:
Constant Field Values

AGENT_AUTH_NONE

public static final int AGENT_AUTH_NONE
See Also:
Constant Field Values

AGENT_AUTH_PLAINTEXT

public static final int AGENT_AUTH_PLAINTEXT
See Also:
Constant Field Values

AGENT_AUTH_MD5

public static final int AGENT_AUTH_MD5
See Also:
Constant Field Values

AGENT_AUTH_SHA1

public static final int AGENT_AUTH_SHA1
See Also:
Constant Field Values

NF_IS_SNMP

public static final int NF_IS_SNMP
See Also:
Constant Field Values

NF_IS_NATIVE_AGENT

public static final int NF_IS_NATIVE_AGENT
See Also:
Constant Field Values

NF_IS_BRIDGE

public static final int NF_IS_BRIDGE
See Also:
Constant Field Values

NF_IS_ROUTER

public static final int NF_IS_ROUTER
See Also:
Constant Field Values

NF_IS_LOCAL_MGMT

public static final int NF_IS_LOCAL_MGMT
See Also:
Constant Field Values

NF_IS_PRINTER

public static final int NF_IS_PRINTER
See Also:
Constant Field Values

NF_IS_OSPF

public static final int NF_IS_OSPF
See Also:
Constant Field Values

NF_BEHIND_NAT

public static final int NF_BEHIND_NAT
See Also:
Constant Field Values

NF_IS_CPSNMP

public static final int NF_IS_CPSNMP
See Also:
Constant Field Values

NF_IS_CDP

public static final int NF_IS_CDP
See Also:
Constant Field Values

NF_IS_SONMP

public static final int NF_IS_SONMP
See Also:
Constant Field Values

NF_IS_LLDP

public static final int NF_IS_LLDP
See Also:
Constant Field Values

NF_IS_VRRP

public static final int NF_IS_VRRP
See Also:
Constant Field Values

NF_HAS_VLANS

public static final int NF_HAS_VLANS
See Also:
Constant Field Values

NF_IS_8021X

public static final int NF_IS_8021X
See Also:
Constant Field Values

NF_IS_STP

public static final int NF_IS_STP
See Also:
Constant Field Values

NF_HAS_ENTITY_MIB

public static final int NF_HAS_ENTITY_MIB
See Also:
Constant Field Values

NF_HAS_IFXTABLE

public static final int NF_HAS_IFXTABLE
See Also:
Constant Field Values

NF_HAS_AGENT_IFXCOUNTERS

public static final int NF_HAS_AGENT_IFXCOUNTERS
See Also:
Constant Field Values

NF_HAS_WINPDH

public static final int NF_HAS_WINPDH
See Also:
Constant Field Values

NF_IS_WIFI_CONTROLLER

public static final int NF_IS_WIFI_CONTROLLER
See Also:
Constant Field Values

NF_IS_SMCLP

public static final int NF_IS_SMCLP
See Also:
Constant Field Values

NF_DISABLE_DISCOVERY_POLL

public static final int NF_DISABLE_DISCOVERY_POLL
See Also:
Constant Field Values

NF_DISABLE_TOPOLOGY_POLL

public static final int NF_DISABLE_TOPOLOGY_POLL
See Also:
Constant Field Values

NF_DISABLE_SNMP

public static final int NF_DISABLE_SNMP
See Also:
Constant Field Values

NF_DISABLE_NXCP

public static final int NF_DISABLE_NXCP
See Also:
Constant Field Values

NF_DISABLE_ICMP

public static final int NF_DISABLE_ICMP
See Also:
Constant Field Values

NF_FORCE_ENCRYPTION

public static final int NF_FORCE_ENCRYPTION
See Also:
Constant Field Values

NF_DISABLE_STATUS_POLL

public static final int NF_DISABLE_STATUS_POLL
See Also:
Constant Field Values

NF_DISABLE_CONF_POLL

public static final int NF_DISABLE_CONF_POLL
See Also:
Constant Field Values

NF_DISABLE_ROUTE_POLL

public static final int NF_DISABLE_ROUTE_POLL
See Also:
Constant Field Values

NF_DISABLE_DATA_COLLECT

public static final int NF_DISABLE_DATA_COLLECT
See Also:
Constant Field Values

NDF_UNREACHABLE

public static final int NDF_UNREACHABLE
See Also:
Constant Field Values

NDF_AGENT_UNREACHABLE

public static final int NDF_AGENT_UNREACHABLE
See Also:
Constant Field Values

NDF_SNMP_UNREACHABLE

public static final int NDF_SNMP_UNREACHABLE
See Also:
Constant Field Values

NDF_CPSNMP_UNREACHABLE

public static final int NDF_CPSNMP_UNREACHABLE
See Also:
Constant Field Values

NDF_POLLING_DISABLED

public static final int NDF_POLLING_DISABLED
See Also:
Constant Field Values

IFXTABLE_DEFAULT

public static final int IFXTABLE_DEFAULT
See Also:
Constant Field Values

IFXTABLE_ENABLED

public static final int IFXTABLE_ENABLED
See Also:
Constant Field Values

IFXTABLE_DISABLED

public static final int IFXTABLE_DISABLED
See Also:
Constant Field Values

primaryName

protected java.lang.String primaryName

flags

protected int flags

runtimeFlags

protected int runtimeFlags

nodeType

protected int nodeType

requredPollCount

protected int requredPollCount

pollerNodeId

protected long pollerNodeId

proxyNodeId

protected long proxyNodeId

snmpProxyId

protected long snmpProxyId

agentPort

protected int agentPort

agentAuthMethod

protected int agentAuthMethod

agentSharedSecret

protected java.lang.String agentSharedSecret

agentVersion

protected java.lang.String agentVersion

platformName

protected java.lang.String platformName

snmpAuthName

protected java.lang.String snmpAuthName

snmpAuthPassword

protected java.lang.String snmpAuthPassword

snmpPrivPassword

protected java.lang.String snmpPrivPassword

snmpAuthMethod

protected int snmpAuthMethod

snmpPrivMethod

protected int snmpPrivMethod

snmpOID

protected java.lang.String snmpOID

snmpVersion

protected int snmpVersion

snmpPort

protected int snmpPort

snmpSysName

protected java.lang.String snmpSysName

systemDescription

protected java.lang.String systemDescription

lldpNodeId

protected java.lang.String lldpNodeId

vrrpVersion

protected int vrrpVersion

driverName

protected java.lang.String driverName

driverVersion

protected java.lang.String driverVersion

zoneId

protected long zoneId

bridgeBaseAddress

protected MacAddress bridgeBaseAddress

ifXTablePolicy

protected int ifXTablePolicy
Constructor Detail

AbstractNode

public AbstractNode(long id,
                    NXCSession session)
Create new node object.

Parameters:
id -
session -

AbstractNode

public AbstractNode(NXCPMessage msg,
                    NXCSession session)
Create node object from NXCP message.

Parameters:
msg -
session -
Method Detail

getFlags

public int getFlags()
Returns:
Flags

getRuntimeFlags

public int getRuntimeFlags()
Returns:
Runtime flags

getNodeType

public int getNodeType()
Returns:
the nodeType

getRequredPollCount

public int getRequredPollCount()
Returns:
the requredPollCount

getPollerNodeId

public long getPollerNodeId()
Returns:
the pollerNodeId

getProxyNodeId

public long getProxyNodeId()
Returns:
the proxyNodeId

getSnmpProxyId

public long getSnmpProxyId()
Returns:
the snmpProxyId

getAgentPort

public int getAgentPort()
Returns:
the agentPort

getAgentAuthMethod

public int getAgentAuthMethod()
Returns:
the agentAuthMethod

getAgentSharedSecret

public java.lang.String getAgentSharedSecret()
Returns:
the agentSharedSecret

getAgentVersion

public java.lang.String getAgentVersion()
Returns:
the agentVersion

getPlatformName

public java.lang.String getPlatformName()
Returns:
the platformName

getSnmpAuthName

public java.lang.String getSnmpAuthName()
Get SNMP authentication name - community string for version 1 and 2c, or user name for version 3.

Returns:
SNMP authentication name

getSnmpOID

public java.lang.String getSnmpOID()
Returns:
the snmpOID

getSnmpVersion

public int getSnmpVersion()
Returns:
the snmpVersion

getSystemDescription

public java.lang.String getSystemDescription()
Returns:
the systemDescription

getSnmpAuthPassword

public java.lang.String getSnmpAuthPassword()
Get SNMP authentication password.

Returns:
SNMP authentication password

getSnmpPrivPassword

public java.lang.String getSnmpPrivPassword()
Get SNMP privacy password.

Returns:
SNMP privacy password

getSnmpAuthMethod

public int getSnmpAuthMethod()
Get SNMP authentication method

Returns:
SNMP authentication method

getSnmpPrivMethod

public int getSnmpPrivMethod()
Get SNMP privacy (encryption) method

Returns:
SNMP privacy method

hasAgent

public boolean hasAgent()
Returns:
true if node has NetXMS agent

hasSnmpAgent

public boolean hasSnmpAgent()
Returns:
true if node has SNMP agent

isManagementServer

public boolean isManagementServer()
Returns:
true if node is a management server

isVrrpSupported

public boolean isVrrpSupported()
Returns:
true if node is VRRP capable

is8021xSupported

public boolean is8021xSupported()
Returns:
true if node supports 802.1x

isSpanningTreeSupported

public boolean isSpanningTreeSupported()
Returns:
true if node supports spanning tree MIB

isEntityMibSupported

public boolean isEntityMibSupported()
Returns:
true if node supports ENTITY-MIB

isIfXTableSupported

public boolean isIfXTableSupported()
Returns:
true if node supports ifXTable

isAgentIfXCountersSupported

public boolean isAgentIfXCountersSupported()
Returns:
true if agent on node supports 64-bit interface counters

isWirelessController

public boolean isWirelessController()
Returns:
true if node is a wireless network controller

getSnmpPort

public int getSnmpPort()
Returns:
the snmpPort

getSnmpSysName

public java.lang.String getSnmpSysName()
Returns:
the snmpSysName

getLldpNodeId

public java.lang.String getLldpNodeId()
Returns:
the lldpNodeId

getVrrpVersion

protected int getVrrpVersion()
Returns:
the vrrpVersion

getDriverName

public java.lang.String getDriverName()
Returns:
the driverName

getDriverVersion

public java.lang.String getDriverVersion()
Returns:
the driverVersion

getZoneId

public long getZoneId()
Returns:
the zoneId

getBridgeBaseAddress

public MacAddress getBridgeBaseAddress()
Returns:
the bridgeBaseAddress

getIfXTablePolicy

public int getIfXTablePolicy()
Returns:
the ifXTablePolicy

getPrimaryName

public java.lang.String getPrimaryName()
Returns:
the primaryName

getPrimaryMAC

public MacAddress getPrimaryMAC()
Get MAC address of interface with node's primary IP

Returns:


Copyright © 2013. All Rights Reserved.