public class NodeEvent extends Event
Event that holds information about the current status of an node (system properties and environment,memory
usage, state of sites).| Modifier and Type | Class and Description |
|---|---|
class |
NodeEvent.MemoryUsage |
class |
NodeEvent.NodeState |
| Modifier and Type | Field and Description |
|---|---|
static String |
NODE_STATE |
| Constructor and Description |
|---|
NodeEvent(Environment environment,
String siteName) |
NodeEvent(Environment environment,
String siteName,
String nodeId) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,NodeEvent.NodeState> |
clusterState(Environment environment,
String nodeId) |
void |
perform(Environment environment,
Site site)
Performs the event
|
protected void |
setNodeId(String nodeId) |
static Map<String,Site.SiteState> |
siteState(Environment env,
String nodeId) |
String |
toString() |
getNodeId, getSiteNamepublic static final String NODE_STATE
public NodeEvent(Environment environment, String siteName)
public NodeEvent(Environment environment, String siteName, String nodeId)
public void perform(Environment environment, Site site) throws InvalidConfigurationException
Eventperform in class Eventenvironment - then Environment to usesite - the Site where the event occurredInvalidConfigurationException - if there's a configuration errorpublic static Map<String,NodeEvent.NodeState> clusterState(Environment environment, String nodeId)
public static Map<String,Site.SiteState> siteState(Environment env, String nodeId)
Copyright © 2011–2023 aiticon GmbH. All rights reserved.