Class NodeEvent
- java.lang.Object
-
- org.appng.api.messaging.Event
-
- org.appng.core.controller.messaging.NodeEvent
-
- All Implemented Interfaces:
Serializable
public class NodeEvent extends Event
AnEvent
that holds information about the current status of an node (system properties and environment,memory usage, state of sites).- Author:
- Matthias Müller
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
NodeEvent.MemoryUsage
class
NodeEvent.NodeState
-
Field Summary
Fields Modifier and Type Field Description static String
NODE_STATE
-
Constructor Summary
Constructors Constructor Description NodeEvent(Environment environment, String siteName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
perform(Environment environment, Site site)
Performs the eventprotected void
setNodeId(String nodeId)
String
toString()
-
Methods inherited from class org.appng.api.messaging.Event
getNodeId, getSiteName
-
-
-
-
Field Detail
-
NODE_STATE
public static final String NODE_STATE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NodeEvent
public NodeEvent(Environment environment, String siteName)
-
-
Method Detail
-
perform
public void perform(Environment environment, Site site) throws InvalidConfigurationException
Description copied from class:Event
Performs the event- Specified by:
perform
in classEvent
- Parameters:
environment
- thenEnvironment
to usesite
- theSite
where the event occurred- Throws:
InvalidConfigurationException
- if there's a configuration error
-
-