Search in sources :

Example 66 with Services

use of org.apache.oozie.service.Services in project oozie by apache.

the class TestURIHandlerService method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    services = new Services();
    services.init();
}
Also used : Services(org.apache.oozie.service.Services)

Example 67 with Services

use of org.apache.oozie.service.Services in project oozie by apache.

the class TestEventQueue method setUp.

@Before
protected void setUp() throws Exception {
    super.setUp();
    services = new Services();
    Configuration conf = services.getConf();
    conf.set(Services.CONF_SERVICE_EXT_CLASSES, JMSAccessorService.class.getName() + "," + JMSTopicService.class.getName() + "," + EventHandlerService.class.getName() + "," + SLAService.class.getName());
    conf.setInt(EventHandlerService.CONF_BATCH_SIZE, 3);
    // this unit test is meant to
    conf.set(EventHandlerService.CONF_LISTENERS, "");
    // target queue operations only
    services.init();
}
Also used : Services(org.apache.oozie.service.Services) Configuration(org.apache.hadoop.conf.Configuration) JMSAccessorService(org.apache.oozie.service.JMSAccessorService) Before(org.junit.Before)

Example 68 with Services

use of org.apache.oozie.service.Services in project oozie by apache.

the class TestCompletedActionXCommand method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    services = new Services();
    services.init();
}
Also used : Services(org.apache.oozie.service.Services)

Example 69 with Services

use of org.apache.oozie.service.Services in project oozie by apache.

the class TestSignalXCommand method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    services = new Services();
    services.init();
    ConfigurationService.setBoolean(LiteWorkflowAppParser.VALIDATE_FORK_JOIN, false);
}
Also used : Services(org.apache.oozie.service.Services)

Example 70 with Services

use of org.apache.oozie.service.Services in project oozie by apache.

the class TestSignalXCommand method testSuspendPoints.

public void testSuspendPoints() throws Exception {
    ConfigurationService.setBoolean(SignalXCommand.FORK_PARALLEL_JOBSUBMISSION, true);
    _testSuspendPoints();
    services.destroy();
    services = new Services();
    services.init();
    ConfigurationService.setBoolean(SignalXCommand.FORK_PARALLEL_JOBSUBMISSION, false);
    _testSuspendPoints();
}
Also used : Services(org.apache.oozie.service.Services)

Aggregations

Services (org.apache.oozie.service.Services)247 JPAService (org.apache.oozie.service.JPAService)32 Configuration (org.apache.hadoop.conf.Configuration)21 Date (java.util.Date)17 CoordinatorJobBean (org.apache.oozie.CoordinatorJobBean)16 File (java.io.File)14 Before (org.junit.Before)14 XConfiguration (org.apache.oozie.util.XConfiguration)11 Path (org.apache.hadoop.fs.Path)10 ActionExecutorException (org.apache.oozie.action.ActionExecutorException)10 CoordinatorActionBean (org.apache.oozie.CoordinatorActionBean)8 EmbeddedServletContainer (org.apache.oozie.test.EmbeddedServletContainer)8 FileOutputStream (java.io.FileOutputStream)7 InputStream (java.io.InputStream)7 HashMap (java.util.HashMap)7 IOException (java.io.IOException)6 Properties (java.util.Properties)6 ActionService (org.apache.oozie.service.ActionService)6 StringWriter (java.io.StringWriter)5 WorkflowActionBean (org.apache.oozie.WorkflowActionBean)5