Examples of LogSyncTask


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

            properties.put(SchedulerConstants.SCHEDULER_DESCRIPTION_KEY, "Task that synchronizes log store with id=" + name + " on the gateway and server");
            properties.put(SchedulerConstants.SCHEDULER_NAME_KEY, name);
            properties.put(SchedulerConstants.SCHEDULER_RECIPE, "2000");
            Component sync = m_manager.createComponent()
                .setInterface(Runnable.class.getName(), properties)
                .setImplementation(new LogSyncTask(name))
                .add(createServiceDependency().setService(LogStore.class, "(&("+Constants.OBJECTCLASS+"="+LogStore.class.getName()+")(name=" + name + "))").setRequired(true))
                .add(createServiceDependency().setService(Discovery.class).setRequired(true))
                .add(createServiceDependency().setService(Identification.class).setRequired(true))
                .add(createServiceDependency().setService(LogService.class).setRequired(false));
View Full Code Here

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

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

            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

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

            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
Copyright © 2018 www.massapi.com. 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.