public class ServiceStopper extends Object
Constructor and Description |
---|
ServiceStopper() |
Modifier and Type | Method and Description |
---|---|
protected void |
logError(Object service,
Throwable e) |
void |
onException(Object owner,
Throwable e) |
void |
run(Callback stopClosure)
Performs the given code to stop some service handling the exceptions
which may be thrown properly
|
void |
stop(Service service)
Stops the given service, catching any exceptions that are thrown.
|
void |
stopServices(List services)
Stops a list of services
|
void |
throwFirstException()
Throws the first exception that was thrown if there was one.
|
public ServiceStopper()
public void stop(Service service)
public void run(Callback stopClosure)
public void stopServices(List services)
public void onException(Object owner, Throwable e)
public void throwFirstException() throws Exception
Exception
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.