Examples of InstanceServiceImpl


Examples of org.apache.agila.impl.memory.InstanceServiceImpl

     * @see TestCase#setUp()
     */
    protected void setUp() throws Exception {
        super.setUp();
        // create the basic services
        instanceService = new InstanceServiceImpl();
        tokenService = new TokenServiceImpl();
        bpService = new BusinessProcessServiceImpl();
        timerService = new TimerServiceImpl();
        taskService = new TaskServiceImpl();

View Full Code Here

Examples of org.apache.agila.impl.memory.InstanceServiceImpl

        taskService.setTaskStatusForInstance(instanceID, Task.TASK_INCOMPLETE, Task.TASK_COMPLETE);
    }

    public void setUp() throws Exception {
        tokenService = new TokenServiceImpl();
        eiSvc = new InstanceServiceImpl();
        graphManager = new BusinessProcessServiceImpl();
        taskService = new TaskServiceImpl();
        timerService = new TimerServiceImpl();
        notificationService = new NotificationServiceImpl();
View Full Code Here

Examples of org.apache.agila.impl.memory.InstanceServiceImpl

    public void testToken()
    {

        TokenService tokenService = new TokenServiceImpl();
        InstanceServiceImpl eiSvc = new InstanceServiceImpl();
        BusinessProcessServiceImpl graphManager = new BusinessProcessServiceImpl();
        TaskServiceImpl taskService = new TaskServiceImpl();
        TimerServiceImpl timerService = new TimerServiceImpl();
        LogService logger = new StdoutLogService();
        MessageProcessor impl = new MessageProcessor();

        impl.setTaskService(taskService);
        impl.setTimerService(timerService);
        impl.setExecutionInstanceService(eiSvc);
        impl.setTokenService(tokenService);
        impl.setBusinessProcessService(graphManager);
        impl.setLogService(logger);
        impl.setNotificationService(new NotificationServiceImpl());

        QueueServiceImpl qs = new QueueServiceImpl(impl);

        timerService.setQueueService(qs);

        impl.setQueueService(qs);

        taskService.setBusinessProcessService(graphManager);

        eiSvc.setLogService(logger);
        eiSvc.setBusinessProcessService(graphManager);
        eiSvc.setQueueService(qs);
        eiSvc.setTokenService(tokenService);

        /*
         * now start the message pump for processing since we are all ready
         */

 
View Full Code Here

Examples of org.apache.agila.impl.memory.InstanceServiceImpl

        return( instanceID );
    }

    public void setUp() throws Exception {
        tokenService = new TokenServiceImpl();
        instanceService = new InstanceServiceImpl();
        businessProcessService = new BusinessProcessServiceImpl();
        taskService = new TaskServiceImpl();
        timerService = new TimerServiceImpl();
        notifyService = new NotificationServiceImpl();
        logger = new StdoutLogService();
View Full Code Here

Examples of org.apache.agila.impl.memory.InstanceServiceImpl

    public void init() throws ServletException {

        super.init();

        this.tokenService = new TokenServiceImpl();
        this.eiSvc = new InstanceServiceImpl();
        this.graphManager = new BusinessProcessServiceImpl();
        this.taskService = new TaskServiceImpl();
        this.timerService = new TimerServiceImpl();
        this.notifyService = new NotificationServiceImpl();
View Full Code Here

Examples of org.apache.agila.impl.memory.InstanceServiceImpl

        /*
         * create all services.  There is a dependency order...
         */

        TokenService tokenService = new TokenServiceImpl();
        InstanceService eiSvc = new InstanceServiceImpl();
        BusinessProcessServiceImpl graphManager = new BusinessProcessServiceImpl();
        TaskService taskService = new TaskServiceImpl();
        TimerServiceImpl timerService = new TimerServiceImpl();

        MessageProcessor impl = new MessageProcessor();
View Full Code Here

Examples of org.apache.agila.impl.memory.InstanceServiceImpl

        throws ServletException {

        super.init();

        this.tokenService = new TokenServiceImpl();
        this.eiSvc = new InstanceServiceImpl();
        this.graphManager = new BusinessProcessServiceImpl();
        this.taskService = new TaskServiceImpl();
        this.timerService = new TimerServiceImpl();

        this.impl = new MessageProcessor();
View Full Code Here

Examples of org.apache.karaf.instance.core.internal.InstanceServiceImpl

        if (!dap.prepare(command, null, params)) {
            return;
        }

        InstanceServiceImpl instanceService = new InstanceServiceImpl();
        instanceService.setStorageLocation(storageFile);
        command.setInstanceService(instanceService);
        command.execute(null);
    }
View Full Code Here

Examples of org.apache.karaf.instance.core.internal.InstanceServiceImpl

        try {
            InstanceCommandSupport mockCommand = EasyMock.createStrictMock(InstanceCommandSupport.class);
            mockCommand.setInstanceService((InstanceService) EasyMock.anyObject());
            EasyMock.expectLastCall().andAnswer(new IAnswer<Object>() {
                public Object answer() throws Throwable {
                    InstanceServiceImpl instanceService = (InstanceServiceImpl) EasyMock.getCurrentArguments()[0];
                    assertEquals(tempFile, instanceService.getStorageLocation());
                    instanceServices.add(instanceService);
                    return null;
                }
            });
           
            EasyMock.expect(mockCommand.execute(null)).andAnswer(new IAnswer<Object>() {
                public Object answer() throws Throwable {
                    // The Instances Service should be initialized at this point.
                    // One way to find this out is by reading out the port number
                    InstanceServiceImpl instanceService = instanceServices.get(0);
                    Field sshField = InstanceServiceImpl.class.getDeclaredField("defaultSshPortStart");
                    sshField.setAccessible(true);
                    assertEquals(1302, sshField.get(instanceService));
                    Field rmiRegistryField = InstanceServiceImpl.class.getDeclaredField("defaultRmiRegistryPortStart");
                    rmiRegistryField.setAccessible(true);
View Full Code Here

Examples of org.apache.karaf.instance.core.internal.InstanceServiceImpl

        if (!dap.prepare(command, null, params)) {
            return;
        }
               
        InstanceServiceImpl instanceService = new InstanceServiceImpl();
        instanceService.setStorageLocation(storageFile);
        instanceService.init();
        command.setInstanceService(instanceService);
        command.execute(null);
    }
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.