org.ops4j.monitors.exception
Interface ExceptionSource

All Known Implementing Classes:
ConnectionCache, ExceptionMonitorRouter

public interface ExceptionSource

An interface for classes that supports ExceptionMonitors.


Method Summary
 java.util.List<ExceptionMonitor> getExceptionMonitors()
          Returns all ExceptionMonitors that are registered.
 void registerExceptionMonitor(ExceptionMonitor monitor)
          Register a ExceptionMonitor with the source.
 void unregisterExceptionMonitor(ExceptionMonitor monitor)
          Unregister a ExceptionMonitor with the source.
 

Method Detail

registerExceptionMonitor

void registerExceptionMonitor(ExceptionMonitor monitor)
                              throws TooManyMonitorsException
Register a ExceptionMonitor with the source.

Parameters:
monitor - The ExceptionMonitor to register.
Throws:
TooManyMonitorsException - if the ExceptionSource is uncapable of handling any more registrations. If this Exception is thrown the client should unregister the existing monitor and replace it with a ExceptionMonitorRouter.

unregisterExceptionMonitor

void unregisterExceptionMonitor(ExceptionMonitor monitor)
Unregister a ExceptionMonitor with the source.

Parameters:
monitor - The ExceptionMonitor to unregister.

getExceptionMonitors

java.util.List<ExceptionMonitor> getExceptionMonitors()
Returns all ExceptionMonitors that are registered.

Returns:
all ExceptionMonitors that are registered.


Copyright © 2006-2009 OPS4J - Open Participation Software for Java. All Rights Reserved.