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 org.hornetq.core.server.management.ManagementService

        private JMSQueueAddJndiHandler() {
        }

        @Override
        protected void addJndiNameToControl(String toAdd, String resourceName, HornetQServer server, OperationContext context) {
            ManagementService mgmt = server.getManagementService();
            JMSQueueControl control = JMSQueueControl.class.cast(mgmt.getResource(ResourceNames.JMS_QUEUE + resourceName));
            try {
                control.addJNDI(toAdd);
            } catch (RuntimeException e) {
                throw e;
            } catch (Exception e) {
    View Full Code Here

    Examples of org.hornetq.core.server.management.ManagementService

            clone.setHornetQServerServiceController(hornetQServerServiceController);
            return clone;
        }

        private boolean hasAddressControl(PathElement element) {
            final ManagementService managementService = getManagementService();
            return managementService == null ? false : managementService.getResource(ResourceNames.CORE_ADDRESS + element.getValue()) != null;
        }
    View Full Code Here

    Examples of org.hornetq.core.server.management.ManagementService

            final ManagementService managementService = getManagementService();
            return managementService == null ? false : managementService.getResource(ResourceNames.CORE_ADDRESS + element.getValue()) != null;
        }

        private Set<String> getCoreAddressNames() {
            final ManagementService managementService = getManagementService();
            if (managementService == null) {
                return Collections.emptySet();
            } else {
                Set<String> result = new HashSet<String>();
                for (Object obj : managementService.getResources(AddressControl.class)) {
                    AddressControl ac = AddressControl.class.cast(obj);
                    result.add(ac.getAddress());
                }
                return result;
            }
    View Full Code Here

    Examples of org.hornetq.core.server.management.ManagementService

       public StompProtocolManager(final HornetQServer server, final List<Interceptor> interceptors)
       {
          this.server = server;
          this.executor = server.getExecutorFactory().getExecutor();
          ManagementService service = server.getManagementService();
          if (service != null)
          {
             //allow management message to pass
             destinations.add(service.getManagementAddress().toString());
             service.addNotificationListener(this);
          }
       }
    View Full Code Here

    Examples of org.hornetq.core.server.management.ManagementService

            clone.setHornetQServerServiceController(hornetQServerServiceController);
            return clone;
        }

        private boolean hasAddressControl(PathElement element) {
            final ManagementService managementService = getManagementService();
            return managementService == null ? false : managementService.getResource(ResourceNames.CORE_ADDRESS + element.getValue()) != null;
        }
    View Full Code Here

    Examples of org.hornetq.core.server.management.ManagementService

            final ManagementService managementService = getManagementService();
            return managementService == null ? false : managementService.getResource(ResourceNames.CORE_ADDRESS + element.getValue()) != null;
        }

        private boolean hasQueueControl(String name) {
            final ManagementService managementService = getManagementService();
            return managementService == null ? false : managementService.getResource(ResourceNames.CORE_QUEUE + name) != null;
        }
    View Full Code Here

    Examples of org.hornetq.core.server.management.ManagementService

            final ManagementService managementService = getManagementService();
            return managementService == null ? false : managementService.getResource(ResourceNames.CORE_QUEUE + name) != null;
        }

        private Set<String> getCoreAddressNames() {
            final ManagementService managementService = getManagementService();
            if (managementService == null) {
                return Collections.emptySet();
            } else {
                Set<String> result = new HashSet<String>();
                for (Object obj : managementService.getResources(AddressControl.class)) {
                    AddressControl ac = AddressControl.class.cast(obj);
                    result.add(ac.getAddress());
                }
                return result;
            }
    View Full Code Here

    Examples of org.hornetq.core.server.management.ManagementService

                return result;
            }
        }

        private Set<String> getCoreQueueNames() {
            final ManagementService managementService = getManagementService();
            if (managementService == null) {
                return Collections.emptySet();
            } else {
                Set<String> result = new HashSet<String>();
                for (Object obj : managementService.getResources(QueueControl.class)) {
                    QueueControl qc = QueueControl.class.cast(obj);
                    result.add(qc.getName());
                }
                return result;
            }
    View Full Code Here

    Examples of org.hornetq.core.server.management.ManagementService

          }
       }

       public boolean checkEmpty(final Queue queue, final int index) throws Exception
       {
          ManagementService managementService = server0.getManagementService();
          if (index == 1)
          {
             managementService = server1.getManagementService();
          }
          JMSQueueControl queueControl = (JMSQueueControl)managementService.getResource(ResourceNames.JMS_QUEUE + queue.getQueueName());

          Integer messageCount = queueControl.getMessageCount();

          if (messageCount > 0)
          {
    View Full Code Here

    Examples of org.hornetq.core.server.management.ManagementService

          return true;
       }

       protected void checkNoSubscriptions(final Topic topic, final int index) throws Exception
       {
          ManagementService managementService = server0.getManagementService();
          if (index == 1)
          {
             managementService = server1.getManagementService();
          }
          TopicControl topicControl = (TopicControl)managementService.getResource(ResourceNames.JMS_TOPIC + topic.getTopicName());
          Assert.assertEquals(0, topicControl.getSubscriptionCount());

       }
    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.