use of com.axway.ats.agent.webapp.client.executors.LocalExecutor in project ats-framework by Axway.
the class EnvironmentCleanupClient method restoreAllComponents.
/**
* Restore the environment for all components
*
* @throws AgentException
*/
@PublicAtsApi
public void restoreAllComponents() throws AgentException {
log.info("Executing restore for all registered components");
if (atsAgent.equals(LOCAL_JVM)) {
LocalExecutor localExecutor = new LocalExecutor();
localExecutor.restoreAll(null);
} else {
RemoteExecutor remoteExecutor = new RemoteExecutor(atsAgent);
remoteExecutor.restoreAll(null);
}
log.info("Finished executing restore for all registered components");
}
use of com.axway.ats.agent.webapp.client.executors.LocalExecutor in project ats-framework by Axway.
the class Test_LocalExecutor method cleanAllPositive.
@Test
public void cleanAllPositive() throws Exception {
expect(EnvironmentHandler.getInstance()).andReturn(mockEnvironmentHandler);
mockEnvironmentHandler.restoreAll(null);
replayAll();
LocalExecutor localExecutor = new LocalExecutor();
localExecutor.restoreAll(null);
}
use of com.axway.ats.agent.webapp.client.executors.LocalExecutor in project ats-framework by Axway.
the class Test_LocalExecutor method backupAllPositive.
@Test
public void backupAllPositive() throws Exception {
expect(EnvironmentHandler.getInstance()).andReturn(mockEnvironmentHandler);
mockEnvironmentHandler.backupAll(null);
replayAll();
LocalExecutor localExecutor = new LocalExecutor();
localExecutor.backupAll(null);
}
use of com.axway.ats.agent.webapp.client.executors.LocalExecutor in project ats-framework by Axway.
the class Test_LocalExecutor method waitUntilAllQueuesFinishPositive.
@Test
public void waitUntilAllQueuesFinishPositive() throws Exception {
expect(MultiThreadedActionHandler.getInstance(ThreadsPerCaller.getCaller())).andReturn(mockMultiThreadedActionHandler);
mockMultiThreadedActionHandler.waitUntilAllQueuesFinish();
replayAll();
LocalExecutor localExecutor = new LocalExecutor();
localExecutor.waitUntilQueueFinish();
}
use of com.axway.ats.agent.webapp.client.executors.LocalExecutor in project ats-framework by Axway.
the class Test_LocalExecutor method cleanPositive.
@Test
public void cleanPositive() throws Exception {
expect(EnvironmentHandler.getInstance()).andReturn(mockEnvironmentHandler);
mockEnvironmentHandler.restore(TEST_COMPONENT_NAME, null, null);
replayAll();
LocalExecutor localExecutor = new LocalExecutor();
localExecutor.restore(TEST_COMPONENT_NAME, null, null);
}
Aggregations