jBPM Console NG - Executor Service Backend 6.2.0.CR3

org.jbpm.console.ng.es.backend.server
Class ExecutorServiceEntryPointImpl

java.lang.Object
  extended by org.jbpm.console.ng.es.backend.server.ExecutorServiceEntryPointImpl
All Implemented Interfaces:
ExecutorServiceEntryPoint, org.jbpm.console.ng.ga.service.GenericServiceEntryPoint<RequestKey,RequestSummary>

@ApplicationScoped
public class ExecutorServiceEntryPointImpl
extends Object
implements ExecutorServiceEntryPoint, org.jbpm.console.ng.ga.service.GenericServiceEntryPoint<RequestKey,RequestSummary>


Constructor Summary
ExecutorServiceEntryPointImpl()
           
 
Method Summary
 void cancelRequest(Long requestId)
           
 int clearAllErrors()
           
 int clearAllRequests()
           
 void destroy()
           
 List<ErrorSummary> getAllErrors()
           
 List<RequestSummary> getAllRequests()
           
 List<RequestSummary> getCancelledRequests()
           
 List<RequestSummary> getCompletedRequests()
           
 org.uberfire.paging.PageResponse<RequestSummary> getData(org.jbpm.console.ng.ga.model.QueryFilter filter)
           
 List<RequestSummary> getFutureQueuedRequests()
           
 List<RequestSummary> getInErrorRequests()
           
 int getInterval()
           
 RequestSummary getItem(RequestKey key)
           
 List<RequestSummary> getPendingRequestById(Long id)
           
 List<RequestSummary> getPendingRequests()
           
 List<RequestSummary> getQueuedRequests()
           
 RequestDetails getRequestDetails(Long requestId)
           
 List<RequestSummary> getRequestsByStatus(List<String> statuses)
           
 int getRetries()
           
 List<RequestSummary> getRunningRequests()
           
 int getThreadPoolSize()
           
 void init()
           
 Boolean isActive()
           
 void requeueRequest(Long requestId)
           
 Long scheduleRequest(String commandName, Date date, Map<String,String> ctx)
           
 Long scheduleRequest(String commandName, Map<String,String> ctx)
           
 void setInterval(int waitTime)
           
 void setRetries(int defaultNroOfRetries)
           
 void setThreadPoolSize(int nroOfThreads)
           
 Boolean startStopService(int waitTime, int nroOfThreads)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutorServiceEntryPointImpl

public ExecutorServiceEntryPointImpl()
Method Detail

getQueuedRequests

public List<RequestSummary> getQueuedRequests()
Specified by:
getQueuedRequests in interface ExecutorServiceEntryPoint

getCompletedRequests

public List<RequestSummary> getCompletedRequests()
Specified by:
getCompletedRequests in interface ExecutorServiceEntryPoint

getInErrorRequests

public List<RequestSummary> getInErrorRequests()
Specified by:
getInErrorRequests in interface ExecutorServiceEntryPoint

getCancelledRequests

public List<RequestSummary> getCancelledRequests()
Specified by:
getCancelledRequests in interface ExecutorServiceEntryPoint

getAllErrors

public List<ErrorSummary> getAllErrors()
Specified by:
getAllErrors in interface ExecutorServiceEntryPoint

getAllRequests

public List<RequestSummary> getAllRequests()
Specified by:
getAllRequests in interface ExecutorServiceEntryPoint

getRequestsByStatus

public List<RequestSummary> getRequestsByStatus(List<String> statuses)
Specified by:
getRequestsByStatus in interface ExecutorServiceEntryPoint

getRequestDetails

public RequestDetails getRequestDetails(Long requestId)
Specified by:
getRequestDetails in interface ExecutorServiceEntryPoint

clearAllRequests

public int clearAllRequests()
Specified by:
clearAllRequests in interface ExecutorServiceEntryPoint

clearAllErrors

public int clearAllErrors()
Specified by:
clearAllErrors in interface ExecutorServiceEntryPoint

scheduleRequest

public Long scheduleRequest(String commandName,
                            Map<String,String> ctx)
Specified by:
scheduleRequest in interface ExecutorServiceEntryPoint

scheduleRequest

public Long scheduleRequest(String commandName,
                            Date date,
                            Map<String,String> ctx)
Specified by:
scheduleRequest in interface ExecutorServiceEntryPoint

cancelRequest

public void cancelRequest(Long requestId)
Specified by:
cancelRequest in interface ExecutorServiceEntryPoint

requeueRequest

public void requeueRequest(Long requestId)
Specified by:
requeueRequest in interface ExecutorServiceEntryPoint

init

public void init()
Specified by:
init in interface ExecutorServiceEntryPoint

destroy

public void destroy()
Specified by:
destroy in interface ExecutorServiceEntryPoint

isActive

public Boolean isActive()
Specified by:
isActive in interface ExecutorServiceEntryPoint

startStopService

public Boolean startStopService(int waitTime,
                                int nroOfThreads)
Specified by:
startStopService in interface ExecutorServiceEntryPoint

getInterval

public int getInterval()
Specified by:
getInterval in interface ExecutorServiceEntryPoint

setInterval

public void setInterval(int waitTime)
Specified by:
setInterval in interface ExecutorServiceEntryPoint

getRetries

public int getRetries()
Specified by:
getRetries in interface ExecutorServiceEntryPoint

setRetries

public void setRetries(int defaultNroOfRetries)
Specified by:
setRetries in interface ExecutorServiceEntryPoint

getThreadPoolSize

public int getThreadPoolSize()
Specified by:
getThreadPoolSize in interface ExecutorServiceEntryPoint

setThreadPoolSize

public void setThreadPoolSize(int nroOfThreads)
Specified by:
setThreadPoolSize in interface ExecutorServiceEntryPoint

getPendingRequests

public List<RequestSummary> getPendingRequests()
Specified by:
getPendingRequests in interface ExecutorServiceEntryPoint

getPendingRequestById

public List<RequestSummary> getPendingRequestById(Long id)
Specified by:
getPendingRequestById in interface ExecutorServiceEntryPoint

getRunningRequests

public List<RequestSummary> getRunningRequests()
Specified by:
getRunningRequests in interface ExecutorServiceEntryPoint

getFutureQueuedRequests

public List<RequestSummary> getFutureQueuedRequests()
Specified by:
getFutureQueuedRequests in interface ExecutorServiceEntryPoint

getData

public org.uberfire.paging.PageResponse<RequestSummary> getData(org.jbpm.console.ng.ga.model.QueryFilter filter)
Specified by:
getData in interface ExecutorServiceEntryPoint
Specified by:
getData in interface org.jbpm.console.ng.ga.service.GenericServiceEntryPoint<RequestKey,RequestSummary>

getItem

public RequestSummary getItem(RequestKey key)
Specified by:
getItem in interface org.jbpm.console.ng.ga.service.GenericServiceEntryPoint<RequestKey,RequestSummary>

jBPM Console NG - Executor Service Backend 6.2.0.CR3

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.