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 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 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.AbstractObjectaccessList, 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_DASHBOARDTEMPLATE, 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 SummaryConstructors
- 
Method SummaryModifier 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.AbstractObjectaddString, 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_MASKpublic static final int IF_SYNTHETIC_MASK- See Also:
 
- 
IF_PHYSICAL_PORTpublic static final int IF_PHYSICAL_PORT- See Also:
 
- 
IF_EXCLUDE_FROM_TOPOLOGYpublic static final int IF_EXCLUDE_FROM_TOPOLOGY- See Also:
 
- 
IF_LOOPBACKpublic static final int IF_LOOPBACK- See Also:
 
- 
IF_CREATED_MANUALLYpublic static final int IF_CREATED_MANUALLY- See Also:
 
- 
IF_PEER_REFLECTIONpublic static final int IF_PEER_REFLECTION- See Also:
 
- 
IF_INCLUDE_IN_ICMP_POLLpublic static final int IF_INCLUDE_IN_ICMP_POLL- See Also:
 
- 
IF_DISABLE_SNMP_STATUS_POLLpublic static final int IF_DISABLE_SNMP_STATUS_POLL- See Also:
 
- 
IF_DISABLE_ICMP_STATUS_POLLpublic static final int IF_DISABLE_ICMP_STATUS_POLL- See Also:
 
- 
IF_DISABLE_AGENT_STATUS_POLLpublic static final int IF_DISABLE_AGENT_STATUS_POLL- See Also:
 
- 
IF_OSPF_INTERFACEpublic static final int IF_OSPF_INTERFACE- See Also:
 
- 
IF_EXPECTED_STATE_MASKpublic static final int IF_EXPECTED_STATE_MASK- See Also:
 
- 
ADMIN_STATE_UNKNOWNpublic static final int ADMIN_STATE_UNKNOWN- See Also:
 
- 
ADMIN_STATE_UPpublic static final int ADMIN_STATE_UP- See Also:
 
- 
ADMIN_STATE_DOWNpublic static final int ADMIN_STATE_DOWN- See Also:
 
- 
ADMIN_STATE_TESTINGpublic static final int ADMIN_STATE_TESTING- See Also:
 
- 
OPER_STATE_UNKNOWNpublic static final int OPER_STATE_UNKNOWN- See Also:
 
- 
OPER_STATE_UPpublic static final int OPER_STATE_UP- See Also:
 
- 
OPER_STATE_DOWNpublic static final int OPER_STATE_DOWN- See Also:
 
- 
OPER_STATE_TESTINGpublic static final int OPER_STATE_TESTING- See Also:
 
- 
OPER_STATE_DORMANTpublic static final int OPER_STATE_DORMANT- See Also:
 
- 
OPER_STATE_NOT_PRESENTpublic static final int OPER_STATE_NOT_PRESENT- See Also:
 
- 
EXPECTED_STATE_UPpublic static final int EXPECTED_STATE_UP- See Also:
 
- 
EXPECTED_STATE_DOWNpublic static final int EXPECTED_STATE_DOWN- See Also:
 
- 
EXPECTED_STATE_IGNOREpublic static final int EXPECTED_STATE_IGNORE- See Also:
 
- 
PAE_STATE_UNKNOWNpublic static final int PAE_STATE_UNKNOWN- See Also:
 
- 
PAE_STATE_INITIALIZEpublic static final int PAE_STATE_INITIALIZE- See Also:
 
- 
PAE_STATE_DISCONNECTEDpublic static final int PAE_STATE_DISCONNECTED- See Also:
 
- 
PAE_STATE_CONNECTINGpublic static final int PAE_STATE_CONNECTING- See Also:
 
- 
PAE_STATE_AUTHENTICATINGpublic static final int PAE_STATE_AUTHENTICATING- See Also:
 
- 
PAE_STATE_AUTHENTICATEDpublic static final int PAE_STATE_AUTHENTICATED- See Also:
 
- 
PAE_STATE_ABORTINGpublic static final int PAE_STATE_ABORTING- See Also:
 
- 
PAE_STATE_HELDpublic static final int PAE_STATE_HELD- See Also:
 
