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
Modifier and TypeFieldDescriptionprotected final RMIClientSocketFactory
protected final int
protected final RMIServerSocketFactory
Fields inherited from class java.rmi.server.RemoteObject
ref
-
Constructor Summary
ModifierConstructorDescriptionprotected
NodeImpl
(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) -
Method Summary
Modifier and TypeMethodDescriptionprotected AlertLevel
constrainAlertLevel
(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 AlertLevel
This alert level must be constrained by the maximum alert level of this node and all of its parents.abstract String
abstract boolean
abstract String
getLabel()
protected AlertLevel
Every node may optionally constrain the maximum alert level for itself and all of its children.abstract NodeImpl
getSnapshot
(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, unexportObject
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
Methods 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:
getChildren
in 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:
getAlertLevel
in interfaceNode
- See Also:
-
getAlertMessage
- Specified by:
getAlertMessage
in interfaceNode
-
getAlertCategory
Defaults to the alert category of the parent node.- Specified by:
getAlertCategory
in interfaceNode
- Throws:
NullPointerException
- when there is no parent- See Also:
-
getAllowsChildren
public abstract boolean getAllowsChildren()- Specified by:
getAllowsChildren
in interfaceNode
-
getLabel
-
toString
The default toString is the label.- Overrides:
toString
in classRemoteObject
-