Class NodeSnapshot
java.lang.Object
com.aoindustries.noc.monitor.common.NodeSnapshot
- All Implemented Interfaces:
Serializable
Gets a serializable snapshot of a node, including all of its children.
Nodes themselves are Remote objects. Thus any iteration over them incurs
may round-trips to the RMI server. This snapshot mechanism allows calling
code to get the current state of the node tree with a single RMI call.
- Author:
- AO Industries, Inc.
- See Also:
-
Constructor Summary
ConstructorDescriptionNodeSnapshot
(NodeSnapshot parent, Node node) Recursively obtains the snapshot of the provided node. -
Method Summary
-
Constructor Details
-
NodeSnapshot
Recursively obtains the snapshot of the provided node.- Throws:
RemoteException
-
-
Method Details
-
getParent
Gets the parent of this snapshot ornull
for none. -
getNode
Gets the underlying node that this is a snapshot of. This is theRemote
object, and may be used to check the type of node or make calls for real-time data. -
setNode
This allows the node to be replaced, this is used when a filter wraps a node. -
getChildren
- See Also:
-
getAlertLevel
- See Also:
-
getAlertMessage
- See Also:
-
getAllowsChildren
public boolean getAllowsChildren()- See Also:
-
getLabel
- See Also:
-