- 
PAE_STATE_FORCE_AUTHpublic static final int PAE_STATE_FORCE_AUTH- See Also:
 
- 
PAE_STATE_FORCE_UNAUTHpublic static final int PAE_STATE_FORCE_UNAUTH- See Also:
 
- 
PAE_STATE_RESTARTpublic static final int PAE_STATE_RESTART- See Also:
 
- 
BACKEND_STATE_UNKNOWNpublic static final int BACKEND_STATE_UNKNOWN- See Also:
 
- 
BACKEND_STATE_REQUESTpublic static final int BACKEND_STATE_REQUEST- See Also:
 
- 
BACKEND_STATE_RESPONSEpublic static final int BACKEND_STATE_RESPONSE- See Also:
 
- 
BACKEND_STATE_SUCCESSpublic static final int BACKEND_STATE_SUCCESS- See Also:
 
- 
BACKEND_STATE_FAILpublic static final int BACKEND_STATE_FAIL- See Also:
 
- 
BACKEND_STATE_TIMEOUTpublic static final int BACKEND_STATE_TIMEOUT- See Also:
 
- 
BACKEND_STATE_IDLEpublic static final int BACKEND_STATE_IDLE- See Also:
 
- 
BACKEND_STATE_INITIALIZEpublic static final int BACKEND_STATE_INITIALIZE- See Also:
 
- 
BACKEND_STATE_IGNOREpublic static final int BACKEND_STATE_IGNORE- See Also:
 
- 
ifAlias
 
- 
- 
Constructor Details- 
InterfaceCreate from NXCP message.- Parameters:
- msg- NXCP message
- session- owning client session
 
 
- 
- 
Method Details- 
getParentNodeDescription copied from interface:NodeComponentGet parent node object.- Specified by:
- getParentNodein interface- NodeComponent
- Returns:
- parent node object or null if it is not exist or inaccessible
- See Also:
 
- 
getIfIndexpublic int getIfIndex()- Returns:
- Interface index
 
- 
getIfTypepublic int getIfType()- Returns:
- Interface type
 
- 
getIfTypeNameGet symbolic name for interface type- Returns:
- symbolic name for interface type
 
- 
getMacAddressGet interface MAC address- Returns:
- Interface MAC address
 
- 
getRequiredPollCountpublic int getRequiredPollCount()- Returns:
- Number of polls required to change interface status
 
- 
getNameWithAliasDescription copied from class:AbstractObjectGet name concatenated with alias in brackets if alias is not empty or just name otherwise.- Overrides:
- getNameWithAliasin class- AbstractObject
- Returns:
- name concatenated with alias in brackets if alias is not empty or just name otherwise
- See Also:
 
- 
getObjectClassNameDescription copied from class:AbstractObjectGet name of NetXMS object's class.- Overrides:
- getObjectClassNamein class- AbstractObject
- Returns:
- Name of NetXMS object's class
- See Also:
 
- 
isAllowedOnMappublic 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 class- AbstractObject
- Returns:
- true if object is allowed to be on custom network map
- See Also:
 
- 
getChassispublic int getChassis()- Returns:
- the chassis
 
- 
getPICpublic int getPIC()- Returns:
- the pic
 
- 
getModulepublic int getModule()- Returns:
- the slot
 
- 
getPortpublic int getPort()- Returns:
- the port
 
- 
getPhysicalLocationGet 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
 
- 
getPeerNodeIdpublic long getPeerNodeId()- Returns:
- the peerNodeId
 
- 
getPeerInterfaceIdpublic long getPeerInterfaceId()- Returns:
- the peerInterfaceId
 
- 
getPeerLastUpdateTime- Returns:
- the peerLastUpdateTime
 
- 
getZoneIdpublic int getZoneId()Description copied from interface:ZoneMemberGet ID of the zone this object belongs to- Specified by:
- getZoneIdin interface- ZoneMember
- Returns:
- zone ID
- See Also:
 
- 
getZoneNameDescription copied from interface:ZoneMemberGet name of the zone this object belongs to- Specified by:
- getZoneNamein interface- ZoneMember
- Returns:
- zone name
- See Also:
 
