Package org.netxms.client.topology
Class OSPFNeighbor
java.lang.Object
org.netxms.client.topology.OSPFNeighbor
OSPF neighbor information
- 
Constructor SummaryConstructorsConstructorDescriptionOSPFNeighbor(NXCPMessage msg, long baseId) Create neighbor object from NXCP message.
- 
Method SummaryModifier 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- 
OSPFNeighborCreate neighbor object from NXCP message.- Parameters:
- msg- NXCP message
- baseId- base field ID
 
 
- 
- 
Method Details- 
getRouterIdGet OSPF router ID.- Returns:
- OSPF router ID
 
- 
getIpAddressGet IP address of this OSPF neighbor.- Returns:
- IP address of this OSPF neighbor
 
- 
getNodeIdpublic 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
 
- 
isVirtualpublic boolean isVirtual()Check if this neighbor is a virtual one.- Returns:
- true if this neighbor is virtual
 
- 
getInterfaceIndexpublic 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
 
- 
getInterfaceIdpublic 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
 
- 
getAreaIdGet transit area ID for virtual neighbor. Will return null for non-virtual neighbors.- Returns:
- area ID for virtual neighbor
 
- 
getStateGet neighbor state.- Returns:
- neighbor state
 
 
-