|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.util.ServiceStopper
public class ServiceStopper
A helper class used to stop a bunch of services, catching and logging any exceptions and then throwing the first exception when everything is stoped.
| Constructor Summary | |
|---|---|
ServiceStopper()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceStopper()
| Method Detail |
|---|
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
protected void logError(Object service,
Throwable e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||