stella
Class AbstractErrorHandler

java.lang.Object
  extended by util.PropertyContainer
      extended by util.rmi.RmiPropertyContainer
          extended by util.rmi.AbstractRmiListener
              extended by stella.AbstractErrorHandler
All Implemented Interfaces:
Cloneable, Remote, EventListener, ClusterDepending, ErrorHandling, ErrorListener, ExitCleaning, Initializable, PropertyBearing, RmiEventListener, RmiListener, RmiPropertyBearing
Direct Known Subclasses:
MasterErrorHandler

public abstract class AbstractErrorHandler
extends AbstractRmiListener
implements ErrorHandling

An abstract implementation of an error handler. Provides a protected contructor with a single Map object as an argument. Provides a static createErrorHandler(java.util.Map) method to dynamically create an error handler from a properties file. Because error handlers will normally have to listen to remote and to local errors, this error handler extends the generic AbstractRmiListener class.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyContainer
PropertyContainer.URLResource
 
Field Summary
 
Fields inherited from class util.rmi.AbstractRmiListener
KEY_ALIVE, KEY_EXPORTPORT, KEY_INIT, KEY_LISTENERNAME, KEY_RETRY, KEY_RETRYSLEEP, KEY_SHUTDOWNDELAY
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES
 
Fields inherited from interface util.PropertyBearing
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Constructor Summary
protected AbstractErrorHandler(Map prop)
          Constructs a new error handling instance with the specified properties.
 
Method Summary
static ErrorHandling createErrorHandler(Map prop)
          Constructs a new error handling instance using the mapping of the PropertyBearing.KEY_CLASS to the class name to derive the class to instantiate.
 
Methods inherited from class util.rmi.AbstractRmiListener
allBound, blockBinding, blockBinding, deregisterAtCaster, disconnect, exit, getIP, getListenerName, isConnected, listenerName, registerAtCaster, releaseBinding, releaseBinding, rescanned, startBinding, startBinding
 
Methods inherited from class util.rmi.RmiPropertyContainer
containsRemoteProperty, getRemoteProperties, getRemoteProperty, setRemoteProperty
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, clone, createFrom, createFrom, createFrom, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getLocalClassLoader, getLocalized, getLocalized, getLocalizedString, getLocalizedString, getProperties, getPropertiesToKey, getPropertiesToKey, getProperty, getResource, getResourceAsStream, getResourceFromKey, getResources, has, init, isNew, keyCreate, keyCreate, parseObject, reload, reload, removeProperty, setObject, setProperties, setProperty, stringProperties, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface stella.ErrorHandling
doAbort, endTarget, registerLauncher, registerMonitor, registerSequencer, registerWeather, setEnabled, startTarget
 
Methods inherited from interface util.PropertyBearing
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getLocalized, getProperties, getProperty, getResource, getResourceAsStream, getResources, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 
Methods inherited from interface stella.ErrorListener
errorOccured
 
Methods inherited from interface stella.ClusterDepending
registerCluster
 

Constructor Detail

AbstractErrorHandler

protected AbstractErrorHandler(Map prop)
Constructs a new error handling instance with the specified properties. The PropertyBearing.KEY_CLASS is always specified when this constructer is used.

Method Detail

createErrorHandler

public static final ErrorHandling createErrorHandler(Map prop)
Constructs a new error handling instance using the mapping of the PropertyBearing.KEY_CLASS to the class name to derive the class to instantiate. If this property is defined, a new error handling instance with the stated class name is created, the supplied properties used as an argument in the constructor. Can throw a lot of exceptions if unsuccessful.