org.objectweb.cjdbc.controller.virtualdatabase.protocol
Class ExecWriteRequestWithKeys
java.lang.Object
org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedRequest
org.objectweb.cjdbc.controller.virtualdatabase.protocol.ExecWriteRequestWithKeys
- All Implemented Interfaces:
- java.io.Serializable
- public class ExecWriteRequestWithKeys
- extends DistributedRequest
Execute a write request between several controllers.
- Version:
- 1.0
- Author:
- Emmanuel Cecchet
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
numberOfEnabledBackends
private int numberOfEnabledBackends
ExecWriteRequestWithKeys
public ExecWriteRequestWithKeys(AbstractWriteRequest request)
- Parameters:
request
- write request to execute
scheduleRequest
public void scheduleRequest(DistributedRequestManager drm)
throws java.sql.SQLException
- Description copied from class:
DistributedRequest
- Schedule the request. This method blocks until the request is scheduled.
- Specified by:
scheduleRequest
in class DistributedRequest
- Parameters:
drm
- a distributed request manager
- Throws:
java.sql.SQLException
- if an error occurs.- See Also:
DistributedRequest.scheduleRequest(org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager)
executeScheduledRequest
public java.lang.Object executeScheduledRequest(DistributedRequestManager drm)
throws java.sql.SQLException
- Description copied from class:
DistributedRequest
- Code to be executed by the distributed request manager receiving the
request.
- Specified by:
executeScheduledRequest
in class DistributedRequest
- Parameters:
drm
- a distributed request manager
- Returns:
- an Object to be sent back to the caller
- Throws:
java.sql.SQLException
- if an error occurs.- See Also:
DistributedRequest.executeScheduledRequest(org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager)
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.