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

Variable Index

 o DOWN
Signalling to peer is down
 o netAddr
Peer's network layer address.
 o portName
Local port name through which the peer node is connected.
 o status
Status of the peer node connection.
 o UP
Signalling to peer is up
 o vpi
VPI for the virtual path to the peer.

Constructor Index

 o PeerAddress(NodeAddress, String, int, NodeAddress, int)
Class constructor.

Method Index

 o getNetAddr()
Gets the peer's network address.
 o getPortName()
Gets the port name.
 o getStatus()
Gets the peer connection status.
 o getVPI()
Gets the VPI to peer.
 o process(CollectorNetwork)
Applies this update object to the network model.
 o toString()
Returns a string describing this object.

Variables

 o portName
 private String portName
Local port name through which the peer node is connected.

 o vpi
 private int vpi
VPI for the virtual path to the peer.

 o netAddr
 private NodeAddress netAddr
Peer's network layer address.

 o status
 private int status
Status of the peer node connection.

 o UP
 public static final int UP
Signalling to peer is up

 o DOWN
 public static final int DOWN
Signalling to peer is down

Constructors

 o 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

Methods

 o 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
 o getPortName
 public String getPortName()
Gets the port name.

Returns:
the port name
 o getVPI
 public int getVPI()
Gets the VPI to peer.

Returns:
the path's vpi
 o getNetAddr
 public NodeAddress getNetAddr()
Gets the peer's network address.

Returns:
the peer's network address
 o getStatus
 public int getStatus()
Gets the peer connection status.

Returns:
the connection status
 o toString
 public String toString()
Returns a string describing this object.

Returns:
string describing this object
Overrides:
toString in class Object