public abstract class DistinctCaster extends CasterTorso
KEY_HANDLE list. Additionally, commands found in the
KEY_DENY list are never handled. For commands not found in
either list, the subclass has to be more specific on the concrete
implementation of the handles(stella.CommandEvent) method.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_DENY
This links to a list of class names I won't handle.
|
static String |
KEY_HANDLE
This links to a list of class names I can handle.
|
private List<Class<? extends CommandEvent>> |
no
This list has class names I don't handle.
|
private List<Class<? extends CommandEvent>> |
yes
This list has class names I handle.
|
KEY_ACKNOWLEDGECASTER, KEY_ACKNOWLEDGETIMEOUT, KEY_ALARMGROUP, KEY_BIND, KEY_DONECASTERKEY_ALIVE, KEY_EXPORTPORT, KEY_INIT, KEY_LISTENERNAME, KEY_RETRY, KEY_RETRYSLEEP, KEY_SHUTDOWNDELAYKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORNAMING_EXTENSIONCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Modifier | Constructor and Description |
|---|---|
protected |
DistinctCaster(Map<String,String> prop)
Constructs a new distinct handler Caster.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Class<? extends CommandEvent>> |
classList(String comma)
Constructs a list of command events from a comma separated string.
|
abstract boolean |
defaultHandles(CommandEvent ce)
For classes not in the deny or allow list.
|
boolean |
handles(CommandEvent ce)
We look if the class we are asked for is in the positive or negative
list.
|
void |
init()
On init, we construct positive and negative lists.
|
addRmiCommandListener, announceInterest, castCommand, deregisterAtCaster, exit, getAcknowledgeTimeOut, getAlarmGroup, getClientName, getExitCommand, isReady, recastCommand, registerAtCaster, registerReplySubscriber, removeRmiCommandListener, rmiGotAcknowledge, rmiGotDone, setOff, toStringaddErrorListener, addRmiErrorListener, bindToRegistry, getBindName, isValid, notifyErrorListener, removeErrorListener, removeRmiErrorListener, sendError, sendError, sendError, sendStatus, sendStatus, sendStatus, unbindFromRegistryallBound, blockBinding, blockBinding, disconnect, getIP, getListenerName, isConnected, listenerName, releaseBinding, releaseBinding, rescanned, startBinding, startBindingcontainsRemoteProperty, 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, setObject, setProperties, setProperty, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetListenerNamedisconnect, isConnectedbindToRegistry, isValid, unbindFromRegistryaddErrorListener, removeErrorListenergetShutdownCommanddefaultBoolean, 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, stringPropertiespublic static final String KEY_HANDLE
public static final String KEY_DENY
private List<Class<? extends CommandEvent>> yes
private List<Class<? extends CommandEvent>> no
protected DistinctCaster(Map<String,String> prop) throws RemoteException
RemoteExceptionpublic void init()
init in interface Initializableinit in class CasterTorsopublic boolean handles(CommandEvent ce)
defaultHandles(stella.CommandEvent)public abstract boolean defaultHandles(CommandEvent ce)
public static List<Class<? extends CommandEvent>> classList(String comma)