|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.jboss.dtf.testframework.coordinator2.Coordinator
public class Coordinator
Field Summary | |
---|---|
static java.lang.String |
COORDINATOR_NAME_SERVICE_NAME
|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
Coordinator()
|
Method Summary | |
---|---|
void |
addRunManager(RunManager r)
|
RunInformation[] |
getCurrentRunInformation()
Retrieve information about the current run in progress. |
static LoggingService |
getLoggingService()
|
static int |
getMaximumNumberOfManagers()
|
static int |
getMaximumNumberOfRetries()
|
static NameServiceInterface |
getNameService()
|
int |
getNumberOfManagersInUse()
|
static ProductRepositoryInterface |
getProductRepository()
|
SchedulerInterface |
getScheduler()
|
static ServiceRegisterInterface |
getServiceRegistry()
|
static void |
initialiseRegistry()
|
RunUID |
initiateRun(ScheduleInformation schedule,
boolean waitToComplete)
|
boolean |
isBusy()
Is this coordinator busy? |
RunUID |
isProductInUse(java.lang.String productId)
|
boolean |
isRunInProgress(RunUID runId)
Is this run in progress? |
static void |
main(java.lang.String[] args)
|
void |
restart()
Restart the coordinator |
static void |
RetrieveConfiguration()
Retrieves the configuration from the coordinator's configuration file |
void |
run(java.net.URL testDefsURL,
java.net.URL testSelectionsURL,
java.lang.String distributionList,
java.lang.String softwareVersion,
boolean waitToComplete)
Start a test run. |
void |
runComplete(RunManager runManager)
This method is called when the run manager has completed its task. |
void |
shutdown()
Shutdown the coordinator |
boolean |
stopRun(boolean waitForTestToComplete,
RunUID runId)
Stops the currently active run. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COORDINATOR_NAME_SERVICE_NAME
Constructor Detail |
---|
public Coordinator() throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public static NameServiceInterface getNameService()
public static ServiceRegisterInterface getServiceRegistry()
public static ProductRepositoryInterface getProductRepository()
public static int getMaximumNumberOfManagers()
public static int getMaximumNumberOfRetries()
public final int getNumberOfManagersInUse()
public final void addRunManager(RunManager r)
public boolean isRunInProgress(RunUID runId) throws java.rmi.RemoteException
CoordinatorInterface
isRunInProgress
in interface CoordinatorInterface
java.rmi.RemoteException
public final RunUID isProductInUse(java.lang.String productId)
public void restart() throws java.rmi.RemoteException
restart
in interface CoordinatorInterface
java.rmi.RemoteException
public void shutdown() throws java.rmi.RemoteException
shutdown
in interface CoordinatorInterface
java.rmi.RemoteException
public boolean stopRun(boolean waitForTestToComplete, RunUID runId) throws CoordinatorIdleException, java.rmi.RemoteException
stopRun
in interface CoordinatorInterface
waitForTestToComplete
- If this parameter is true then the run will stop once
the current test has finished. If false then the run will stop immediately.
java.rmi.RemoteException
CoordinatorIdleException
- If the coordinator isn't currently running any
tests then this exception will be thrown.public boolean isBusy() throws java.rmi.RemoteException
CoordinatorInterface
isBusy
in interface CoordinatorInterface
java.rmi.RemoteException
public void run(java.net.URL testDefsURL, java.net.URL testSelectionsURL, java.lang.String distributionList, java.lang.String softwareVersion, boolean waitToComplete) throws java.rmi.RemoteException, CoordinatorBusyException, CannotStartRunException
run
in interface CoordinatorInterface
testDefsURL
- A URL to the test definitions file.testSelectionsURL
- A URL to the test selections file.distributionList
- The email distribution list.softwareVersion
- The software version to log against.
java.rmi.RemoteException
CoordinatorBusyException
CannotStartRunException
public RunUID initiateRun(ScheduleInformation schedule, boolean waitToComplete) throws java.rmi.RemoteException, CoordinatorBusyException, CannotStartRunException
java.rmi.RemoteException
CoordinatorBusyException
CannotStartRunException
public SchedulerInterface getScheduler() throws java.rmi.RemoteException
getScheduler
in interface CoordinatorInterface
java.rmi.RemoteException
public RunInformation[] getCurrentRunInformation() throws CoordinatorIdleException, java.rmi.RemoteException
getCurrentRunInformation
in interface CoordinatorInterface
java.rmi.RemoteException
CoordinatorIdleException
- If the coordinator is not currently running any tests.public static void RetrieveConfiguration()
public void runComplete(RunManager runManager)
runComplete
in interface RunListener
runManager
- The run manager that has completedpublic static LoggingService getLoggingService()
public static void initialiseRegistry()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |