Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedRequest Class Reference

Inheritance diagram for org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedRequest:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 DistributedRequest (AbstractRequest request)
final AbstractRequest getRequest ()
abstract void scheduleRequest (DistributedRequestManager drm) throws SQLException
abstract Object executeScheduledRequest (DistributedRequestManager drm) throws SQLException

Protected Attributes

AbstractRequest request

Detailed Description

DistributedRequest is an abstract class that defines the interface for distributed execution of a request (horizontal scalability).

Author:
Emmanuel Cecchet
Version:
1.0

Definition at line 40 of file DistributedRequest.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedRequest.DistributedRequest AbstractRequest  request  ) 
 

Builds a new DistributedRequest object.

Parameters:
request request to execute

Definition at line 49 of file DistributedRequest.java.

00050   {
00051     this.request = request;
00052   }


Member Function Documentation

abstract Object org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedRequest.executeScheduledRequest DistributedRequestManager  drm  )  throws SQLException [pure virtual]
 

Code to be executed by the distributed request manager receiving the request.

Parameters:
drm a distributed request manager
Returns:
an Object to be sent back to the caller
Exceptions:
SQLException if an error occurs.

Implemented in org.objectweb.cjdbc.controller.virtualdatabase.protocol.CacheInvalidate, org.objectweb.cjdbc.controller.virtualdatabase.protocol.ExecReadRequest, org.objectweb.cjdbc.controller.virtualdatabase.protocol.ExecReadStoredProcedure, org.objectweb.cjdbc.controller.virtualdatabase.protocol.ExecWriteRequest, org.objectweb.cjdbc.controller.virtualdatabase.protocol.ExecWriteRequestWithKeys, org.objectweb.cjdbc.controller.virtualdatabase.protocol.ExecWriteStoredProcedure, and org.objectweb.cjdbc.controller.virtualdatabase.protocol.NotifyCompletion.

final AbstractRequest org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedRequest.getRequest  ) 
 

Returns the request value.

Returns:
Returns the request.

Definition at line 59 of file DistributedRequest.java.

00060   {
00061     return request;
00062   }

abstract void org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedRequest.scheduleRequest DistributedRequestManager  drm  )  throws SQLException [pure virtual]
 

Schedule the request. This method blocks until the request is scheduled.

Parameters:
drm a distributed request manager
Exceptions:
SQLException if an error occurs.

Implemented in org.objectweb.cjdbc.controller.virtualdatabase.protocol.CacheInvalidate, org.objectweb.cjdbc.controller.virtualdatabase.protocol.ExecReadRequest, org.objectweb.cjdbc.controller.virtualdatabase.protocol.ExecReadStoredProcedure, org.objectweb.cjdbc.controller.virtualdatabase.protocol.ExecWriteRequest, org.objectweb.cjdbc.controller.virtualdatabase.protocol.ExecWriteRequestWithKeys, org.objectweb.cjdbc.controller.virtualdatabase.protocol.ExecWriteStoredProcedure, and org.objectweb.cjdbc.controller.virtualdatabase.protocol.NotifyCompletion.


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:04:48 2005 for C-JDBC by  doxygen 1.3.9.1