Class PeerAddress
java.lang.Object
|
+----CollectorUpdate
|
+----PeerAddress
- public class PeerAddress
- extends CollectorUpdate
Collector class for reporting peer node information.
- Version:
- $Revision: 1.8 $, $Date: 2000/10/12 14:09:52 $
- Author:
- Mike Spengler, Joseph Thomas
-
DOWN
- Signalling to peer is down
-
netAddr
- Peer's network layer address.
-
portName
- Local port name through which the peer node is connected.
-
status
- Status of the peer node connection.
-
UP
- Signalling to peer is up
-
vpi
- VPI for the virtual path to the peer.
-
PeerAddress(NodeAddress, String, int, NodeAddress, int)
- Class constructor.
-
getNetAddr()
- Gets the peer's network address.
-
getPortName()
- Gets the port name.
-
getStatus()
- Gets the peer connection status.
-
getVPI()
- Gets the VPI to peer.
-
process(CollectorNetwork)
- Applies this update object to the network model.
-
toString()
- Returns a string describing this object.
portName
private String portName
- Local port name through which the peer node is connected.
vpi
private int vpi
- VPI for the virtual path to the peer.
netAddr
private NodeAddress netAddr
- Peer's network layer address.
status
private int status
- Status of the peer node connection.
UP
public static final int UP
- Signalling to peer is up
DOWN
public static final int DOWN
- Signalling to peer is down
PeerAddress
public PeerAddress(NodeAddress addr,
String portName,
int vpi,
NodeAddress netAddr,
int status)
- Class constructor.
- Parameters:
- addr - the address of the node from which the data
for this update was obtained
- portName - the name of the port through which the
peer node is connected
- vpi - vpi for the virtual path to peer
- netAddr - peer's network layer address
- status - the status of the peer
process
public void process(CollectorNetwork net)
- Applies this update object to the network model.
- Parameters:
- net - the network which this object updates
- Overrides:
- process in class CollectorUpdate
getPortName
public String getPortName()
- Gets the port name.
- Returns:
- the port name
getVPI
public int getVPI()
- Gets the VPI to peer.
- Returns:
- the path's vpi
getNetAddr
public NodeAddress getNetAddr()
- Gets the peer's network address.
- Returns:
- the peer's network address
getStatus
public int getStatus()
- Gets the peer connection status.
- Returns:
- the connection status
toString
public String toString()
- Returns a string describing this object.
- Returns:
- string describing this object
- Overrides:
- toString in class Object