Public Member Functions | |
DatabaseProxyImpl (CDBDALPlug 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 () |
void | destroy () |
Identifier | getIdentifier () |
void | cancelScheduled (RequestTask rt) |
void | setDebug (boolean value) |
boolean | isDebug () |
Static Public Attributes | |
final int | NO_ERROR_TYPE = 0 |
final int | NO_ERROR_CODE = 0 |
Protected Member Functions | |
boolean | checkURI (final URI uri) |
Package Functions | |
RequestTask | getTaskForRequest (Request req) |
Private Member Functions | |
void | process (Request request) throws RemoteException, RequestException |
void | processGetQuery (Request request, String path) throws RemoteException, RequestException |
Static Private Member Functions | |
String[] | getSubNodes (DAOProxy proxy) |
Private Attributes | |
Identifier | id = null |
boolean | debug = false |
String | schemeString = null |
RequestResponseFactory | rrf = null |
RequestCallback | cb = null |
ArrayList | timerTasks = new ArrayList(100) |
|
Creates a new instance of the database implementation. This is called automatically by the plug which passes itself as a parameter.
|
|
Cancels the existing scheduled task, used when the repeated requests are stopped.
|
|
Checks the protocol prefix in URI syntax., taking into account the value
|
|
First cancels all request tasks being scheduled, then delegates to super destroy. |
|
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.
|
|
Get all subnodes of the current proxy.
|
|
Returns a request that caused a request task to be scheduled in the database proxy implementation. Non-blocking repeated requests will usually cause such tasks to be generated.
|
|
Returns the value of debug flag.
|
|
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 quey 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 cencelled.
|
|
This method delegates directly to the
|
|
|
|
|
|
|
|
|
|
Completion code that indicates absence of errors. |
|
Completion type that indicates absence of errors. |
|
|
|
|
|
|