1 37 38 package net.sourceforge.cruisecontrol.distributed; 39 40 import java.rmi.Remote ; 41 import java.rmi.RemoteException ; 42 import java.util.Map ; 43 import java.util.Date ; 44 45 import org.jdom.Element; 46 47 public interface BuildAgentService extends Remote { 48 49 public Element doBuild(Element nestedBuilderElement, Map projectProperties, 50 Map distributedAgentProperties) throws RemoteException ; 51 52 public String getMachineName() throws RemoteException ; 53 54 55 public Date getDateStarted() throws RemoteException ; 56 57 public void claim() throws RemoteException ; 58 59 public Date getDateClaimed() throws RemoteException ; 60 61 public boolean isBusy() throws RemoteException ; 62 63 64 public String getModule() throws RemoteException ; 65 66 public boolean resultsExist(String resultsType) throws RemoteException ; 67 68 public byte[] retrieveResultsAsZip(String resultsType) throws RemoteException ; 69 70 public void clearOutputFiles() throws RemoteException ; 71 72 public void kill(boolean afterBuildFinished) throws RemoteException ; 73 74 public void restart(boolean afterBuildFinished) throws RemoteException ; 75 76 public boolean isPendingKill() throws RemoteException ; 77 78 public Date getPendingKillSince() throws RemoteException ; 79 80 public boolean isPendingRestart() throws RemoteException ; 81 82 public Date getPendingRestartSince() throws RemoteException ; 83 84 public String asString() throws RemoteException ; 85 } 86 | Popular Tags |