Package com.levigo.jadice.server.ws
Class JobInvocationServiceImpl
- java.lang.Object
-
- com.levigo.jadice.server.ws.JobInvocationServiceImpl
-
- All Implemented Interfaces:
JobInvocationService
public class JobInvocationServiceImpl extends Object implements JobInvocationService
Web Service implementation for jadice server.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CDATA_END
static String
CDATA_START
-
Constructor Summary
Constructors Constructor Description JobInvocationServiceImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyStreamDescriptorProperties(Stream outputStream, Stream wsResultStream)
This method applies the stream descriptor properties of the stream result to the resultStream object.static void
createLogEntry(Collection<JobResult.Log> logs, JobResult.Log.Level level, String messageId, String message)
List<JobConfigurator>
getJobConfigurators()
boolean
isAllowSettingMessagePriority()
JobResult
run(JobConfiguration cfg)
Default entry point of jadice server web service.void
setAllowSettingMessagePriority(boolean allowSettingMessagePriority)
void
setJobConfigurators(List<JobConfigurator> jobConfigurators)
void
setJobFactory(JobFactory jobFactory)
Set theJobFactory
that shall be used for the creation of jadice serverJob
s for a webservice call.
-
-
-
Field Detail
-
CDATA_START
public static final String CDATA_START
- See Also:
- Constant Field Values
-
CDATA_END
public static final String CDATA_END
- See Also:
- Constant Field Values
-
-
Method Detail
-
run
public JobResult run(JobConfiguration cfg)
Default entry point of jadice server web service.- Specified by:
run
in interfaceJobInvocationService
- Parameters:
cfg
- the marshaled elements usually from a incoming SOAP Message- Returns:
JobResult
that is going to be marshaled and inserted into outgoing SOAP message
-
setJobFactory
public void setJobFactory(JobFactory jobFactory)
Set the
JobFactory
that shall be used for the creation of jadice serverJob
s for a webservice call.This instance given here must be fully initialized (i.e.
JobFactory.connect()
must have been called before- Parameters:
jobFactory
- TheJobFactory
to use
-
applyStreamDescriptorProperties
protected void applyStreamDescriptorProperties(Stream outputStream, Stream wsResultStream)
This method applies the stream descriptor properties of the stream result to the resultStream object.- Parameters:
outputStream
- a stream result.wsResultStream
- the result stream object that is included in the SOAP response.
-
createLogEntry
public static void createLogEntry(Collection<JobResult.Log> logs, JobResult.Log.Level level, String messageId, String message)
-
getJobConfigurators
public List<JobConfigurator> getJobConfigurators()
-
setJobConfigurators
public void setJobConfigurators(List<JobConfigurator> jobConfigurators)
-
isAllowSettingMessagePriority
public boolean isAllowSettingMessagePriority()
-
setAllowSettingMessagePriority
public void setAllowSettingMessagePriority(boolean allowSettingMessagePriority)
-
-