|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
All services in the Norna framework must implement this interface. A service in the norna framework has three properties. It has a status which tell its environment and other services what state it is in, it has a software information object with runtime information about the service software, and it has a public handle which will be used by other services and should contain the service public contract.
The Status must be reported through a StatusCallback interface provided by the framework. A service
is not available to the rest of the framework until it reports its status as ready.
StatusCallback| Method Summary | |
ServiceHandle |
getServiceHandle()
Get a reference to the ServiceHandle interface for this service. |
SoftwareInfo |
getServiceInfo()
Get service information. |
void |
setStatusCallback(StatusCallback callback)
Set the status callback this service should use to signal status changes to the framework. |
| Method Detail |
public void setStatusCallback(StatusCallback callback)
ready.
callback - Status callback handlepublic SoftwareInfo getServiceInfo()
ServiceHandle interface.
public ServiceHandle getServiceHandle()
ServiceHandle interface for this service. The service handle
is the public contract used by other services. This method is guarrantied by the framework
never to be called unless the service returns its status as being ready.
ready
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||