public class TelescopeClient extends CasterClient implements ErrorListener
ErrorCaster. The incoming ascii-errors from
the telescope are converted with an ErrorReceiver to local errors by
registering the telescope client as an ErrorListener. The SCS-error
handler, on the other side, will register at the telescope client.RmiErrorCaster. This is meant for
remote loggers.RmiCommandCaster. The
command it sends to the telescope server are also simply sent as rmi event to
registered listeners. Again, this behaviour is intended for loggers.RmiAcknowledgeCaster and
an RmiDoneCaster.| Modifier and Type | Class and Description |
|---|---|
private static class |
TelescopeClient.Blocking
A class that allows blocking on incoming commands.
|
static class |
TelescopeClient.Test
For simple testing of the telescope client functionality.
|
CasterClient.CommandSenderPropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private ErrorReceiver |
asciierror
A helper class to convert the incoming ascii-errors to event-casters.
|
static String |
KEY_ERRORSERVER
The key in the properties for the command server.
|
KEY_ACKNOWLEDGETIMEOUT, KEY_ALARMGROUP, KEY_BIND, KEY_BUFFERSIZE, KEY_CASTERNAME, KEY_MAXWAITONCLOSE, KEY_PORT, KEY_RECEIVER, KEY_RETRYCOUNT, KEY_RETRYSLEEPALTERNATEHOST, 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_MAPSEPARATORNAMING_EXTENSIONNAMING_EXTENSIONNAMING_EXTENSIONCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
TelescopeClient(Map ensure)
Constructs a telescope client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
errorOccured(ErrorEvent ee)
The error events coming in from the ascii-error server.
|
void |
exit()
The shutdown-hook for the telescope.
|
CommandEvent |
getShutdownCommand()
The shutdown command of the telescope.
|
boolean |
handles(CommandEvent ce)
A test caster handles test commands.
|
void |
init()
Uses the properties pointed to by
KEY_ERRORSERVER to construct
this class's helper application, the ErrorReceiver. |
addRmiAcknowledgeListener, addRmiCommandListener, addRmiDoneListener, announceInterest, castCommand, checkForward, close, getAcknowledgeTimeOut, getAlarmGroup, getBufferSize, getClientName, getExitCommand, getPort, getReceiver, isReady, notifyAcknowledgeListener, notifyCommandListener, notifyDoneListener, recastCommand, registerReplySubscriber, removeRmiAcknowledgeListener, removeRmiCommandListener, removeRmiDoneListenercreateCommandLauncheraddErrorListener, addRmiErrorListener, isValid, notifyErrorListener, removeErrorListener, removeRmiErrorListener, sendError, sendError, sendError, sendStatus, sendStatus, sendStatusbindToRegistry, 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, waitaddRmiErrorListener, removeRmiErrorListenerbindToRegistry, isValid, unbindFromRegistryaddErrorListener, removeErrorListenerdefaultBoolean, 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_ERRORSERVER
private ErrorReceiver asciierror
public TelescopeClient(Map ensure) throws RemoteException
RemoteExceptionpublic void init()
KEY_ERRORSERVER to construct
this class's helper application, the ErrorReceiver. The telescope
client registers itself to the error receiver as an error listener.init in interface Initializableinit in class CasterClientCasterClient.KEY_RETRYCOUNT,
CasterClient.KEY_RETRYSLEEPpublic void exit()
exit in interface ExitCleaningexit in class CasterClientpublic boolean handles(CommandEvent ce)
handles in interface CommandLaunchinghandles in class CasterClientpublic CommandEvent getShutdownCommand()
ParkTelescope
command.getShutdownCommand in interface CommandLaunchingpublic void errorOccured(ErrorEvent ee)
errorOccured in interface ErrorListener