Class ContextStatusServiceImpl
- java.lang.Object
-
- org.ikasan.orchestration.service.context.status.ContextStatusServiceImpl
-
- All Implemented Interfaces:
org.ikasan.spec.scheduled.context.service.ContextStatusService<org.ikasan.job.orchestration.core.machine.ContextMachine>
public class ContextStatusServiceImpl extends java.lang.Object implements org.ikasan.spec.scheduled.context.service.ContextStatusService<org.ikasan.job.orchestration.core.machine.ContextMachine>
-
-
Constructor Summary
Constructors Constructor Description ContextStatusServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContextStatus(java.lang.String instanceName, java.lang.String contextName)java.lang.StringgetContextStatusForJob(java.lang.String instanceName, java.lang.String contextName, java.lang.String jobIdentifier)java.lang.StringgetJsonContextJobStatus(org.ikasan.spec.scheduled.instance.model.InstanceStatus instanceStatus, java.util.Map<java.lang.String,org.ikasan.job.orchestration.core.machine.ContextMachine> mapAllContextMachine)Get the status of all jobs in the Context Machinejava.lang.StringgetJsonContextMachineStatus(boolean includePrepared)Get that status of all instances from the Context machinejava.lang.StringgetJsonContextStatus(java.lang.String instanceName, java.lang.String contextName)Get the status of an instance context or a child context in JSON format.java.lang.StringgetJsonContextStatusForJob(java.lang.String instanceName, java.lang.String contextName, java.lang.String jobName)Get the status of a Scheduler Job Instance in JSON format.
-
-
-
Method Detail
-
getJsonContextMachineStatus
public java.lang.String getJsonContextMachineStatus(boolean includePrepared) throws com.fasterxml.jackson.core.JsonProcessingExceptionGet that status of all instances from the Context machine- Specified by:
getJsonContextMachineStatusin interfaceorg.ikasan.spec.scheduled.context.service.ContextStatusService<org.ikasan.job.orchestration.core.machine.ContextMachine>- Parameters:
includePrepared- - true to include prepared and not active context instance- Returns:
- ContextMachineStatusWrapperImpl in Json
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if issue transforming to Json
-
getJsonContextJobStatus
public java.lang.String getJsonContextJobStatus(org.ikasan.spec.scheduled.instance.model.InstanceStatus instanceStatus, java.util.Map<java.lang.String,org.ikasan.job.orchestration.core.machine.ContextMachine> mapAllContextMachine) throws com.fasterxml.jackson.core.JsonProcessingExceptionGet the status of all jobs in the Context Machine- Specified by:
getJsonContextJobStatusin interfaceorg.ikasan.spec.scheduled.context.service.ContextStatusService<org.ikasan.job.orchestration.core.machine.ContextMachine>- Parameters:
instanceStatus- - optional value to search for a particular instance status. Set to null to return everythingmapAllContextMachine- - option map of context machine to found the status on. Set to null or empty to return bring back all active instances- Returns:
- ContextJobInstanceStatusWrapperImpl in JSON
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if issue transforming to Json
-
getContextStatus
public java.lang.String getContextStatus(java.lang.String instanceName, java.lang.String contextName)- Specified by:
getContextStatusin interfaceorg.ikasan.spec.scheduled.context.service.ContextStatusService<org.ikasan.job.orchestration.core.machine.ContextMachine>
-
getContextStatusForJob
public java.lang.String getContextStatusForJob(java.lang.String instanceName, java.lang.String contextName, java.lang.String jobIdentifier)- Specified by:
getContextStatusForJobin interfaceorg.ikasan.spec.scheduled.context.service.ContextStatusService<org.ikasan.job.orchestration.core.machine.ContextMachine>
-
getJsonContextStatus
public java.lang.String getJsonContextStatus(java.lang.String instanceName, java.lang.String contextName) throws com.fasterxml.jackson.core.JsonProcessingExceptionGet the status of an instance context or a child context in JSON format. Will not return any Prepared instances- Specified by:
getJsonContextStatusin interfaceorg.ikasan.spec.scheduled.context.service.ContextStatusService<org.ikasan.job.orchestration.core.machine.ContextMachine>- Parameters:
instanceName- Context name assigned to the ContextMachineCachecontextName- Context or Child Context to search on- Returns:
- Mapped json representation of the current state of the Context Instance at the time of request
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if issue transforming to Json
-
getJsonContextStatusForJob
public java.lang.String getJsonContextStatusForJob(java.lang.String instanceName, java.lang.String contextName, java.lang.String jobName) throws com.fasterxml.jackson.core.JsonProcessingExceptionGet the status of a Scheduler Job Instance in JSON format. Will not return any Prepared instances- Specified by:
getJsonContextStatusForJobin interfaceorg.ikasan.spec.scheduled.context.service.ContextStatusService<org.ikasan.job.orchestration.core.machine.ContextMachine>- Parameters:
instanceName- Context name assigned to the ContextMachineCachecontextName- Context or Child Context to search onjobName- the job name to find the state for- Returns:
- Mapped json representation of the current state of the Scheduler Job Instance at the time of request
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if issue transforming to Json
-
-