Package org.netxms.client.objects
Class Interface
java.lang.Object
org.netxms.client.objects.AbstractObject
org.netxms.client.objects.GenericObject
org.netxms.client.objects.Interface
- All Implemented Interfaces:
NodeComponent,ZoneMember
Network interface object
-
Field Summary
FieldsModifier 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 intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected Stringstatic 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 intstatic final intFields inherited from class org.netxms.client.objects.AbstractObject
accessList, alias, assetId, ASSETS, backupZoneProxyId, BUSINESSSERVICEROOT, CALCULATE_DEFAULT, CALCULATE_MOST_CRITICAL, CALCULATE_MULTIPLE_THRESHOLDS, CALCULATE_SINGLE_THRESHOLD, categoryId, children, comments, commentsSource, CONTEXT, creationTime, customAttributes, DASHBOARDROOT, dashboards, drillDownObjectId, fixedPropagatedStatus, flags, geolocation, guid, inheritAccessRights, inMaintenanceMode, isDeleted, maintenanceInitiatorId, mapImage, MARKDOWN_COMMENTS_INDICATOR, moduleData, nameOnMap, NETWORK, NETWORKMAPROOT, OBJECT_ACCESSPOINT, OBJECT_ASSET, OBJECT_ASSETGROUP, OBJECT_ASSETROOT, OBJECT_BUSINESSSERVICE, OBJECT_BUSINESSSERVICEPROTOTYPE, OBJECT_BUSINESSSERVICEROOT, OBJECT_CHASSIS, OBJECT_CIRCUIT, OBJECT_CLUSTER, OBJECT_COLLECTOR, OBJECT_CONDITION, OBJECT_CONTAINER, OBJECT_CUSTOM, OBJECT_DASHBOARD, OBJECT_DASHBOARDGROUP, OBJECT_DASHBOARDROOT, OBJECT_GENERIC, OBJECT_INTERFACE, OBJECT_MOBILEDEVICE, OBJECT_NETWORK, OBJECT_NETWORKMAP, OBJECT_NETWORKMAPGROUP, OBJECT_NETWORKMAPROOT, OBJECT_NETWORKSERVICE, OBJECT_NODE, OBJECT_RACK, OBJECT_SENSOR, OBJECT_SERVICEROOT, OBJECT_SUBNET, OBJECT_TEMPLATE, OBJECT_TEMPLATEGROUP, OBJECT_TEMPLATEROOT, OBJECT_VPNCONNECTOR, OBJECT_WIRELESSDOMAIN, OBJECT_ZONE, objectClass, objectId, objectName, parents, partialObject, pollStates, postalAddress, primaryZoneProxyId, PROPAGATE_DEFAULT, PROPAGATE_FIXED, PROPAGATE_RELATIVE, PROPAGATE_TRANSLATED, PROPAGATE_UNCHANGED, responsibleUsers, SERVICEROOT, session, status, statusCalculationMethod, statusPropagationMethod, statusShift, statusSingleThreshold, statusThresholds, statusTransformation, TEMPLATEROOT, trustedObjects, UNKNOWN, urls, ZONE0 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet administrative stateGet administrative state as textintintGet 802.1x backend stateGet 802.1x backend state as textintGet 802.1x PAE stateGet 802.1x PAE state as textintGet interface expected stateGet first unicast addressGet first unicast addressintgetFlags()intintGet symbolic name for interface typestatic StringgetIfTypeName(int ifType) Get symbolic name for interface typeintGet calculated inbound utilization if available.Get IP address list as stringGet interface MAC addressintintgetMtu()Get name concatenated with alias in brackets if alias is not empty or just name otherwise.Get name of NetXMS object's class.intGet operational stateGet operational state as textintGet calculated outbound utilization if available.Get parent interface objectlongGet object ID of parent interfaceGet parent node object.Get peer discovery protocollonglongGet string describing interface physical location in form chassis/module/pic/portintgetPIC()intgetPort()intlonggetSpeed()Get Spanning Tree port state for this interface.Get all strings in objectlong[]getVlans()intGet ID of the zone this object belongs toGet name of the zone this object belongs tobooleanhasAddress(InetAddress addr) Check if given address present on interfacebooleanhasAddress(InetAddressEx addr) Check if given address present on interfacebooleanCheck if using NetXMS agent for status polling is disabled for this interface.booleanIf this method returns true object is allowed to be on custom network map.booleanCheck if this interface is excluded from network topology calculationbooleanCheck if using ICMP for status polling is disabled for this interface.booleanCheck if this interface is included in ICMP poll for owning nodebooleanCheck if this interface is a loopbackbooleanisOSPF()Check if OSPF is running on this interfacebooleanCheck if this interface is a physical portbooleanCheck if using SNMP for status polling is disabled for this interface.Methods inherited from class org.netxms.client.objects.AbstractObject
addString, areChildrenSynchronized, getAccessList, getAlias, getAllChildren, getAllChildren, getAllParents, getAllParents, getAssetId, getBackupZoneProxyId, getCategory, getCategoryId, getChildCount, getChildIdList, getChildren, getChildrenAsArray, getComments, getCommentsSource, getConfiguredNameOnMap, getCreationTime, getCustomAttribute, getCustomAttributes, getCustomAttributeValue, getCustomAttributeValueAsBoolean, getDashboardIdentifiers, getDashboards, getDrillDownObjectId, getEffectiveRights, getFixedPropagatedStatus, getGeolocation, getGuid, getIcon, getMaintenanceInitiatorId, getMapImage, getModuleData, getNameOnMap, getNetworkMaps, getObjectClass, getObjectId, getObjectName, getObjectNameWithPath, getParentChain, getParentCount, getParentIdList, getParents, getParentsAsArray, getPostalAddress, getPrimaryZoneProxyId, getResponsibleUsers, getStatus, getStatusCalculationMethod, getStatusPropagationMethod, getStatusShift, getStatusSingleThreshold, getStatusThresholds, getStatusTransformation, getTrustedObjects, getUrls, hasAccessibleChildren, hasAccessibleParents, hasAccessibleViewParents, hasChildren, hasCustomAttribute, hasDashboard, hashCode, hasNetworkMap, hasParents, hasUrls, isAlarmsVisible, isChildOf, isChildOf, isDefaultImage, isDeleted, isDirectChildOf, isDirectParentOf, isInheritAccessRights, isInMaintenanceMode, isParentOf, isParentOf, isPartialObject, setSession
-
Field Details
-
IF_SYNTHETIC_MASK
public static final int IF_SYNTHETIC_MASK- See Also:
-
IF_PHYSICAL_PORT
public static final int IF_PHYSICAL_PORT- See Also:
-
IF_EXCLUDE_FROM_TOPOLOGY
public static final int IF_EXCLUDE_FROM_TOPOLOGY- See Also:
-
IF_LOOPBACK
public static final int IF_LOOPBACK- See Also:
-
IF_CREATED_MANUALLY
public static final int IF_CREATED_MANUALLY- See Also:
-
IF_PEER_REFLECTION
public static final int IF_PEER_REFLECTION- See Also:
-
IF_INCLUDE_IN_ICMP_POLL
public static final int IF_INCLUDE_IN_ICMP_POLL- See Also:
-
IF_DISABLE_SNMP_STATUS_POLL
public static final int IF_DISABLE_SNMP_STATUS_POLL- See Also:
-
IF_DISABLE_ICMP_STATUS_POLL
public static final int IF_DISABLE_ICMP_STATUS_POLL- See Also:
-
IF_DISABLE_AGENT_STATUS_POLL
public static final int IF_DISABLE_AGENT_STATUS_POLL- See Also:
-
IF_OSPF_INTERFACE
public static final int IF_OSPF_INTERFACE- See Also:
-
IF_EXPECTED_STATE_MASK
public static final int IF_EXPECTED_STATE_MASK- See Also:
-
ADMIN_STATE_UNKNOWN
public static final int ADMIN_STATE_UNKNOWN- See Also:
-
ADMIN_STATE_UP
public static final int ADMIN_STATE_UP- See Also:
-
ADMIN_STATE_DOWN
public static final int ADMIN_STATE_DOWN- See Also:
-
ADMIN_STATE_TESTING
public static final int ADMIN_STATE_TESTING- See Also:
-
OPER_STATE_UNKNOWN
public static final int OPER_STATE_UNKNOWN- See Also:
-
OPER_STATE_UP
public static final int OPER_STATE_UP- See Also:
-
OPER_STATE_DOWN
public static final int OPER_STATE_DOWN- See Also:
-
OPER_STATE_TESTING
public static final int OPER_STATE_TESTING- See Also:
-
OPER_STATE_DORMANT
public static final int OPER_STATE_DORMANT- See Also:
-
OPER_STATE_NOT_PRESENT
public static final int OPER_STATE_NOT_PRESENT- See Also:
-
EXPECTED_STATE_UP
public static final int EXPECTED_STATE_UP- See Also:
-
EXPECTED_STATE_DOWN
public static final int EXPECTED_STATE_DOWN- See Also:
-
EXPECTED_STATE_IGNORE
public static final int EXPECTED_STATE_IGNORE- See Also:
-
PAE_STATE_UNKNOWN
public static final int PAE_STATE_UNKNOWN- See Also:
-
PAE_STATE_INITIALIZE
public static final int PAE_STATE_INITIALIZE- See Also:
-
PAE_STATE_DISCONNECTED
public static final int PAE_STATE_DISCONNECTED- See Also:
-
PAE_STATE_CONNECTING
public static final int PAE_STATE_CONNECTING- See Also:
-
PAE_STATE_AUTHENTICATING
public static final int PAE_STATE_AUTHENTICATING- See Also:
-
PAE_STATE_AUTHENTICATED
public static final int PAE_STATE_AUTHENTICATED- See Also:
-
PAE_STATE_ABORTING
public static final int PAE_STATE_ABORTING- See Also:
-
PAE_STATE_HELD
public static final int PAE_STATE_HELD- See Also:
-
PAE_STATE_FORCE_AUTH
public static final int PAE_STATE_FORCE_AUTH- See Also:
-
PAE_STATE_FORCE_UNAUTH
public static final int PAE_STATE_FORCE_UNAUTH- See Also:
-
PAE_STATE_RESTART
public static final int PAE_STATE_RESTART- See Also:
-
BACKEND_STATE_UNKNOWN
public static final int BACKEND_STATE_UNKNOWN- See Also:
-
BACKEND_STATE_REQUEST
public static final int BACKEND_STATE_REQUEST- See Also:
-
BACKEND_STATE_RESPONSE
public static final int BACKEND_STATE_RESPONSE- See Also:
-
BACKEND_STATE_SUCCESS
public static final int BACKEND_STATE_SUCCESS- See Also:
-
BACKEND_STATE_FAIL
public static final int BACKEND_STATE_FAIL- See Also:
-
BACKEND_STATE_TIMEOUT
public static final int BACKEND_STATE_TIMEOUT- See Also:
-
BACKEND_STATE_IDLE
public static final int BACKEND_STATE_IDLE- See Also:
-
BACKEND_STATE_INITIALIZE
public static final int BACKEND_STATE_INITIALIZE- See Also:
-
BACKEND_STATE_IGNORE
public static final int BACKEND_STATE_IGNORE- See Also:
-
ifAlias
-
-
Constructor Details
-
Interface
Create from NXCP message.- Parameters:
msg- NXCP messagesession- owning client session
-
-
Method Details
-
getParentNode
Description copied from interface:NodeComponentGet parent node object.- Specified by:
getParentNodein interfaceNodeComponent- Returns:
- parent node object or null if it is not exist or inaccessible
- See Also:
-
getIfIndex
public int getIfIndex()- Returns:
- Interface index
-
getIfType
public int getIfType()- Returns:
- Interface type
-
getIfTypeName
Get symbolic name for interface type- Returns:
- symbolic name for interface type
-
getMacAddress
Get interface MAC address- Returns:
- Interface MAC address
-
getRequiredPollCount
public int getRequiredPollCount()- Returns:
- Number of polls required to change interface status
-
getNameWithAlias
Description copied from class:AbstractObjectGet name concatenated with alias in brackets if alias is not empty or just name otherwise.- Overrides:
getNameWithAliasin classAbstractObject- Returns:
- name concatenated with alias in brackets if alias is not empty or just name otherwise
- See Also:
-
getObjectClassName
Description copied from class:AbstractObjectGet name of NetXMS object's class.- Overrides:
getObjectClassNamein classAbstractObject- Returns:
- Name of NetXMS object's class
- See Also:
-
isAllowedOnMap
public boolean isAllowedOnMap()Description copied from class:AbstractObjectIf this method returns true object is allowed to be on custom network map. Default implementation always returns false.- Overrides:
isAllowedOnMapin classAbstractObject- Returns:
- true if object is allowed to be on custom network map
- See Also:
-
getChassis
public int getChassis()- Returns:
- the chassis
-
getPIC
public int getPIC()- Returns:
- the pic
-
getModule
public int getModule()- Returns:
- the slot
-
getPort
public int getPort()- Returns:
- the port
-
getPhysicalLocation
Get string describing interface physical location in form chassis/module/pic/port- Returns:
- string describing interface physical location in form chassis/module/pic/port or emoty string if interface is not physical port
-
getPeerNodeId
public long getPeerNodeId()- Returns:
- the peerNodeId
-
getPeerInterfaceId
public long getPeerInterfaceId()- Returns:
- the peerInterfaceId
-
getZoneId
public int getZoneId()Description copied from interface:ZoneMemberGet ID of the zone this object belongs to- Specified by:
getZoneIdin interfaceZoneMember- Returns:
- zone ID
- See Also:
-
getZoneName
Description copied from interface:ZoneMemberGet name of the zone this object belongs to- Specified by:
getZoneNamein interfaceZoneMember- Returns:
- zone name
- See Also:
-
getDescription
- Returns:
- the description
-
getIfAlias
- Returns:
- interface's SNMP alias
-
getFlags
public int getFlags()- Returns:
- the flags
-
getDot1xPaeState
public int getDot1xPaeState()Get 802.1x PAE state- Returns:
- 802.1x PAE state
-
getDot1xPaeStateAsText
Get 802.1x PAE state as text- Returns:
- 802.1x PAE state as text
-
getDot1xBackendState
public int getDot1xBackendState()Get 802.1x backend state- Returns:
- 802.1x backend state
-
getDot1xBackendStateAsText
Get 802.1x backend state as text- Returns:
- 802.1x backend state as text
-
getAdminState
public int getAdminState()Get administrative state- Returns:
- administrative state
-
getAdminStateAsText
Get administrative state as text- Returns:
- administrative state as text
-
getOperState
public int getOperState()Get operational state- Returns:
- operational state
-
getOperStateAsText
Get operational state as text- Returns:
- operational state as text
-
getStpPortState
Get Spanning Tree port state for this interface.- Returns:
- Spanning Tree port state for this interface
-
getExpectedState
public int getExpectedState()Get interface expected state- Returns:
- interface expected state
-
isPhysicalPort
public boolean isPhysicalPort()Check if this interface is a physical port- Returns:
- true if this interface is a physical port
-
isLoopback
public boolean isLoopback()Check if this interface is a loopback- Returns:
- true if this interface is a loopback
-
isOSPF
public boolean isOSPF()Check if OSPF is running on this interface- Returns:
- true if OSPF is running on this interface
-
isExcludedFromTopology
public boolean isExcludedFromTopology()Check if this interface is excluded from network topology calculation- Returns:
- true if this interface is excluded from network topology calculation
-
isIncludedInIcmpPoll
public boolean isIncludedInIcmpPoll()Check if this interface is included in ICMP poll for owning node- Returns:
- true if this interface is included in ICMP poll for owning node
-
isIcmpStatusPollDisabled
public boolean isIcmpStatusPollDisabled()Check if using ICMP for status polling is disabled for this interface.- Returns:
- true if using ICMP for status polling is disabled for this interface
-
isSnmpStatusPollDisabled
public boolean isSnmpStatusPollDisabled()Check if using SNMP for status polling is disabled for this interface.- Returns:
- true if using SNMP for status polling is disabled for this interface
-
isAgentStatusPollDisabled
public boolean isAgentStatusPollDisabled()Check if using NetXMS agent for status polling is disabled for this interface.- Returns:
- true if using NetXMS agent for status polling is disabled for this interface
-
getPeerDiscoveryProtocol
Get peer discovery protocol- Returns:
- peer discovery protocol
-
getMtu
public int getMtu()- Returns:
- the mtu
-
getSpeed
public long getSpeed()- Returns:
- the speed
-
getInboundUtilization
public int getInboundUtilization()Get calculated inbound utilization if available.- Returns:
- inbound utilization in permille or -1 if not available
-
getOutboundUtilization
public int getOutboundUtilization()Get calculated outbound utilization if available.- Returns:
- outbound utilization in permille or -1 if not available
-
getIfTableSuffix
- Returns:
- the ifTableSuffix
-
getIpAddressList
- Returns:
- the ipAddressList
-
hasAddress
Check if given address present on interface- Parameters:
addr- IP address- Returns:
- true if given address present on interface
-
hasAddress
Check if given address present on interface- Parameters:
addr- IP address- Returns:
- true if given address present on interface
-
getFirstUnicastAddress
Get first unicast address- Returns:
- first unicast address
-
getFirstUnicastAddressEx
Get first unicast address- Returns:
- first unicast address
-
getIpAddressListAsString
Get IP address list as string- Returns:
- IP address list as string
-
getIfTypeName
Get symbolic name for interface type- Parameters:
ifType- interface type- Returns:
- symbolic name for interface type
-
getParentInterfaceId
public long getParentInterfaceId()Get object ID of parent interface- Returns:
- parent interface object ID or 0
-
getParentInterface
Get parent interface object- Returns:
- parent interface object or null
-
getVlans
public long[] getVlans()- Returns:
- the vlans
-
getOSPFArea
- Returns:
- the ospfArea
-
getOSPFState
- Returns:
- the ospfState
-
getOSPFType
- Returns:
- the ospfType
-
getStrings
Description copied from class:AbstractObjectGet all strings in object- Overrides:
getStringsin classAbstractObject- Returns:
- set of all strings in object
- See Also:
-