Examples of ManagementService

  • org.apache.ode.axis2.service.ManagementService
    Axis2 wrapper for process and instance management interfaces.
  • org.camunda.bpm.engine.ManagementService
    Service for admin and maintenance operations on the process engine. These operations will typically not be used in a workflow driven application, but are used in for example the operational console. @author Tom Baeyens @author Joram Barrez @author Falko Menge @author Thorben Lindhauer
  • org.hornetq.core.server.management.ManagementService
    @author Jeff Mesnil @version $Revision$

  • Examples of com.cloud.server.ManagementService

            return result;
          }     
          // Else if there is only a zoneId defined, get a list of all vmware clusters
          // in the zone, and then for each cluster, pull the VSM and prepare a list.
          if (zoneId != null && zoneId.longValue() != 0) {
            ManagementService ref = cmd.getMgmtServiceRef();     
            List<? extends Cluster> clusterList = ref.searchForClusters(zoneId, cmd.getStartIndex(), cmd.getPageSizeVal(), "VMware");
         
            if (clusterList.size() == 0) {
              throw new CloudRuntimeException("No VMWare clusters found in the specified zone!");
            }
            // Else, iterate through each vmware cluster, pull its VSM if it has one, and add to the list.
    View Full Code Here

    Examples of com.founder.fix.fixflow.core.ManagementService

      }
     
      public void suspendTask(Map<String,Object> filter) throws Exception{
        ProcessEngine engine = getTransactionProcessEngine(filter
            .get("userId"));
        ManagementService mservice = engine.getManagementService();
        String taskId = StringUtil.getString(filter.get("taskId"));
        try{
          mservice.suspendTask(taskId);
        }finally{
          closeProcessEngine();
        }
      }
    View Full Code Here

    Examples of com.gemstone.gemfire.management.ManagementService

        logger.info("Starting Cache Server");
        @SuppressWarnings("resource")
        FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(path);
        context.registerShutdownHook();
        Cache cache = context.getBean(Cache.class);
        ManagementService ms = ManagementService.getExistingManagementService(cache);
        CacheServerMXBean cacheServerManager = ms.getLocalCacheServerMXBean(port);
        if (!cacheServerManager.isRunning()) {
          System.out.println("failed to start cache server ");
          System.exit(1);
        }
        System.out.println("cache server running");
    View Full Code Here

    Examples of com.hazelcast.jmx.ManagementService

            node.start();
            if (!node.isActive()) {
                node.connectionManager.shutdown();
                throw new IllegalStateException("Node failed to start!");
            }
            managementService = new ManagementService(this);

            if (configuredManagedContext != null) {
                if (configuredManagedContext instanceof HazelcastInstanceAware) {
                    ((HazelcastInstanceAware) configuredManagedContext).setHazelcastInstance(this);
                }
    View Full Code Here

    Examples of net.sf.ehcache.management.ManagementService

        MBeanServer mBeanServer = initMBeanServer();
        CacheManager cacheManager = getCacheManager();

        if (cacheManager != null) {

          ManagementService jmxService = new ManagementService(cacheManager, mBeanServer, true, true, true, true);
          repo.registerLifecycle(new CacheManagerLifecycle(jmxService));

        }

        return mBeanServer;
    View Full Code Here

    Examples of org.activiti.engine.ManagementService

    public class ManagementServiceTest {
      @Rule public ActivitiRule activitiRule = new ActivitiRule();

      @Test
      public void testTableCount() {
        ManagementService managementService = activitiRule.getManagementService();
        Map<String, Long> tableCount = managementService.getTableCount();

        assertEquals(new Long(4), tableCount.get("ACT_GE_PROPERTY"));
        assertEquals(new Long(0), tableCount.get("ACT_GE_BYTEARRAY"));
        assertEquals(new Long(0), tableCount.get("ACT_RE_DEPLOYMENT"));
        assertEquals(new Long(0), tableCount.get("ACT_RU_EXECUTION"));
    View Full Code Here

    Examples of org.activiti.engine.ManagementService

        assertEquals(new Long(0), tableCount.get("ACT_RU_IDENTITYLINK"));
      }

      @Test
      public void testGetTableMetaData() {
        ManagementService managementService = activitiRule.getManagementService();
        TableMetaData tableMetaData = managementService.getTableMetaData("ACT_RU_TASK");
        assertEquals(tableMetaData.getColumnNames().size(), tableMetaData.getColumnTypes().size());
        assertEquals(15, tableMetaData.getColumnNames().size());

        int assigneeIndex = tableMetaData.getColumnNames().indexOf("ASSIGNEE_");
        int createTimeIndex = tableMetaData.getColumnNames().indexOf("CREATE_TIME_");
    View Full Code Here

    Examples of org.activiti.engine.ManagementService

        ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
        RuntimeService runtimeService = processEngine.getRuntimeService();
        RepositoryService repositoryService = processEngine.getRepositoryService();

        TaskService taskService = processEngine.getTaskService();
        ManagementService managementService = processEngine.getManagementService();
        IdentityService identityService = processEngine.getIdentityService();
        HistoryService historyService = processEngine.getHistoryService();
        FormService formService = processEngine.getFormService();

        Map<String, Object> variableMap = new HashMap<String, Object>();
    View Full Code Here

    Examples of org.apache.derby.iapi.services.jmx.ManagementService

                    }
                  );
        clientThread.start();
           
            // Now that we are up and running, register any MBeans
            ManagementService mgmtService = ((ManagementService)
                    Monitor.getSystemModule(Module.JMX));
           
            final Object versionMBean = mgmtService.registerMBean(
                               new Version(
                                       getNetProductVersionHolder(),
                                       SystemPermission.SERVER),
                               VersionMBean.class,
                               "type=Version,jar=derbynet.jar");
            final Object networkServerMBean = mgmtService.registerMBean(
                                new NetworkServerMBeanImpl(this),
                                NetworkServerMBean.class,
                                "type=NetworkServer");
                         
        try {
          // wait until we are told to shutdown or someone sends an InterruptedException
              synchronized(shutdownSync) {
                  try {
              shutdownSync.wait();
                  }
                  catch (InterruptedException e)
                  {
                      shutdown = true;
                  }
              }
             
              try {
                  AccessController.doPrivileged(
                          new PrivilegedAction() {
                              public Object run()  {
                              // Need to interrupt the memcheck thread if it is sleeping.
                                  if (mc != null)
                                      mc.interrupt();

                                  //interrupt client thread
                                  clientThread.interrupt();

                                  return null;
                             }
                          });
              } catch (Exception exception) {
                consolePrintAndIgnore("DRDA_UnexpectedException.S", exception, true);
              }
         
           // Close out the sessions
           synchronized(sessionTable) {
             for (Enumeration e = sessionTable.elements(); e.hasMoreElements(); )
             { 
               Session session = (Session) e.nextElement();
               try {
                 session.close();
               } catch (Exception exception) {
                     consolePrintAndIgnore("DRDA_UnexpectedException.S", exception, true);
               }
             }
           }

          synchronized (threadList)
          {
             //interupt any connection threads still active
             for (int i = 0; i < threadList.size(); i++)
             {
               try {
                 final DRDAConnThread threadi = (DRDAConnThread)threadList.get(i);
                        
                  threadi.close();
                 AccessController.doPrivileged(
                       new PrivilegedAction() {
                         public Object run() {
                           threadi.interrupt();
                           return null;
                         }
                       });
               } catch (Exception exception) {
                     consolePrintAndIgnore("DRDA_UnexpectedException.S", exception, true);
               }
             }
             threadList.clear();
          }
            
            // close the listener socket
            try{
               serverSocket.close();
            }catch(IOException e){
            consolePropertyMessage("DRDA_ListenerClose.S", true);
            } catch (Exception exception) {
                consolePrintAndIgnore("DRDA_UnexpectedException.S", exception, true);
            }

          // Wake up those waiting on sessions, so
          // they can close down
            try{
            synchronized (runQueue) {
              runQueue.notifyAll();
           
            } catch (Exception exception) {
                consolePrintAndIgnore("DRDA_UnexpectedException.S", exception, true);
            }
             
              // And now unregister any MBeans.
            try {
                mgmtService.unregisterMBean(versionMBean);
                mgmtService.unregisterMBean(networkServerMBean);
            } catch (Exception exception) {
                consolePrintAndIgnore("DRDA_UnexpectedException.S", exception, true);
            }

          if (shutdownDatabasesOnShutdown) {
    View Full Code Here

    Examples of org.apache.derby.iapi.services.jmx.ManagementService

                    }
                  );
        clientThread.start();
           
            // Now that we are up and running, register any MBeans
            ManagementService mgmtService = ((ManagementService)
                    Monitor.getSystemModule(Module.JMX));
           
            final Object versionMBean = mgmtService.registerMBean(
                               new Version(
                                       getNetProductVersionHolder(),
                                       SystemPermission.SERVER),
                               VersionMBean.class,
                               "type=Version,jar=derbynet.jar");
            final Object networkServerMBean = mgmtService.registerMBean(
                                new NetworkServerMBeanImpl(this),
                                NetworkServerMBean.class,
                                "type=NetworkServer");
                         
        // wait until we are told to shutdown or someone sends an InterruptedException
            synchronized(shutdownSync) {
                try {
            shutdownSync.wait();
                }
                catch (InterruptedException e)
                {
                    shutdown = true;
                }
            }
           
            AccessController.doPrivileged(
                    new PrivilegedAction() {
                        public Object run()  {
                        // Need to interrupt the memcheck thread if it is sleeping.
                            if (mc != null)
                                mc.interrupt();

                            //interrupt client thread
                            clientThread.interrupt();

                            return null;
                        }
                    });
       
         // Close out the sessions
         synchronized(sessionTable) {
           for (Enumeration e = sessionTable.elements(); e.hasMoreElements(); )
           { 
             Session session = (Session) e.nextElement();
             session.close();
           }
         }

        synchronized (threadList)
        {
           //interupt any connection threads still active
           for (int i = 0; i < threadList.size(); i++)
           {
            final DRDAConnThread threadi = (DRDAConnThread)threadList.get(i);
                   
             threadi.close();
            AccessController.doPrivileged(
                  new PrivilegedAction() {
                    public Object run() {
                      threadi.interrupt();
                      return null;
                    }
                  });
           }
           threadList.clear();
        }
          
          // close the listener socket
          try{
             serverSocket.close();
          }catch(IOException e){
          consolePropertyMessage("DRDA_ListenerClose.S", true);
          }


        // Wake up those waiting on sessions, so
        // they can close down
        synchronized (runQueue) {
          runQueue.notifyAll();
       
           
            // And now unregister any MBeans.
            mgmtService.unregisterMBean(versionMBean);
            mgmtService.unregisterMBean(networkServerMBean);

        if (shutdownDatabasesOnShutdown) {

          // Shutdown Derby
          try {
    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.