Package org.netxms.client.topology
Class Port
java.lang.Object
org.netxms.client.topology.Port
Objects of this class represents physical switch ports
-
Constructor Details
-
Port
public Port(long objectId, long ifIndex, int chassis, int module, int pic, int port, int lane, boolean locationValid) Create port reference.- Parameters:
objectId- object idifIndex- interface indexchassis- chassismodule- modulepic- physical interface cardport- portlane- lane number on split (breakout) port or -1 if port is not splitlocationValid- true if physical location is known
-
Port
Create port reference from interface object.- Parameters:
iface- interface object
-
-
Method Details
-
getChassis
public int getChassis()- Returns:
- the chassis
-
getModule
public int getModule()- Returns:
- module number
-
getPIC
public int getPIC()- Returns:
- the pic
-
getPort
public int getPort()- Returns:
- the port
-
getLane
public int getLane()- Returns:
- lane number on split (breakout) port or -1 if port is not split
-
isLocationValid
public boolean isLocationValid()- Returns:
- true if physical location is known
-
isSameLocation
Check if this port has same physical location as given port.- Parameters:
p- other port- Returns:
- true if both ports have valid and identical physical location
-
getObjectId
public long getObjectId()- Returns:
- the objectId
-
getIfIndex
public long getIfIndex()- Returns:
- the ifIndex
-
toString
-