|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.collection.correlation.Stack
org.eclipse.hyades.collection.correlation.ServiceRegistry
This is the application registry with which each application must register using a unique identifier. An application can be located in the registry, or deregistered from the registry using the same credential. The registry itself is a singleton, i.e., all applications within the same environment should be registered with the same registry.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.hyades.collection.correlation.Stack |
|---|
increment, privateStorage, stack, top |
| Method Summary | |
|---|---|
boolean |
deregisterApplication(IApplication application)
Deregisters an application from the registry using the identifier returned by IApplication.getId(). |
IApplication |
getApplicationById(int id)
Locate an application using an identifier. |
IApplication[] |
getApplications()
Returns the array of all applications registered. |
static ServiceRegistry |
getRegistry()
Gets a singleton registry. |
boolean |
registerApplication(IApplication application)
Registers an application with the registry using the identifier returned by IApplication.getId(). |
| Methods inherited from class org.eclipse.hyades.collection.correlation.Stack |
|---|
peek, peek, pop, push |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ServiceRegistry getRegistry()
public IApplication[] getApplications()
public IApplication getApplicationById(int id)
id - the identifier of the target application
null if no such application is found.public boolean registerApplication(IApplication application)
IApplication.getId(). It is the responsibility of the applications to ensure that this ID
does not conflict with other IDs. Consequently, an ID can be used to register at most once.
application - the application to be registered
deregisterApplication(IApplication)public boolean deregisterApplication(IApplication application)
IApplication.getId().
application - the application to be deregistered
registerApplication(IApplication)
|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||