public interface CommunoteService
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the service that is used to address it in the
CommunoteServiceManager . |
boolean |
isEnabled() |
boolean |
isRunning()
Returns true if the service is currently running.
|
void |
start(boolean triggeredLocally)
Non-blocking function that starts the service.
|
void |
stop()
Stops the service and returns after the service was stopped.
|
boolean |
supportsRestart()
Returns whether the service can be restarted at runtime.
|
String getName()
CommunoteServiceManager
.boolean isEnabled()
True
, when the service is enabled, else false.boolean isRunning()
void start(boolean triggeredLocally)
triggeredLocally
- true if the service was triggered on this Communote instance, false if it was
triggered by an event from another Communote instance when running a clustered
setupvoid stop()
boolean supportsRestart()
Copyright © 2019 Communote team. All rights reserved.