- 
getDescription- Returns:
- the description
 
- 
getIfAlias- Returns:
- interface's SNMP alias
 
- 
getFlagspublic int getFlags()- Returns:
- the flags
 
- 
getDot1xPaeStatepublic int getDot1xPaeState()Get 802.1x PAE state- Returns:
- 802.1x PAE state
 
- 
getDot1xPaeStateAsTextGet 802.1x PAE state as text- Returns:
- 802.1x PAE state as text
 
- 
getDot1xBackendStatepublic int getDot1xBackendState()Get 802.1x backend state- Returns:
- 802.1x backend state
 
- 
getDot1xBackendStateAsTextGet 802.1x backend state as text- Returns:
- 802.1x backend state as text
 
- 
getAdminStatepublic int getAdminState()Get administrative state- Returns:
- administrative state
 
- 
getAdminStateAsTextGet administrative state as text- Returns:
- administrative state as text
 
- 
getOperStatepublic int getOperState()Get operational state- Returns:
- operational state
 
- 
getOperStateAsTextGet operational state as text- Returns:
- operational state as text
 
- 
getStpPortStateGet Spanning Tree port state for this interface.- Returns:
- Spanning Tree port state for this interface
 
- 
getExpectedStatepublic int getExpectedState()Get interface expected state- Returns:
- interface expected state
 
- 
isPhysicalPortpublic boolean isPhysicalPort()Check if this interface is a physical port- Returns:
- true if this interface is a physical port
 
- 
isLoopbackpublic boolean isLoopback()Check if this interface is a loopback- Returns:
- true if this interface is a loopback
 
- 
isOSPFpublic boolean isOSPF()Check if OSPF is running on this interface- Returns:
- true if OSPF is running on this interface
 
- 
isExcludedFromTopologypublic boolean isExcludedFromTopology()Check if this interface is excluded from network topology calculation- Returns:
- true if this interface is excluded from network topology calculation
 
- 
isIncludedInIcmpPollpublic 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
 
- 
isIcmpStatusPollDisabledpublic 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
 
- 
isSnmpStatusPollDisabledpublic 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
 
- 
isAgentStatusPollDisabledpublic 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
 
- 
getPeerDiscoveryProtocolGet peer discovery protocol- Returns:
- peer discovery protocol
 
- 
getMtupublic int getMtu()- Returns:
- the mtu
 
- 
getSpeedpublic long getSpeed()- Returns:
- the speed
 
- 
getInboundUtilizationpublic int getInboundUtilization()Get calculated inbound utilization if available.- Returns:
- inbound utilization in permille or -1 if not available
 
- 
getOutboundUtilizationpublic 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
 
- 
hasAddressCheck if given address present on interface- Parameters:
- addr- IP address
- Returns:
- true if given address present on interface
 
- 
hasAddressCheck if given address present on interface- Parameters:
- addr- IP address
- Returns:
- true if given address present on interface
 
- 
getFirstUnicastAddressGet first unicast address- Returns:
- first unicast address
 
- 
getFirstUnicastAddressExGet first unicast address- Returns:
- first unicast address
 
- 
getIpAddressListAsStringGet IP address list as string- Returns:
- IP address list as string
 
- 
getIfTypeNameGet symbolic name for interface type- Parameters:
- ifType- interface type
- Returns:
- symbolic name for interface type
 
- 
getParentInterfaceIdpublic long getParentInterfaceId()Get object ID of parent interface- Returns:
- parent interface object ID or 0
 
- 
getParentInterfaceGet parent interface object- Returns:
- parent interface object or null
 
- 
getVlanspublic long[] getVlans()- Returns:
- the vlans
 
- 
getOSPFArea- Returns:
- the ospfArea
 
- 
getOSPFState- Returns:
- the ospfState
 
- 
getOSPFType- Returns:
- the ospfType
 
- 
getStringsDescription copied from class:AbstractObjectGet all strings in object- Overrides:
- getStringsin class- AbstractObject
- Returns:
- set of all strings in object
- See Also:
 
 
-