public abstract class CastingContainer extends AbstractRmiCaster implements Initializable
ErrorCaster interface nor the RmiErrorCaster
interface, though all of the required subroutines are present.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private List |
errlist
The vector containing local error listeners.
|
private List |
rmilist
The vector containing rmi error listeners.
|
ALTERNATEHOST, ALTERNATEPORT, KEY_BINDNAME, KEY_EXPORTPORT, KEY_REGISTRYHOST, KEY_REGISTRYPORTKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Modifier | Constructor and Description |
|---|---|
protected |
CastingContainer(Map prop) |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorListener(ErrorListener ear)
Registers an error event listener to this property container.
|
void |
addRmiErrorListener(RmiErrorListener ear)
Registers a rmi error event listener to this property container.
|
void |
exit()
Exits by signaling to all listeners that they should deregister.
|
void |
init() |
boolean |
isValid()
The method for listeners to check if the remote reference is still
valid.
|
protected void |
notifyErrorListener(ErrorEvent ee,
List local,
List remote)
Notifies all registered ErrorListeners.
|
void |
removeErrorListener(ErrorListener ear)
Deregisters an error event listener from this property container.
|
void |
removeRmiErrorListener(RmiErrorListener ear)
Deregisters an rmi error event listener from this property container.
|
void |
sendError(ErrorEvent ee)
Sends the error message directly.
|
void |
sendError(String mess)
Wraps the argumental String into an error message and passes it to
the error listeners.
|
void |
sendError(Throwable thrown)
Wraps the argumental THrowable into an error message and passes it to
the error listeners.
|
void |
sendStatus(ErrorEvent ee)
Sends the status event back to registered listeners.
|
void |
sendStatus(List stati)
Processes an entire list of status messages that should be sent to
the error listeners.
|
void |
sendStatus(String mess)
Wraps the argumental String into an error message and passes it to
the error listeners.
|
bindToRegistry, bindToRegistry, bindToRegistry, bindToRegistry, bindToRegistry, bindToRegistry, casterExit, casterExit, getBindName, getBindName, unbindFromRegistry, unbindFromRegistrycontainsRemoteProperty, getRemoteProperties, getRemoteProperty, setRemotePropertyclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBoolean, 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, stringPropertiesprivate final List errlist
private final List rmilist
protected CastingContainer(Map prop)
public void exit()
exit in interface ExitCleaningexit in class AbstractRmiCasterpublic void init()
init in interface Initializablepublic void addErrorListener(ErrorListener ear)
public void removeErrorListener(ErrorListener ear)
public void addRmiErrorListener(RmiErrorListener ear) throws RemoteException
RemoteExceptionpublic void removeRmiErrorListener(RmiErrorListener ear) throws RemoteException
RemoteExceptionpublic boolean isValid()
throws RemoteException
isValid in interface RmiCasterisValid in class AbstractRmiCasterRemoteExceptionpublic void sendError(Throwable thrown)
public void sendError(String mess)
public void sendError(ErrorEvent ee)
public void sendStatus(String mess)
public void sendStatus(List stati)
public void sendStatus(ErrorEvent ee)
ReceiverTorso.processCommand(stella.CommandEvent, int) method.notifyErrorListener(stella.ErrorEvent, java.util.List, java.util.List) method.protected void notifyErrorListener(ErrorEvent ee, List local, List remote)
ee - The ErrorEvent to pass to the Listeners.