Public Member Functions | |
DatabaseProxyImpl (ACSPlug plug) throws RemoteException | |
void | submit (Request req) throws RemoteException |
void | stop (Request req) throws RemoteException |
void | setRequestResponseFactory (RequestResponseFactory rrf) |
void | setRequestResponseCallback (RequestCallback cb) |
void | resume () |
void | suspend () |
RequestCallback | getRequestCallback () |
RequestResponseFactory | getRequestResponseFactory () |
Identifier | getIdentifier () |
void | setDebug (boolean value) |
boolean | isDebug () |
Static Public Member Functions | |
String | mapCharacteristicName (String characteristic) |
void | handleCompletion (Identifiable verifier, Request request, Completion completion, Response response) |
Static Public Attributes | |
final int | NO_ERROR_TYPE = 0 |
final int | NO_ERROR_CODE = 0 |
final String | NAME_HISTORY = "history" |
final String | NAME_CHARACTERISTICS = "find_characteristic" |
final String | NAME_GET_CHARACTERISTIC = "get_characteristic_by_name" |
Protected Member Functions | |
boolean | checkURI (final URI uri) |
Private Member Functions | |
void | process (Request request) throws RemoteException, RequestException |
void | processPropertyRequest (Request request, NarrowCORBAProxy proxy, String path, String query) throws RemoteException, RequestException |
void | processMonitorQuery (Request request, NarrowCORBAProxy proxy, TypelessProperty property) throws RemoteException, RequestException |
void | processHistoryQuery (Request request, NarrowCORBAProxy proxy, TypelessProperty property) throws RemoteException, RequestException |
void | processGetCharacteristicQuery (Request request, NarrowCORBAProxy proxy, TypelessProperty property, String path, String query) throws RemoteException, RequestException |
void | processGetCharacteristicsQuery (Request request, NarrowCORBAProxy proxy, String path) throws RemoteException, RequestException |
void | processGetQuery (Request request, NarrowCORBAProxy proxy, String path, String query, TypelessProperty property) throws RemoteException, RequestException |
void | processSetQuery (Request request, NarrowCORBAProxy proxy, String path, String query, TypelessProperty property) throws RemoteException, RequestException |
void | processInternal (Request request, NarrowCORBAProxy proxy, String path, String query) throws RemoteException, RequestException |
Static Private Member Functions | |
Object | extractAny (Any value) |
Private Attributes | |
ACSPlug | plug = null |
Identifier | id = null |
boolean | debug = false |
String | schemeString = null |
RequestResponseFactory | rrf = null |
RequestCallback | cb = null |
Static Private Attributes | |
final String | GET_SYNC = "get_sync" |
final String | SET_SYNC = "set_sync" |
final long | MONITOR_TIMEOUT_MULTIPLIER = 2 |
|
Creates a new instance of the database implementation. This is called automatically by the plug which passes itself as a parameter.
|
|
Checks the protocol prefix in URI syntax., taking into account the value
|
|
Extract Java primitive from
|
|
Returns identifier for this class.
|
|
Returns the request callback through which the simulated objects may inform the Abeans Engine about the new responses or the change of status of the request.
|
|
Returns the factory for producing new responses.
|
|
Check completion for error condition, if found error condition with full stack trace is set.
|
|
Returns the value of debug flag.
|
|
Maps Abeans to ACS characteristic name
|
|
Processes the request. The database cannot process any request directly, all requests must be directed either to the query child of the database or to the container child. The processing starts by resolving the target contained within the request. If the resolution succeeds, the request is forwarded to the resolved simulated entity. Otherwise the processing fails.
|
|
Processes the get characteristic query request. The request is first started, the context producer is checked. The request is then checked for correctness. A new response is created with the type defined by the type of property to which this query belongs. The result is inserted into the response, which is submitted back to the database. Because the request is single, this completes the request.
|
|
Processes the get characteristics query request (queries for all the characteristics names of the object). The request is first started, the context producer is checked. The request is then checked for correctness. A new response is created with the type defined by the type of property to which this query belongs. The result is inserted into the response, which is submitted back to the database. Because the request is single, this completes the request.
|
|
Processes the get characteristic query request. The request is first started, the context producer is checked. The request is then checked for correctness. A new response is created with the type defined by the type of property to which this query belongs. The result is inserted into the response, which is submitted back to the database. Because the request is single, this completes the request.
|
|
Processes the history query request.
|
|
Processes the request. The request is first started, the context producer is checked. The request is then checked for correctness. A new response is created with the type defined by the type of property to which this query belongs. The result is inserted into the response, which is submitted back to the database. Because the request is single, this completes the request.
|
|
Processes the monitor query request.
|
|
Processes the property query request. The request is first started, the context producer is checked. The request is then checked for correctness. A new response is created with the type defined by the type of property to which this query belongs. The result is inserted into the response, which is submitted back to the database. Because the request is single, this completes the request.
|
|
Processes the set characteristic query request. The request is first started, the context producer is checked. The request is then checked for correctness. A new response is created with the type defined by the type of property to which this query belongs. The result is inserted into the response, which is submitted back to the database. Because the request is single, this completes the request.
|
|
|
|
Sets the debug attribute for this instance. If
|
|
This method is invoked by the plug to set the request callback for this database implementation.
|
|
This method is invoked by the plug to set the request-response factory for this database implementation.
|
|
Stops a repeated request. The list of active requests that have scheduled tasks is first searched for the request; when found, the corresponding request task is cancelled.
|
|
This method delegates directly to the
|
|
|
|
|
|
|
|
Synch. get query name. |
|
|
|
The multiplier with which the monitor request task timer will be multiplied to determine which timeout delta interval, in milliseconds, is to be set in the monitor query request. If this is 0, the monitor query requests will not be timed. |
|
Characteristics query name. |
|
Get characteristic query name. |
|
History query name. |
|
Completion code that indicates absence of errors. |
|
Completion type that indicates absence of errors. |
|
|
|
|
|
|
|
Synch. set query name. |