1 24 25 package org.objectweb.cjdbc.controller.virtualdatabase.protocol; 26 27 import java.sql.SQLException ; 28 29 import org.objectweb.cjdbc.common.sql.AbstractRequest; 30 import org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager; 31 32 40 public class NotifyCompletion extends DistributedRequest 41 { 42 private static final long serialVersionUID = -6229483423511152134L; 43 44 private boolean success; 45 46 52 public NotifyCompletion(AbstractRequest request, boolean success) 53 { 54 super(request); 55 this.success = success; 56 } 57 58 61 public final void scheduleRequest(DistributedRequestManager drm) 62 throws SQLException 63 { 64 } 65 66 69 public final Object executeScheduledRequest(DistributedRequestManager drm) 70 throws SQLException 71 { 72 drm.completeFailedOnAllBackends(request, success); 73 return null; 74 } 75 76 } | Popular Tags |