Package org.netxms.client.topology
Class OSPFNeighbor
java.lang.Object
org.netxms.client.topology.OSPFNeighbor
OSPF neighbor information
-
Constructor Summary
ConstructorsConstructorDescriptionOSPFNeighbor(NXCPMessage msg, long baseId) Create neighbor object from NXCP message. -
Method Summary
Modifier and TypeMethodDescriptionGet transit area ID for virtual neighbor.longGet ID of local interface object where this neighbor is connected.intGet interface index of local interface where this neighbor is connected.Get IP address of this OSPF neighbor.longGet node ID of this OSPF neighbor.Get OSPF router ID.getState()Get neighbor state.booleanCheck if this neighbor is a virtual one.
-
Constructor Details
-
OSPFNeighbor
Create neighbor object from NXCP message.- Parameters:
msg- NXCP messagebaseId- base field ID
-
-
Method Details
-
getRouterId
Get OSPF router ID.- Returns:
- OSPF router ID
-
getIpAddress
Get IP address of this OSPF neighbor.- Returns:
- IP address of this OSPF neighbor
-
getNodeId
public long getNodeId()Get node ID of this OSPF neighbor. Will return 0 if node is not known.- Returns:
- node ID of this OSPF neighbor or 0
-
isVirtual
public boolean isVirtual()Check if this neighbor is a virtual one.- Returns:
- true if this neighbor is virtual
-
getInterfaceIndex
public int getInterfaceIndex()Get interface index of local interface where this neighbor is connected. Will return 0 for virtual neighbors.- Returns:
- interface index of local interface where this neighbor is connected or 0
-
getInterfaceId
public long getInterfaceId()Get ID of local interface object where this neighbor is connected. Will return 0 for virtual neighbors.- Returns:
- ID of local interface object where this neighbor is connected or 0
-
getAreaId
Get transit area ID for virtual neighbor. Will return null for non-virtual neighbors.- Returns:
- area ID for virtual neighbor
-
getState
Get neighbor state.- Returns:
- neighbor state
-