Class ConnectionPoint


  • public class ConnectionPoint
    extends Object
    Connection point information
    • Constructor Detail

      • ConnectionPoint

        public ConnectionPoint​(org.netxms.base.NXCPMessage msg)
        Create connection point information from NXCP message
        Parameters:
        msg - NXCP message
      • ConnectionPoint

        public ConnectionPoint​(long localNodeId,
                               long localInterfaceId,
                               boolean hasConnection)
        Create unconnected connection point information
        Parameters:
        localNodeId - Local node id
        localInterfaceId - Local interface id
        hasConnection - Boolean value that defines if there is connection
    • Method Detail

      • getNodeId

        public long getNodeId()
        Returns:
        the nodeId
      • setNodeId

        public void setNodeId​(long nodeId)
        Set node ID
        Parameters:
        nodeId - node id
      • getInterfaceId

        public long getInterfaceId()
        Returns:
        the interfaceId
      • setInterfaceId

        public void setInterfaceId​(long interfaceId)
        Set interface ID
        Parameters:
        interfaceId - interface id
      • getInterfaceIndex

        public int getInterfaceIndex()
        Returns:
        the interfaceIndex
      • setInterfaceIndex

        public void setInterfaceIndex​(int interfaceIndex)
        Set interface insex
        Parameters:
        interfaceIndex - interface index
      • getLocalNodeId

        public long getLocalNodeId()
        Returns:
        the localNodeId
      • getLocalInterfaceId

        public long getLocalInterfaceId()
        Returns:
        the localInterfaceId
      • getLocalMacAddress

        public org.netxms.base.MacAddress getLocalMacAddress()
        Returns:
        the localMacAddress
      • getData

        public Object getData()
        Get user data.
        Returns:
        user data
      • setData

        public void setData​(Object data)
        Set user data.
        Parameters:
        data - user data
      • getLocalIpAddress

        public InetAddress getLocalIpAddress()
        Returns:
        the localIpAddress
      • hasConnection

        public boolean hasConnection()
        Returns:
        if there is connection
      • setConnection

        public void setConnection​(boolean hasConnection)
        Parameters:
        hasConnection - sets if there is connection