public interface CoreService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CORE_APP_NAME
Name of the core "application".
|
static ProviderId |
CORE_PROVIDER_ID
Identifier of the core "provider".
|
Modifier and Type | Method and Description |
---|---|
ApplicationId |
getAppId(java.lang.Short id)
Returns an existing application id from a given id.
|
ApplicationId |
getAppId(java.lang.String name)
Returns an existing application id from a given id.
|
java.util.Set<ApplicationId> |
getAppIds()
Returns the set of currently registered application identifiers.
|
IdGenerator |
getIdGenerator(java.lang.String topic)
Returns an id generator for a given topic.
|
ApplicationId |
registerApplication(java.lang.String name)
Registers a new application by its name, which is expected
to follow the reverse DNS convention, e.g.
|
ApplicationId |
registerApplication(java.lang.String name,
java.lang.Runnable preDeactivate)
Registers a new application by its name, which is expected
to follow the reverse DNS convention, e.g.
|
Version |
version()
Returns the product version.
|
static final java.lang.String CORE_APP_NAME
static final ProviderId CORE_PROVIDER_ID
Version version()
java.util.Set<ApplicationId> getAppIds()
ApplicationId getAppId(java.lang.Short id)
id
- the short value of the idApplicationId getAppId(java.lang.String name)
name
- the name portion of the ID to look upApplicationId registerApplication(java.lang.String name)
org.flying.circus.app
name
- string identifierApplicationId registerApplication(java.lang.String name, java.lang.Runnable preDeactivate)
org.flying.circus.app
, along with its pre-deactivation hook.name
- string identifierpreDeactivate
- pre-deactivation hookIdGenerator getIdGenerator(java.lang.String topic)
topic
- topic identified