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 |
perform(Environment environment,
Site site)
Performs the event
|
void |
setState(Site.SiteState state) |
String |
toString() |
getNodeId, getSiteName, setNodeId
public static final String SITE_STATE
public SiteStateEvent(String siteName, Site.SiteState state)
public void perform(Environment environment, Site site) throws InvalidConfigurationException
Event
perform
in class Event
environment
- then Environment
to usesite
- the Site
where the event occurredInvalidConfigurationException
- if there's a configuration errorpublic Site.SiteState getState()
public void setState(Site.SiteState state)
Copyright © 2011–2020 aiticon GmbH. All rights reserved.