Examples of StopService()


Examples of org.camunda.bpm.container.impl.spi.PlatformServiceContainer.stopService()

  }

  public void performOperationStep(DeploymentOperation operationContext) {
    final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();

    serviceContainer.stopService(serviceName);
  }

}
View Full Code Here

Examples of org.camunda.bpm.container.impl.spi.PlatformServiceContainer.stopService()

    Set<String> jobExecutorServiceNames = serviceContainer.getServiceNames(ServiceTypes.JOB_EXECUTOR);

    for (String serviceName : jobExecutorServiceNames) {
      try {
        serviceContainer.stopService(serviceName);
      } catch(Exception e) {
        LOGGER.log(Level.WARNING, "Exception while stopping job executor service: "+e.getMessage(), e);
      }
    }
View Full Code Here

Examples of org.camunda.bpm.container.impl.spi.PlatformServiceContainer.stopService()

   
    final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
    final AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION);   
   
    // remove the service
    serviceContainer.stopService(ServiceTypes.PROCESS_APPLICATION, processApplication.getName());
  }

}
View Full Code Here

Examples of org.camunda.bpm.container.impl.spi.PlatformServiceContainer.stopService()

  protected void stopProcessEngine(String processEngineName, DeploymentOperation operationContext) {

    final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
    try {
      serviceContainer.stopService(ServiceTypes.PROCESS_ENGINE, processEngineName);

    } catch(Exception e) {
      LOGGER.log(Level.WARNING, "Could not stop managed process engine: "+e.getMessage(), e);

    }
View Full Code Here

Examples of org.camunda.bpm.container.impl.spi.PlatformServiceContainer.stopService()

  }

  public void performOperationStep(DeploymentOperation operationContext) {
    final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();

    serviceContainer.stopService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_EXECUTOR);

  }

}
View Full Code Here

Examples of org.jboss.cache.TreeCache.stopService()

   {
      TreeCache cache = (TreeCache) caches.get(id);
      if (cache != null)
      {
         try {
            cache.stopService();
            cache.destroyService();
            caches.remove(id);
         }
         catch (Exception e) {
            System.out.println("Exception stopping cache " + e.getMessage());
View Full Code Here

Examples of org.jboss.cache.TreeCache.stopService()

        Assert.assertEquals("value2", cache1.get(fqn, "key2"));
        Assert.assertNull("Should have been invalidated!", cache2.get(fqn));

        // clean up.
        cache1.stopService();
        cache2.stopService();
        cache1 = null;
        cache2 = null;
    }

    public void testUnnecessaryEvictions() throws Exception
View Full Code Here

Examples of org.jboss.cache.TreeCache.stopService()

        assertEquals("world", cache2.get(fqn2, "hello"));
        assertNull(cache1.get(fqn1, "hello"));
        assertNull(cache1.get(fqn2, "hello"));

        cache1.stopService();
        cache2.stopService();
        cache1 = null;
        cache2 = null;

    }
View Full Code Here

Examples of org.jboss.cache.TreeCache.stopService()

        TestingUtil.sleepThread(500)// give it time to broadcast the evict call
        Assert.assertNull("Should have been invalidated!", cache2.get(fqn));

        // clean up.
        cache1.stopService();
        cache2.stopService();
        cache1 = null;
        cache2 = null;
    }

View Full Code Here

Examples of org.jboss.cache.TreeCache.stopService()

        Assert.assertEquals("value2", cache1.get(fqn, "key2"));
        Assert.assertNull("Should not have committed", cache2.get(fqn));

        // clean up.
        cache1.stopService();
        cache2.stopService();
        cache1 = null;
        cache2 = 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.