Class CollectorNode

java.lang.Object
   |
   +----VisiModel.ATMNode
           |
           +----CollectorNode

public class CollectorNode
extends ATMNode
Collector-specific representation of a network node. Members of this class are only created when the node type is UNKNOWN. Otherwise, a member of the specific node type subclass is instantiated.

Version:
$Revision: 1.14 $, $Date: 2000/10/31 20:32:02 $
Author:
Mike Spengler, Joseph Thomas

Variable Index

 o address
Canonical address of this node.
 o aliveTime
Time (in milliseconds) when the latest contact with the node occurred.
 o cycleTime
Time (in milliseconds) when the latest collector cycle started.
 o ports
Hold port info for any deleted physical paths so that it can be restored after an UpdateDescriptor.
 o reported
True if a NodeUpdate has been generated for this node
 o termVPs
List of VPs (PathOrigins) terminating at this node.
 o updaters
Number of update cycles currently active for this node.

Constructor Index

 o CollectorNode(CollectorNetwork, NodeAddress, boolean)
Class constructor.
 o CollectorNode(CollectorNetwork, NodeAddress, String, boolean)
Class constructor.
 o CollectorNode(CollectorNetwork, NodeAddress, String, boolean, String)
Class constructor.

Method Index

 o addTermVP(PathOrigin)
Adds a virtual path terminating at this node.
 o connectPorts(ATMSwitch, SwitchPort)
Connects this node to a remote switch port.
 o delete()
Deletes this node from its network.
 o deleteTermVP(PathOrigin)
Deletes a virtual path terminating at this node.
 o disconnectPorts(ATMPort)
Disconnects a port on this node from its remote peer port.
 o dumpState(FIFO)
Dumps the current state of this node.
 o dumpStateComponent(FIFO)
Dumps the current state of this node's components.
 o endCycle(NodeEnd)
Ends a collector update cycle.
 o getAddress()
Gets the canonical node address.
 o getCycleStart()
Gets the node's current cycle start time.
 o inCycle(long)
Updates/verifies update cycle state and data.
 o merge(ATMNode)
Merges this node with another specified node.
 o queueMU(ModelUpdate)
Queues ModelUpdates to the storage manager.
 o startCycle(NodeBegin)
Starts a collector update cycle.
 o updateDescription(NodeDescription)
Updates the node's type and description.
 o updatePeer(PeerAddress)
Updates peer node information.
 o updatePort(NodePort)
Updates the node's port list.
 o updateVCCSegMap(VCCSegMap)
Updates switch VCC segment map.

Variables

 o address
 private NodeAddress address
Canonical address of this node.

 o termVPs
 private VectorIter termVPs
List of VPs (PathOrigins) terminating at this node.

 o cycleTime
 private long cycleTime
Time (in milliseconds) when the latest collector cycle started.

 o aliveTime
 private long aliveTime
Time (in milliseconds) when the latest contact with the node occurred.

 o updaters
 private int updaters
Number of update cycles currently active for this node. More than one indicates that the collector is querying this node using aliases.

 o reported
 private boolean reported
True if a NodeUpdate has been generated for this node

 o ports
 private Vector ports
Hold port info for any deleted physical paths so that it can be restored after an UpdateDescriptor.

Constructors

 o CollectorNode
 public CollectorNode(CollectorNetwork net,
                      NodeAddress addr,
                      String desc,
                      boolean report,
                      String name)
Class constructor.

Parameters:
net - the network the node is part of
addr - the network address of this node
desc - the node's description
report - true if a NodeUpdate
name - the node's name should be generated immediately
 o CollectorNode
 public CollectorNode(CollectorNetwork net,
                      NodeAddress addr,
                      String desc,
                      boolean report)
Class constructor.

Parameters:
net - the network the node is part of
addr - the network address of this node
desc - the node's description
report - true if a NodeUpdate should be generated immediately
 o CollectorNode
 public CollectorNode(CollectorNetwork net,
                      NodeAddress addr,
                      boolean report)
Class constructor.

Parameters:
net - the network the node is part of
addr - the network address of this node
report - true if a NodeUpdate should be generated immediately

Methods

 o startCycle
 protected void startCycle(NodeBegin nb)
Starts a collector update cycle.

Parameters:
nb - NodeBegin update record
 o endCycle
 protected void endCycle(NodeEnd ne)
Ends a collector update cycle.

Parameters:
ne - NodeEnd update record
 o inCycle
 protected void inCycle(long time)
Updates/verifies update cycle state and data.

Parameters:
time - the time the update was created
 o updateDescription
 public void updateDescription(NodeDescription nd)
Updates the node's type and description. Nodes of the specific type (switch or ES) will be created if the node currently has unknown type.

Parameters:
nd - NodeDescription update record
 o updatePort
 public void updatePort(NodePort np)
Updates the node's port list.

Parameters:
np - NodePort update record
 o updatePeer
 public void updatePeer(PeerAddress pa)
Updates peer node information.

Parameters:
pa - PeerAddress update record
 o updateVCCSegMap
 public void updateVCCSegMap(VCCSegMap sm)
Updates switch VCC segment map.

Parameters:
sm - VCCSegMap update record
 o connectPorts
 public void connectPorts(ATMSwitch sw,
                          SwitchPort swport)
Connects this node to a remote switch port.

Parameters:
sw - the switch to which this node is connected
swport - the switch port to which this node is connected
 o disconnectPorts
 public void disconnectPorts(ATMPort port)
Disconnects a port on this node from its remote peer port.

Parameters:
port - the local node port to disconnect
 o addTermVP
 public void addTermVP(PathOrigin path)
Adds a virtual path terminating at this node.

Parameters:
path - the path which terminates at this node
 o deleteTermVP
 public void deleteTermVP(PathOrigin path)
Deletes a virtual path terminating at this node.

Parameters:
path - the path which terminates at this node
 o merge
 public void merge(ATMNode node)
Merges this node with another specified node.

Parameters:
node - the node to be merged with this one
Overrides:
merge in class ATMNode
 o delete
 public synchronized void delete()
Deletes this node from its network.

Overrides:
delete in class ATMNode
 o queueMU
 protected void queueMU(ModelUpdate mu)
Queues ModelUpdates to the storage manager.

Parameters:
mu - the ModelUpdate to queue
 o dumpState
 public void dumpState(FIFO f)
Dumps the current state of this node.

Parameters:
f - where to queue the ModelUpdate objects representing the model's current state
 o dumpStateComponent
 public void dumpStateComponent(FIFO f)
Dumps the current state of this node's components.

Parameters:
f - where to queue the ModelUpdate objects representing the model's current state
 o getAddress
 public NodeAddress getAddress()
Gets the canonical node address.

Returns:
the canonical node address
 o getCycleStart
 public long getCycleStart()
Gets the node's current cycle start time.

Returns:
the current cycle start time