org.netxms.client.objects
Class Interface

java.lang.Object
  extended by org.netxms.client.objects.GenericObject
      extended by org.netxms.client.objects.Interface

public class Interface
extends GenericObject

Network interface object


Field Summary
static int IF_PHYSICAL_PORT
           
static int IF_SYNTHETIC_MASK
           
 
Fields inherited from class org.netxms.client.objects.GenericObject
childs, customAttributes, OBJECT_AGENTPOLICY, OBJECT_AGENTPOLICY_CONFIG, OBJECT_BUSINESSSERVICE, OBJECT_BUSINESSSERVICEROOT, OBJECT_CLUSTER, OBJECT_CONDITION, OBJECT_CONTAINER, OBJECT_DASHBOARD, OBJECT_DASHBOARDROOT, OBJECT_GENERIC, OBJECT_INTERFACE, OBJECT_NETWORK, OBJECT_NETWORKMAP, OBJECT_NETWORKMAPGROUP, OBJECT_NETWORKMAPROOT, OBJECT_NETWORKSERVICE, OBJECT_NODE, OBJECT_NODELINK, OBJECT_POLICYGROUP, OBJECT_POLICYROOT, OBJECT_REPORT, OBJECT_REPORTGROUP, OBJECT_REPORTROOT, OBJECT_SERVICEROOT, OBJECT_SLMCHECK, OBJECT_SUBNET, OBJECT_TEMPLATE, OBJECT_TEMPLATEGROUP, OBJECT_TEMPLATEROOT, OBJECT_VPNCONNECTOR, OBJECT_ZONE, parents, session, STATUS_CRITICAL, STATUS_DISABLED, STATUS_MAJOR, STATUS_MINOR, STATUS_NORMAL, STATUS_TESTING, STATUS_UNKNOWN, STATUS_UNMANAGED, STATUS_WARNING
 
Constructor Summary
Interface(NXCPMessage msg, NXCSession session)
           
 
Method Summary
 java.lang.String getDescription()
           
 int getFlags()
           
 int getIfIndex()
           
 int getIfType()
           
 MacAddress getMacAddress()
           
 java.lang.String getObjectClassName()
           
 Node getParentNode()
          Get parent node object.
 long getPeerInterfaceId()
           
 long getPeerNodeId()
           
 int getPort()
           
 int getRequiredPollCount()
           
 int getSlot()
           
 java.net.InetAddress getSubnetMask()
           
 long getZoneId()
           
 
Methods inherited from class org.netxms.client.objects.GenericObject
getAccessList, getAllChilds, getChildIdList, getChilds, getChildsAsArray, getComments, getCustomAttributes, getGeolocation, getGuid, getImage, getNumberOfChilds, getNumberOfParents, getObjectClass, getObjectId, getObjectName, getParentIdList, getParents, getParentsAsArray, getPrimaryIP, getStatus, getSubmapId, getTrustedNodes, hashCode, isChildOf, isChildOf, isDefaultImage, isDeleted, isDirectChildOf, isInheritAccessRights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IF_SYNTHETIC_MASK

public static final int IF_SYNTHETIC_MASK
See Also:
Constant Field Values

IF_PHYSICAL_PORT

public static final int IF_PHYSICAL_PORT
See Also:
Constant Field Values
Constructor Detail

Interface

public Interface(NXCPMessage msg,
                 NXCSession session)
Parameters:
msg -
Method Detail

getParentNode

public Node getParentNode()
Get parent node object.

Returns:
parent node object or null if it is not exist or inaccessible

getSubnetMask

public java.net.InetAddress getSubnetMask()
Returns:
Interface subnet mask

getIfIndex

public int getIfIndex()
Returns:
Interface index

getIfType

public int getIfType()
Returns:
Interface type

getMacAddress

public MacAddress getMacAddress()
Returns:
Interface MAC address

getRequiredPollCount

public int getRequiredPollCount()
Returns:
Number of polls required to change interface status

getObjectClassName

public java.lang.String getObjectClassName()
Overrides:
getObjectClassName in class GenericObject
Returns:
Name of NetXMS object's class

getSlot

public int getSlot()
Returns:
the slot

getPort

public int getPort()
Returns:
the port

getPeerNodeId

public long getPeerNodeId()
Returns:
the peerNodeId

getPeerInterfaceId

public long getPeerInterfaceId()
Returns:
the peerInterfaceId

getZoneId

public long getZoneId()
Returns:
the zoneId

getDescription

public java.lang.String getDescription()
Returns:
the description

getFlags

public int getFlags()
Returns:
the flags


Copyright © 2011. All Rights Reserved.