public class MessageListener extends AbstractRmiListener implements Initializable, RmiCommandListener, RmiErrorListener, RmiAcknowledgeListener, RmiDoneListener, RmiDataListener, RmiSerialListener, RmiWeatherListener
KEY_COMMAND, KEY_ACKNOWLEDGE, KEY_DONE,
KEY_ERROR, KEY_DATA, KEY_SERIAL, and
KEY_WEATHER this logger registers itself at the appropriate
rmi-casters. Any message received from the casters is dumped into the
Syslog.| Modifier and Type | Class and Description |
|---|---|
static class |
MessageListener.Run
Runs the message listener.
|
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static boolean |
DEFBIND
The default binding behaviour.
|
private static String |
DEFBINDNAME
The default binding name.
|
static String |
KEY_ACKNOWLEDGE
The key denoting a comma-separated list of acknowledge casters.
|
static String |
KEY_BIND
The key matching the default command casting binding.
|
static String |
KEY_BINDNAME
The key in the properties defining the binding name of this caster.
|
static String |
KEY_COMMAND
The key denoting a comma-separated list of command casters.
|
static String |
KEY_DATA
The key denoting a comma-separated list of data casters.
|
static String |
KEY_DONE
The key denoting a comma-separated list of done casters.
|
static String |
KEY_ERROR
The key denoting a comma-separated list of error casters.
|
static String |
KEY_SERIAL
The key denoting a comma-separated list of serial casters.
|
static String |
KEY_WEATHER
The key denoting a comma-separated list of weather casters.
|
KEY_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_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Constructor and Description |
|---|
MessageListener(Map info)
Constructs a new message logger.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(CommandEvent ce)
A message listener accepts all command event types.
|
protected boolean |
deregisterAtCaster(RmiCaster rmi,
Class service)
Deregisters at caster.
|
void |
exit()
The exit-cleaning functionality.
|
void |
init()
Register at the appropriate casters found in the various lists.
|
private void |
register(String list,
Class casterclass)
Registers at a caster list.
|
protected boolean |
registerAtCaster(RmiCaster rmi,
Class service)
Registers at the specified caster if the caster is one of the four
possible caster instances this class listens to.
|
void |
rmiCommand(CommandEvent ce)
The receiving edge of the command listener.
|
void |
rmiDataAvailable(DataEvent de)
The receiving edge of the data listener.
|
void |
rmiErrorOccured(ErrorEvent ee)
The receiving edge of the error listener.
|
void |
rmiGotAcknowledge(AcknowledgeEvent ae)
The receiving edge of the acknowledge listener.
|
void |
rmiGotDone(DoneEvent de)
The receiving edge of the done listener.
|
void |
rmiSerial(SerialEvent se)
The receiving edge of the serial listener.
|
void |
rmiWeatherChanged(WeatherEvent we)
The receiving edge of weather events.
|
allBound, 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, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetListenerNamedisconnect, isConnecteddefaultBoolean, 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_COMMAND
public static final String KEY_ERROR
public static final String KEY_DONE
public static final String KEY_ACKNOWLEDGE
public static final String KEY_DATA
public static final String KEY_SERIAL
public static final String KEY_WEATHER
public static final String KEY_BINDNAME
public static final String KEY_BIND
private static final String DEFBINDNAME
private static final boolean DEFBIND
public MessageListener(Map info) throws RemoteException
RemoteExceptionpublic void init()
init in interface Initializablepublic void exit()
exit in interface ExitCleaningexit in class AbstractRmiListenerpublic boolean accepts(CommandEvent ce) throws RemoteException
accepts in interface RmiCommandListenerRemoteExceptionpublic void rmiCommand(CommandEvent ce) throws RemoteException
rmiCommand in interface RmiCommandListenerRemoteExceptionpublic void rmiGotAcknowledge(AcknowledgeEvent ae) throws RemoteException
rmiGotAcknowledge in interface RmiAcknowledgeListenerRemoteExceptionpublic void rmiGotDone(DoneEvent de) throws RemoteException
rmiGotDone in interface RmiDoneListenerRemoteExceptionpublic void rmiErrorOccured(ErrorEvent ee) throws RemoteException
rmiErrorOccured in interface RmiErrorListenerRemoteExceptionpublic void rmiDataAvailable(DataEvent de) throws RemoteException
rmiDataAvailable in interface RmiDataListenerRemoteExceptionpublic void rmiSerial(SerialEvent se) throws RemoteException
rmiSerial in interface RmiSerialListenerRemoteExceptionpublic void rmiWeatherChanged(WeatherEvent we) throws RemoteException
rmiWeatherChanged in interface RmiWeatherListenerRemoteExceptionprotected boolean registerAtCaster(RmiCaster rmi, Class service)
registerAtCaster in class AbstractRmiListenerprotected boolean deregisterAtCaster(RmiCaster rmi, Class service)
deregisterAtCaster in class AbstractRmiListener