com.javageeks.gjas.services
Interface ControlService

All Superinterfaces:
java.io.Serializable, Service

public interface ControlService
extends Service


Fields inherited from interface com.javageeks.gjas.Service
PAUSED, PAUSING, RESUMING, RUNNING, STARTING, STOPPED, STOPPING
 
Method Summary
 java.lang.String[] enumServiceInstances()
          Lists all Services associated with this ControlService.
 void pauseService(java.lang.String instance)
          Pauses a Service with the name instance.
 void resumeService(java.lang.String instance)
          Resumes a Service with the name instance.
 com.javageeks.gjas.services.Server startService(java.lang.String svcName, java.lang.String[] args)
          Creates a Service instance via loader, passing in args to the Service.
 void stopService(java.lang.String instance)
          Stops a Service with the name instance.
 
Methods inherited from interface com.javageeks.gjas.Service
getConfigInfo, getInstanceID, getState, pause, resume, setConfigInfo, start, stop
 

Method Detail

startService

public com.javageeks.gjas.services.Server startService(java.lang.String svcName,
                                                       java.lang.String[] args)
Creates a Service instance via loader, passing in args to the Service.

enumServiceInstances

public java.lang.String[] enumServiceInstances()
Lists all Services associated with this ControlService.

stopService

public void stopService(java.lang.String instance)
Stops a Service with the name instance. If no instance by that name is found, nothing is done.

pauseService

public void pauseService(java.lang.String instance)
Pauses a Service with the name instance. If no instance by that name is found, nothing is done.

resumeService

public void resumeService(java.lang.String instance)
Resumes a Service with the name instance. If no instance by that name is found, nothing is done.