|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Service
This class provides a set of core functions that service implementations need to satisfy. All services within the system need to conform to this interface.
| Method Summary | |
|---|---|
void |
deregisterServiceExceptionListener(String listenerId)
Deregisters a previously registered service exception listener |
void |
deregisterServiceNotificationListener(String listenerId)
De registers a previously registered service notification listener |
int[] |
getEventTypesHandled()
Gets a list of the different types of events handled by the service |
String |
getServiceDescription()
Returns a description of the service |
int[] |
getServicesPerformed()
Gets a list of the services performed by this service |
void |
handleEvent(NBEvent nbEvent)
This is an event invoked to handle processing for a given event |
boolean |
isStarted()
Return true if the service is started and is running. |
boolean |
isStopped()
Returns false if the service is stopped |
void |
loadService(Properties serviceProperties)
Load the service based on the specified properties. |
void |
performService(NBEvent nbEvent,
int serviceType,
Service requestingService)
Performs a service request by a service. |
void |
registerServiceExceptionListener(ServiceExceptionListener listener,
String listenerId)
A service exception listener allows a client to be notified of a problem asynchronously |
void |
registerServiceNotificationListener(ServiceNotificationListener listener,
String listenerId)
A service notification listener allows a client to be notified of a service related diagnostic information asynchronously |
void |
servicePerformed(NBEvent nbEvent,
boolean status,
ServiceException serviceException)
This is the method called upon the completion of a previously requested service. |
void |
startService()
Start the service. |
void |
stopService()
Stop the service |
| Method Detail |
|---|
void loadService(Properties serviceProperties)
throws ServiceException
ServiceException
void startService()
throws ServiceException
ServiceException
void stopService()
throws ServiceException
ServiceExceptionboolean isStarted()
boolean isStopped()
String getServiceDescription()
void registerServiceExceptionListener(ServiceExceptionListener listener,
String listenerId)
throws ServiceException
ServiceException
void deregisterServiceExceptionListener(String listenerId)
throws ServiceException
ServiceException
void registerServiceNotificationListener(ServiceNotificationListener listener,
String listenerId)
throws ServiceException
ServiceException
void deregisterServiceNotificationListener(String listenerId)
throws ServiceException
ServiceExceptionint[] getEventTypesHandled()
void handleEvent(NBEvent nbEvent)
throws ServiceException
ServiceExceptionint[] getServicesPerformed()
void performService(NBEvent nbEvent,
int serviceType,
Service requestingService)
throws ServiceException
ServiceException
void servicePerformed(NBEvent nbEvent,
boolean status,
ServiceException serviceException)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||