public class RestartServiceEvent extends Object implements DistributableEvent
Constructor and Description |
---|
RestartServiceEvent(String serviceName)
A locally created event to restart the named service.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getCreatedLocally()
Whether the event was created on this Communote instance node if running a clustered
Communote setup.
|
String |
getServiceName()
Returns the name of the service that should be restarted.
|
boolean |
isDistribute()
Whether the event needs to be distributed to other Communote nodes if running a clustered
Communote setup.
|
void |
setCreatedLocally(boolean createdLocally)
Defines whether the event was created on this Communote instance node if running a clustered
Communote setup.
|
void |
setDistribute(boolean distribute)
Defines whether the event needs to be distributed to other Communote nodes if running a
clustered Communote setup.
|
public RestartServiceEvent(String serviceName)
isDistribute()
will
return true.serviceName
- the name of the service that should be restartedpublic boolean getCreatedLocally()
getCreatedLocally
in interface DistributableEvent
public String getServiceName()
public boolean isDistribute()
isDistribute
in interface DistributableEvent
public void setCreatedLocally(boolean createdLocally)
setCreatedLocally
in interface DistributableEvent
createdLocally
- true if the event was created on this instance, false if it was received from
another instance because of event distributionpublic void setDistribute(boolean distribute)
setDistribute
in interface DistributableEvent
distribute
- true if the event has to be distributedCopyright © 2019 Communote team. All rights reserved.