use of org.camunda.bpm.engine.ManagementService in project camunda-bpm-platform by camunda.
the class JobResourceImpl method setJobDuedate.
@Override
public void setJobDuedate(JobDuedateDto dto) {
try {
ManagementService managementService = engine.getManagementService();
managementService.setJobDuedate(jobId, dto.getDuedate());
} catch (AuthorizationException e) {
throw e;
} catch (ProcessEngineException e) {
throw new InvalidRequestException(Status.INTERNAL_SERVER_ERROR, e.getMessage());
}
}
use of org.camunda.bpm.engine.ManagementService in project camunda-bpm-platform by camunda.
the class JobResourceImpl method setJobPriority.
@Override
public void setJobPriority(PriorityDto dto) {
if (dto.getPriority() == null) {
throw new RestException(Status.BAD_REQUEST, "Priority for job '" + jobId + "' cannot be null.");
}
try {
ManagementService managementService = engine.getManagementService();
managementService.setJobPriority(jobId, dto.getPriority());
} catch (AuthorizationException e) {
throw e;
} catch (NotFoundException e) {
throw new InvalidRequestException(Status.NOT_FOUND, e.getMessage());
} catch (ProcessEngineException e) {
throw new RestException(Status.INTERNAL_SERVER_ERROR, e.getMessage());
}
}
use of org.camunda.bpm.engine.ManagementService in project camunda-bpm-platform by camunda.
the class JmxManagedProcessEngine method reportDbMetrics.
public void reportDbMetrics() {
ManagementService managementService = processEngine.getManagementService();
managementService.reportDbMetricsNow();
}
use of org.camunda.bpm.engine.ManagementService in project camunda-bpm-platform by camunda.
the class JmxManagedProcessEngine method registerDeployment.
public void registerDeployment(String deploymentId) {
ManagementService managementService = processEngine.getManagementService();
managementService.registerDeploymentForJobExecutor(deploymentId);
}
use of org.camunda.bpm.engine.ManagementService in project camunda-bpm-platform by camunda.
the class JmxManagedProcessEngine method unregisterDeployment.
public void unregisterDeployment(String deploymentId) {
ManagementService managementService = processEngine.getManagementService();
managementService.unregisterDeploymentForJobExecutor(deploymentId);
}
Aggregations