Package org.apache.ace.log.target.task

Examples of org.apache.ace.log.target.task.LogSyncTask


    private static final String TARGET_ID = "gwID";
    private LogSyncTask m_task;

    @BeforeMethod(alwaysRun = true)
    protected void setUp() throws Exception {
        m_task = new LogSyncTask("testlog");
        TestUtils.configureObject(m_task, LogService.class);
        TestUtils.configureObject(m_task, Identification.class, new Identification() {
            public String getID() {
                return TARGET_ID;
            }
View Full Code Here


            properties.put(SchedulerConstants.SCHEDULER_NAME_KEY, schedulerName);
            properties.put(SchedulerConstants.SCHEDULER_DESCRIPTION_KEY, description);
            properties.put(SchedulerConstants.SCHEDULER_RECIPE, "2000");
            Component sync = m_manager.createComponent()
                .setInterface(Runnable.class.getName(), properties)
                .setImplementation(new LogSyncTask(name))
                .add(m_manager.createServiceDependency().setService(ConnectionFactory.class).setRequired(true))
                .add(m_manager.createServiceDependency().setService(LogStore.class, filterString).setRequired(true))
                .add(m_manager.createServiceDependency().setService(Discovery.class, filterForDiscovery).setRequired(true))
                .add(m_manager.createServiceDependency().setService(Identification.class, filterForIdentification).setRequired(true))
                .add(m_manager.createServiceDependency().setService(LogService.class).setRequired(false));
View Full Code Here

            properties.put(SchedulerConstants.SCHEDULER_NAME_KEY, schedulerName);
            properties.put(SchedulerConstants.SCHEDULER_DESCRIPTION_KEY, description);
            properties.put(SchedulerConstants.SCHEDULER_RECIPE, "2000");
            Component sync = m_manager.createComponent()
                .setInterface(Runnable.class.getName(), properties)
                .setImplementation(new LogSyncTask(name))
                .add(m_manager.createServiceDependency().setService(ConnectionFactory.class).setRequired(true))
                .add(m_manager.createServiceDependency().setService(LogStore.class, filterString).setRequired(true))
                .add(m_manager.createServiceDependency().setService(Discovery.class, filterForDiscovery).setRequired(true))
                .add(m_manager.createServiceDependency().setService(Identification.class, filterForIdentification).setRequired(true))
                .add(m_manager.createServiceDependency().setService(LogService.class).setRequired(false));
View Full Code Here

TOP

Related Classes of org.apache.ace.log.target.task.LogSyncTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.