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.camunda.bpm.engine.ManagementService

      }

      @Override
      public void setJobRetries(JobRetriesDto dto) {
        try {
          ManagementService managementService = engine.getManagementService();
          managementService.setJobRetries(jobId, dto.getRetries());
        } catch (ProcessEngineException e) {
          throw new InvalidRequestException(Status.INTERNAL_SERVER_ERROR, e.getMessage());
        }
      }
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

      }

      @Override
      public void executeJob() {
        try {
          ManagementService managementService = engine.getManagementService();
          managementService.executeJob(this.jobId);
        } catch (ProcessEngineException e) {
          throw new InvalidRequestException(Status.NOT_FOUND, e.getMessage());
        } catch (RuntimeException r) {
          throw new RestException(Status.INTERNAL_SERVER_ERROR, r.getMessage());
        }
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

      }

      @Override
      public void setJobDuedate(JobDuedateDto dto) {
        try {
          ManagementService managementService = engine.getManagementService();
          managementService.setJobDuedate(jobId, dto.getDuedate());
        } catch (ProcessEngineException e) {
          throw new InvalidRequestException(Status.INTERNAL_SERVER_ERROR, e.getMessage());
        }
      }
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

        this.jobId = jobId;
      }

      @Override
      public JobDto getJob() {
        ManagementService managementService = engine.getManagementService();
        Job job = managementService.createJobQuery().jobId(jobId).singleResult();

        if (job == null) {
          throw new InvalidRequestException(Status.NOT_FOUND, "Job with id " + jobId + " does not exist");
        }
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

      }

      @Override
      public String getStacktrace() {
        try {
          ManagementService managementService = engine.getManagementService();
          String stacktrace = managementService.getJobExceptionStacktrace(jobId);
          return stacktrace;
        } catch (ProcessEngineException e) {
          throw new InvalidRequestException(Status.NOT_FOUND, e.getMessage());
        }
      }
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

        if (params > 1) {
          String message = "Only one of jobId, jobDefinitionId, processInstanceId, processDefinitionId or processDefinitionKey should be set to update the suspension state.";
          throw new InvalidRequestException(Status.BAD_REQUEST, message);
        }

        ManagementService managementService = engine.getManagementService();

        if (jobId != null) {
          // activate/suspend job by id
          if (getSuspended()) {
            managementService.suspendJobById(jobId);
          } else {
            managementService.activateJobById(jobId);
          }
        } else

        if (jobDefinitionId != null) {
          // activate/suspend jobs by job definition id
          if (getSuspended()) {
            managementService.suspendJobByJobDefinitionId(jobDefinitionId);
          } else {
            managementService.activateJobByJobDefinitionId(jobDefinitionId);
          }
        } else

        if (processInstanceId != null) {
          // activate/suspend jobs by process instance id
          if (getSuspended()) {
            managementService.suspendJobByProcessInstanceId(processInstanceId);
          } else {
            managementService.activateJobByProcessInstanceId(processInstanceId);
          }
        } else

        if (processDefinitionId != null) {
          // activate/suspend jobs by process definition id
          if (getSuspended()) {
            managementService.suspendJobByProcessDefinitionId(processDefinitionId);
          } else {
            managementService.activateJobByProcessDefinitionId(processDefinitionId);
          }
        } else

        if (processDefinitionKey != null) {
          // activate/suspend jobs by process definition key
          if (getSuspended()) {
            managementService.suspendJobByProcessDefinitionKey(processDefinitionKey);
          } else {
            managementService.activateJobByProcessDefinitionKey(processDefinitionKey);
          }
        } else {
          String message = "Either jobId, jobDefinitionId, processInstanceId, processDefinitionId or processDefinitionKey should be set to update the suspension state.";
          throw new InvalidRequestException(Status.BAD_REQUEST, message);
        }
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

      public List<StatisticsResultDto> getStatistics(Boolean includeFailedJobs, Boolean includeIncidents, String includeIncidentsForType) {
        if (includeIncidents != null && includeIncidentsForType != null) {
          throw new InvalidRequestException(Status.BAD_REQUEST, "Only one of the query parameter includeIncidents or includeIncidentsForType can be set.");
        }

        ManagementService mgmtService = getProcessEngine().getManagementService();
        ProcessDefinitionStatisticsQuery query = mgmtService.createProcessDefinitionStatisticsQuery();

        if (includeFailedJobs != null && includeFailedJobs) {
          query.includeFailedJobs();
        }
    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

        private ConnectionFactoryAddJndiHandler() {
        }

        @Override
        protected void addJndiNameToControl(String toAdd, String resourceName, HornetQServer server, OperationContext context) {
            ManagementService mgmt = server.getManagementService();
            ConnectionFactoryControl control = ConnectionFactoryControl.class.cast(mgmt.getResource(ResourceNames.JMS_CONNECTION_FACTORY + 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

        private JMSTopicAddJndiHandler() {
        }

        @Override
        protected void addJndiNameToControl(String toAdd, String resourceName, HornetQServer server, OperationContext context) {
            ManagementService mgmt = server.getManagementService();
            TopicControl control = TopicControl.class.cast(mgmt.getResource(ResourceNames.JMS_TOPIC + resourceName));
            try {
                control.addJNDI(toAdd);
            } catch (RuntimeException e) {
                throw e;
            } catch (Exception e) {
    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.