public interface Service
An application service managed by a
ServiceManager.-
Method Summary
Modifier and TypeMethodDescriptionvoidstart(String name, Communicator communicator, String[] args) Start the service.voidstop()Stop the service.
-
Method Details
-
start
Start the service. The given communicator is created by theServiceManagerfor use by the service. This communicator may also be used by other services, depending on the service configuration.The
ServiceManagerowns this communicator, and is responsible for destroying it.- Parameters:
name- the service's name, as determined by the configurationcommunicator- a communicator for use by the serviceargs- the service arguments that were not converted into properties- Throws:
FailureException- ifstart(java.lang.String, com.zeroc.Ice.Communicator, java.lang.String[])failed.
-
stop
void stop()Stop the service.
-