org.objectweb.cjdbc.controller.virtualdatabase.protocol
Class NotifyCompletion

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedRequest
      extended byorg.objectweb.cjdbc.controller.virtualdatabase.protocol.NotifyCompletion
All Implemented Interfaces:
java.io.Serializable

public class NotifyCompletion
extends DistributedRequest

This class defines a NotifyCompletion command that is sent to controllers that have failed to notify of the success or failure of the request execution.

Version:
1.0
Author:
Emmanuel Cecchet
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  boolean success
           
 
Fields inherited from class org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedRequest
request
 
Constructor Summary
NotifyCompletion(AbstractRequest request, boolean success)
          Creates a new NotifyCompletion object
 
Method Summary
 java.lang.Object executeScheduledRequest(DistributedRequestManager drm)
          Code to be executed by the distributed request manager receiving the request.
 void scheduleRequest(DistributedRequestManager drm)
          Schedule the request.
 
Methods inherited from class org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedRequest
getRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

success

private boolean success
Constructor Detail

NotifyCompletion

public NotifyCompletion(AbstractRequest request,
                        boolean success)
Creates a new NotifyCompletion object

Parameters:
request - the request that completed
success - true if completion is successful, false if it is a failure
Method Detail

scheduleRequest

public final 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 final 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.