Package org.netxms.client.topology
Class ConnectionPoint
- java.lang.Object
-
- org.netxms.client.topology.ConnectionPoint
-
public class ConnectionPoint extends Object
Connection point information
-
-
Constructor Summary
Constructors Constructor Description ConnectionPoint(long localNodeId, long localInterfaceId, boolean hasConnection)Create unconnected connection point informationConnectionPoint(org.netxms.base.NXCPMessage msg)Create connection point information from NXCP message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetData()Get user data.longgetInterfaceId()intgetInterfaceIndex()longgetLocalInterfaceId()InetAddressgetLocalIpAddress()org.netxms.base.MacAddressgetLocalMacAddress()longgetLocalNodeId()longgetNodeId()ConnectionPointTypegetType()booleanhasConnection()voidsetConnection(boolean hasConnection)voidsetData(Object data)Set user data.voidsetInterfaceId(long interfaceId)Set interface IDvoidsetInterfaceIndex(int interfaceIndex)Set interface insexvoidsetNodeId(long nodeId)Set node IDStringtoString()
-
-
-
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 idlocalInterfaceId- Local interface idhasConnection- 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
-
getType
public ConnectionPointType getType()
- Returns:
- the type
-
hasConnection
public boolean hasConnection()
- Returns:
- if there is connection
-
setConnection
public void setConnection(boolean hasConnection)
- Parameters:
hasConnection- sets if there is connection
-
-