public abstract class Event extends Object implements Serializable
Sender
,
Receiver
,
Site.sendEvent(Event)
,
Serialized FormModifier | Constructor and Description |
---|---|
protected |
Event() |
protected |
Event(String siteName)
Creates a new event
|
protected |
Event(String siteName,
boolean async)
Creates a new event
|
Modifier and Type | Method and Description |
---|---|
String |
getNodeId()
Returns the node id of this event, i.e.
|
String |
getSiteName()
Returns the name of the origin
Site this event was created for |
boolean |
isAsync()
Should the event be processed asynchronously?
|
abstract void |
perform(Environment environment,
Site site)
Performs the event
|
protected void |
setNodeId(String nodeId) |
String |
toString() |
protected Event()
protected Event(String siteName)
siteName
- the name of the Site
this event is forpublic boolean isAsync()
true
for async processing, false
otherwisepublic String getNodeId()
Serializer
when serializing the event.protected void setNodeId(String nodeId)
public String getSiteName()
Site
this event was created forSite
public abstract void perform(Environment environment, Site site) throws InvalidConfigurationException, BusinessException
environment
- then Environment
to usesite
- the Site
where the event occurredInvalidConfigurationException
- if there's a configuration errorBusinessException
- if an error occurs while performing the eventCopyright © 2011–2023 aiticon GmbH. All rights reserved.