java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.aoindustries.noc.monitor.NodeImpl
- All Implemented Interfaces:
Node,Serializable,Remote
- Direct Known Subclasses:
BackupsNode,BindsNode,CertificatesNode,DatabasesNode,DeviceNode,DevicesNode,HardDrivesNode,HostNode,HostsNode,HttpdServersNode,IpAddressesNode,IpAddressNode,RaidNode,RootNodeImpl,ServerNode,ServersNode,SingleResultNodeImpl,SlaveNode,SlavesNode,TableMultiResultNodeImpl,TableResultNodeImpl,UnallocatedNode
One in the list of nodes that form the systems tree.
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RMIClientSocketFactoryprotected final intprotected final RMIServerSocketFactoryFields inherited from class java.rmi.server.RemoteObject
ref -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNodeImpl(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) -
Method Summary
Modifier and TypeMethodDescriptionprotected AlertLevelconstrainAlertLevel(AlertLevel level) Makes sure the alert level does not exceed the maximum for this node or any of its parents.Defaults to the alert category of the parent node.abstract AlertLevelThis alert level must be constrained by the maximum alert level of this node and all of its parents.abstract Stringabstract booleanabstract StringgetLabel()protected AlertLevelEvery node may optionally constrain the maximum alert level for itself and all of its children.abstract NodeImplgetSnapshot(E child) For thread safety and encapsulation, returns an unmodifiable copy of the list.getSnapshot(E... children) For thread safety and encapsulation, returns an unmodifiable copy of the list.getSnapshot(E child1, E child2) For thread safety and encapsulation, returns an unmodifiable copy of the list.getSnapshot(E child1, E child2, E child3) For thread safety and encapsulation, returns an unmodifiable copy of the list.getSnapshot(E child1, E child2, E child3, E child4) For thread safety and encapsulation, returns an unmodifiable copy of the list.getSnapshot(List<E> children) For thread safety and encapsulation, returns an unmodifiable copy of the list.toString()The default toString is the label.Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObjectMethods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLogMethods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toStub
-
Field Details
-
port
protected final int port -
csf
-
ssf
-
-
Constructor Details
-
NodeImpl
protected NodeImpl(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException - Throws:
RemoteException
-
-
Method Details
-
getParent
-
getChildren
- Specified by:
getChildrenin interfaceNode
-
getSnapshot
For thread safety and encapsulation, returns an unmodifiable copy of the list. -
getSnapshot
For thread safety and encapsulation, returns an unmodifiable copy of the list. Any null child is skipped. -
getSnapshot
For thread safety and encapsulation, returns an unmodifiable copy of the list. Any null child is skipped. -
getSnapshot
For thread safety and encapsulation, returns an unmodifiable copy of the list. Any null child is skipped. -
getSnapshot
For thread safety and encapsulation, returns an unmodifiable copy of the list. Any null child is skipped. -
getSnapshot
For thread safety and encapsulation, returns an unmodifiable copy of the list. Any null child is skipped. -
getMaxAlertLevel
Every node may optionally constrain the maximum alert level for itself and all of its children. -
constrainAlertLevel
Makes sure the alert level does not exceed the maximum for this node or any of its parents. Will reduce the level to not exceed any maximum. -
getAlertLevel
This alert level must be constrained by the maximum alert level of this node and all of its parents.- Specified by:
getAlertLevelin interfaceNode- See Also:
-
getAlertMessage
- Specified by:
getAlertMessagein interfaceNode
-
getAlertCategory
Defaults to the alert category of the parent node.- Specified by:
getAlertCategoryin interfaceNode- Throws:
NullPointerException- when there is no parent- See Also:
-
getAllowsChildren
public abstract boolean getAllowsChildren()- Specified by:
getAllowsChildrenin interfaceNode
-
getLabel
-
toString
The default toString is the label.- Overrides:
toStringin classRemoteObject
-
