00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 package org.objectweb.proactive.core.body.ft.servers.recovery;
00032
00033 import java.rmi.Remote;
00034 import java.rmi.RemoteException;
00035
00036 import org.objectweb.proactive.core.UniqueID;
00037 import org.objectweb.proactive.core.body.ft.servers.util.ActiveQueueJob;
00038 import org.objectweb.proactive.core.body.ft.servers.util.JobBarrier;
00039
00040
00047 public interface RecoveryProcess extends Remote {
00048
00052 public final static int FAILED = 0;
00053 public final static int RECOVERING = 1;
00054 public final static int RUNNING = 2;
00055
00061 public void register(UniqueID id) throws RemoteException;
00062
00068 public void unregister(UniqueID id) throws RemoteException;
00069
00074 public void failureDetected(UniqueID id) throws RemoteException;
00075
00082 public void updateState(UniqueID id, int state) throws RemoteException;
00083
00089 public void submitJob(ActiveQueueJob job) throws RemoteException;
00090
00097 public JobBarrier submitJobWithBarrier(ActiveQueueJob job)
00098 throws RemoteException;
00099
00105 public int getSystemSize() throws RemoteException;
00106
00110 public void initialize() throws RemoteException;
00111 }