1.0.0

org.eclipse.soda.dk.device
Class DeviceRegistry

java.lang.Object
  extended by org.eclipse.soda.dk.core.EscObject
      extended by org.eclipse.soda.dk.device.Control
          extended by org.eclipse.soda.dk.device.Container
              extended by org.eclipse.soda.dk.device.Device
                  extended by org.eclipse.soda.dk.device.DeviceRegistry
All Implemented Interfaces:
java.lang.Runnable, ControlRegistry, ControlService, DeviceRegistryService, DeviceService, ErrorListener

public class DeviceRegistry
extends Device
implements DeviceService, ControlRegistry, DeviceRegistryService

The DeviceRegistry class implements the DeviceService interface.

Version:
1.0.0
See Also:
Container, Control, Device, DeviceRegistry, ControlService, ControlRegistry, ErrorListener, MessageHandler

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.device.Device
POLL_COMMAND_NAME, START_COMMAND_NAME, STARTED_MASK, STOP_COMMAND_NAME
 
Fields inherited from class org.eclipse.soda.dk.device.Container
capabilities, configuration, DEVICE_ACTIVE_STATE_RESOURCE, DEVICE_ALIVE_STATE_RESOURCE, DEVICE_CHANGED_EXCEPTION_RESOURCE, DEVICE_CONNECTED_STATE_RESOURCE, DEVICE_CREATED_STATE_RESOURCE, DEVICE_DEAD_STATE_RESOURCE, DEVICE_STARTED_STATE_RESOURCE, DEVICE_STATE_RESOURCE_TABLE, EXCEPTION_NO_TRANSPORT_RESOURCE, INITIALIZE_CONFIGURATION_EXCEPTION_RESOURCE, INITIALIZE_CONFIGURATION_MISCOMPARE_RESOURCE, INITIALIZE_CONFIGURATION_RESOURCE, INITIALIZE_CONFIGURATION_SAME_RESOURCE, INITIALIZE_READ_EXCEPTION_RESOURCE, INITIALIZE_WRITE_EXCEPTION_RESOURCE, MESSAGE_RECEIVED_EXCEPTION_RESOURCE, PROCESSING_UNABLE_TO_KEEP_UP_EXCEPTION_RESOURCE, RUN_EXCEPTION_RESOURCE, SEND_EXCEPTION_RESOURCE, stateChanaged, status, TOPIC_DELIMITER
 
Fields inherited from class org.eclipse.soda.dk.device.Control
EXCEPTION_READ_FAILED_RESOURCE, SETVALUEEXCEPTION_RESOURCE
 
Fields inherited from class org.eclipse.soda.dk.core.EscObject
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE
 
Fields inherited from interface org.eclipse.soda.dk.device.service.DeviceRegistryService
SERVICE_NAME
 
Constructor Summary
DeviceRegistry()
          Constructs an DeviceRegistry object.
 
Method Summary
 void exit()
          Exit.
protected  void finalize()
          Perform the finalize action method.
static DeviceRegistry getDefaultDeviceRegistry()
          Get the default device registry.
 java.lang.String getDefaultKey()
          Gets the default key (String) value.
 DeviceService getDevice(java.lang.String key)
          Sets the devices property.
protected  DeviceService[] getDevices()
          Gets the org.eclipse.soda.dk.device.service.DeviceService [] devices property value.
static void setDefaultDeviceRegistry(DeviceRegistry defaultDeviceRegistry)
          Sets the default device registry property.
protected  void setDevices(DeviceService[] devices)
          Sets the devices property.
 void start()
          Perform the start action method.
 void stop()
          Perform the stop action method.
 
Methods inherited from class org.eclipse.soda.dk.device.Device
addDeviceListener, controlAdded, controlRemoved, fireContainerChanged, fireErrorOccurred, getCapabilities, getConfiguration, getDeviceListener, getMessageCapacity, getMessageKey, getPriority, getReadTimeout, getStatus, getThread, hasListeners, isAutoStart, isBlockProcessing, isEvenProcessing, isRunning, isStarted, isThreadNeeded, load, put, remove, removeDeviceListener, restart, run, setDeviceListener, setReadTimeout, setRunning, setStarted, setThread, startup
 
