stella.net
Class ErrorServer
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
util.rmi.RmiPropertyContainer
util.rmi.AbstractRmiCaster
stella.CastingContainer
stella.net.ReceiverServer
stella.net.ErrorServer
- All Implemented Interfaces:
- Cloneable, Runnable, Remote, ErrorProcessing, RmiErrorCaster, CancelRunnable, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, RmiCaster, RmiPropertyBearing
- Direct Known Subclasses:
- CommandReceiver, ErrorReceiver, ParameterServer
public abstract class ErrorServer
- extends ReceiverServer
- implements RmiErrorCaster
An intermediate step from the receiver server class to concrete subclasses.
Additionally to its base class this class incorporates error casting
capabilities to remote error listeners. It overrides the parents
processError(stella.ErrorEvent) method and casts the argument to registered
ErrorListeners.
|
Method Summary |
void |
exit()
Unbinds from registry, if bound. |
void |
init()
First init the receiver server, than init the error server. |
void |
processError(ErrorEvent ee)
Notifies all registered ErrorListeners. |
| Methods inherited from class stella.net.ReceiverServer |
cancel, getAsociatedThread, getBufferSize, getHandlerPriority, getReceiverName, getServerPort, getServerPriority, initReceiverServer, maxTimeToCancel, protocol, run |
| Methods inherited from class stella.CastingContainer |
addErrorListener, addRmiErrorListener, isValid, notifyErrorListener, removeErrorListener, removeRmiErrorListener, sendError, sendError, sendError, sendStatus, sendStatus, sendStatus |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
KEY_BIND
public static final String KEY_BIND
- Enables auto-binding of the receiver as an
ErrorCaster.
- See Also:
- Constant Field Values
KEY_BINDNAME
public static final String KEY_BINDNAME
- Enables auto-binding of the receiver as an
ErrorCaster.
- See Also:
- Constant Field Values
DEFBIND
private static final boolean DEFBIND
- The default auto-binding as a
RmiErrorCaster (true).
- See Also:
- Constant Field Values
ErrorServer
protected ErrorServer(Map info)
init
public void init()
- First init the receiver server, than init the error server.
- Specified by:
init in interface Initializable- Overrides:
init in class ReceiverServer
exit
public void exit()
- Unbinds from registry, if bound.
- Specified by:
exit in interface ExitCleaning- Overrides:
exit in class ReceiverServer
processError
public void processError(ErrorEvent ee)
- Notifies all registered ErrorListeners. This method parses
through the Vector of ErrorListeners and passes the argument to their
errorOccured method. Registered listeners are RMI
based.
- Specified by:
processError in interface ErrorProcessing- Overrides:
processError in class ReceiverServer
- Parameters:
ee - The ErrorEvent to pass to the Listeners.