public class SiteStateEvent extends Event
| Modifier and Type | Field and Description |
|---|---|
static String |
SITE_STATE |
| Constructor and Description |
|---|
SiteStateEvent(String siteName,
Site.SiteState state) |
| Modifier and Type | Method and Description |
|---|---|
Site.SiteState |
getState() |
void |
handleSiteState(Environment environment) |
void |
perform(Environment environment,
Site site)
Performs the event
|
void |
setState(Site.SiteState state) |
String |
toString() |
getNodeId, getSiteName, setNodeIdpublic static final String SITE_STATE
public SiteStateEvent(String siteName, Site.SiteState state)
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 void handleSiteState(Environment environment)
public Site.SiteState getState()
public void setState(Site.SiteState state)
Copyright © 2011–2021 aiticon GmbH. All rights reserved.