Methods inherited from class org.eclipse.soda.dk.device.Container
activate, addQualifiedKeys, attemptRecoveryFromError, broadcast, broadcastStatus, broadcastStatus, changeIds, createFilter, deactivate, elements, errorOccurred, get, getBundleContext, getCommand, getConfigurationInformation, getConfigurationInformation, getConfigurationService, getControlCapacity, getControls, getDefaultStyle, getErrorSeverity, getId, getInformation, getLogDetails4, getLogDetails5, getLogDetails6, getMeasurement, getNotificationController, getNotificationService, getPrefix, getSignal, getState, getStatusDictionary, getString, getStyle, getTransport, initializeMeasurements, isInitializeMeasurements, keys, notificationReceived, prependPrefix, prependPrefix, put, putConfigurationInformation, register, register, removeListeners, removeQualifiedKeys, send, setBundleContext, setConfigurationInformation, setInformation, setListenersNull, setNotificationController, setNotificationService, setState, setStyle, setTransport, setup, setupCustom, setupNotification, setupNotificationCustom, startupCommands, toString, toStringInfo, transportStartedWait, unregister, unsubscribe
 
Methods inherited from class org.eclipse.soda.dk.device.Control
equalsValue, getCodeKey, getKey, getQualifiedKey, getResource, setKey, setQualifiedKey
 
Methods inherited from class org.eclipse.soda.dk.core.EscObject
createDefaultLogService, createException, createException, createInteger, createIntegerTable, createNumber, format, getBoolean, getCurrentTimestamp, getDefaultLogService, getDefaultResource, getFloat, getInt, getLoadLibraryName, getLogDetails, getLogDetails0, getLogDetails1, getLogDetails2, getLogDetails3, getLogDetails7, getLogService, getLong, getObject, getOutputName, getSimpleClassName, getStaticBoolean, getStaticFloat, getStaticInt, getStaticLong, getStaticObject, getStaticString, getTraceLevel, getVmLibraryVersion, handleError, handleError, handleError, handleStaticError, handleStaticException, isDebug, isTrace, loadService, log, log, report, report, report, report, report, report, reportError, reportSystemInfo, setDebug, setDefaultLogService, setLogService, setTraceLevel, shouldLog, sleep, startupEscStatic, toStringConfigurationKeys
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.soda.dk.device.ControlRegistry
get, put
 
Methods inherited from interface org.eclipse.soda.dk.device.service.DeviceRegistryService
getCommand, getMeasurement, getSignal, put, remove
 

Constructor Detail

DeviceRegistry

public DeviceRegistry()
Constructs an DeviceRegistry object.

See Also:
getDefaultDeviceRegistry(), setDefaultDeviceRegistry(DeviceRegistry)
Method Detail

getDefaultDeviceRegistry

public static DeviceRegistry getDefaultDeviceRegistry()
Get the default device registry.

Returns:
DeviceRegistry default device registry
See Also:
setDefaultDeviceRegistry(DeviceRegistry)

setDefaultDeviceRegistry

public static final void setDefaultDeviceRegistry(DeviceRegistry defaultDeviceRegistry)
Sets the default device registry property.

Parameters:
defaultDeviceRegistry - The new property value (org.eclipse.soda.dk.device.DeviceRegistry).
See Also:
getDefaultDeviceRegistry()

exit

public void exit()
Exit.

Specified by:
exit in interface DeviceService
Overrides:
exit in class Container

finalize

protected void finalize()
                 throws java.lang.Throwable
Perform the finalize action method.

Overrides:
finalize in class Device
Throws:
- href="java.lang.Throwable.html">Throwable Thrown if the Throwable exception condition occurs.
java.lang.Throwable

getDefaultKey

public java.lang.String getDefaultKey()
Gets the default key (String) value.

Overrides:
getDefaultKey in class Device
Returns:
The default key (String) value.
See Also:
Container.getDefaultKey()

getDevice

public DeviceService getDevice(java.lang.String key)
Sets the devices property.

Specified by:
getDevice in interface DeviceRegistryService
Parameters:
key - The key (String) parameter.
Returns:
Results of the get device (DeviceService) value.

getDevices

protected DeviceService[] getDevices()
Gets the org.eclipse.soda.dk.device.service.DeviceService [] devices property value.

Returns:
Results of the get devices (DeviceService[]) value.
See Also:
setDevices(DeviceService[])

setDevices

protected void setDevices(DeviceService[] devices)
Sets the devices property.

Parameters:
devices - The new property value (org.eclipse.soda.dk.device.service.DeviceService[]).
See Also:
getDevices()

start

public void start()
Perform the start action method.

Specified by:
start in interface DeviceService
Overrides:
start in class Device
See Also:
DeviceService.start()

stop

public void stop()
Perform the stop action method.

Specified by:
stop in interface DeviceService
Overrides:
stop in class Device
See Also:
DeviceService.stop()

1.0.0

Copyright (c) 1999, 2007 IBM