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
-
address
- Canonical address of this node.
-
aliveTime
- Time (in milliseconds) when the latest contact with the node occurred.
-
cycleTime
- Time (in milliseconds) when the latest collector cycle started.
-
ports
- Hold port info for any deleted physical paths so that it can be
restored after an UpdateDescriptor.
-
reported
-
True if a NodeUpdate has been generated
for this node
-
termVPs
- List of VPs (
PathOrigins) terminating at this node.
-
updaters
- Number of update cycles currently active for this node.
-
CollectorNode(CollectorNetwork, NodeAddress, boolean)
- Class constructor.
-
CollectorNode(CollectorNetwork, NodeAddress, String, boolean)
- Class constructor.
-
CollectorNode(CollectorNetwork, NodeAddress, String, boolean, String)
- Class constructor.
-
addTermVP(PathOrigin)
- Adds a virtual path terminating at this node.
-
connectPorts(ATMSwitch, SwitchPort)
- Connects this node to a remote switch port.
-
delete()
- Deletes this node from its network.
-
deleteTermVP(PathOrigin)
- Deletes a virtual path terminating at this node.
-
disconnectPorts(ATMPort)
- Disconnects a port on this node from its remote peer port.
-
dumpState(FIFO)
- Dumps the current state of this node.
-
dumpStateComponent(FIFO)
- Dumps the current state of this node's components.
-
endCycle(NodeEnd)
- Ends a collector update cycle.
-
getAddress()
- Gets the canonical node address.
-
getCycleStart()
- Gets the node's current cycle start time.
-
inCycle(long)
- Updates/verifies update cycle state and data.
-
merge(ATMNode)
- Merges this node with another specified node.
-
queueMU(ModelUpdate)
- Queues
ModelUpdates to the storage manager.
-
startCycle(NodeBegin)
- Starts a collector update cycle.
-
updateDescription(NodeDescription)
- Updates the node's type and description.
-
updatePeer(PeerAddress)
- Updates peer node information.
-
updatePort(NodePort)
- Updates the node's port list.
-
updateVCCSegMap(VCCSegMap)
- Updates switch VCC segment map.
address
private NodeAddress address
- Canonical address of this node.
termVPs
private VectorIter termVPs
- List of VPs (
PathOrigins) terminating at this node.
cycleTime
private long cycleTime
- Time (in milliseconds) when the latest collector cycle started.
aliveTime
private long aliveTime
- Time (in milliseconds) when the latest contact with the node occurred.
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.
reported
private boolean reported
-
True if a NodeUpdate has been generated
for this node
ports
private Vector ports
- Hold port info for any deleted physical paths so that it can be
restored after an UpdateDescriptor.
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
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
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
startCycle
protected void startCycle(NodeBegin nb)
- Starts a collector update cycle.
- Parameters:
- nb -
NodeBegin update record
endCycle
protected void endCycle(NodeEnd ne)
- Ends a collector update cycle.
- Parameters:
- ne -
NodeEnd update record
inCycle
protected void inCycle(long time)
- Updates/verifies update cycle state and data.
- Parameters:
- time - the time the update was created
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
updatePort
public void updatePort(NodePort np)
- Updates the node's port list.
- Parameters:
- np -
NodePort update record
updatePeer
public void updatePeer(PeerAddress pa)
- Updates peer node information.
- Parameters:
- pa -
PeerAddress update record
updateVCCSegMap
public void updateVCCSegMap(VCCSegMap sm)
- Updates switch VCC segment map.
- Parameters:
- sm -
VCCSegMap update record
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
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
addTermVP
public void addTermVP(PathOrigin path)
- Adds a virtual path terminating at this node.
- Parameters:
- path - the path which terminates at this node
deleteTermVP
public void deleteTermVP(PathOrigin path)
- Deletes a virtual path terminating at this node.
- Parameters:
- path - the path which terminates at this node
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
delete
public synchronized void delete()
- Deletes this node from its network.
- Overrides:
- delete in class ATMNode
queueMU
protected void queueMU(ModelUpdate mu)
- Queues
ModelUpdates to the storage manager.
- Parameters:
- mu - the
ModelUpdate to queue
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
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
getAddress
public NodeAddress getAddress()
- Gets the canonical node address.
- Returns:
- the canonical node address
getCycleStart
public long getCycleStart()
- Gets the node's current cycle start time.
- Returns:
- the current cycle start time