Class Port

java.lang.Object
org.netxms.client.topology.Port

public class Port extends Object
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 id
      ifIndex - interface index
      chassis - chassis
      module - module
      pic - physical interface card
      port - port
      lane - lane number on split (breakout) port or -1 if port is not split
      locationValid - true if physical location is known
    • Port

      public Port(Interface iface)
      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

      public boolean isSameLocation(Port p)
      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

      public String toString()
      Overrides:
      toString in class Object
      See Also: