void function ( Service arg0 ) { if ( arg0 != null ) { Service . STATE loc0 = arg0 . getServiceState ( ) ; if ( loc0 == Service . STATE . STARTED ) { arg0 . stop ( ) ; } } }
stop a service . do nothing if the service is null or not in a state in which it can be/needs to be stopped . the service state is checked before the operation begins . this process is not thread safe . concode_field_sep Log LOG concode_field_sep void init concode_elem_sep Exception stopQuietly concode_elem_sep void start concode_elem_sep void ensureCurrentState concode_elem_sep void deploy