Package com.levigo.jadice.server.ws.cfg
Class DomTree2JobConfigurator
- java.lang.Object
-
- com.levigo.jadice.server.ws.cfg.DomTree2JobConfigurator
-
- All Implemented Interfaces:
JobConfigurator
public class DomTree2JobConfigurator extends Object implements JobConfigurator
-
-
Constructor Summary
Constructors Constructor Description DomTree2JobConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConfigure(JobConfiguration cfg)
Check if the configuration has enough information for the specific configurator.com.levigo.jadice.server.client.internal.DefaultJobInternalImpl
configure(JobConfiguration cfg, Map<String,Node> nodes)
This method configures a empty/default job.
-
-
-
Method Detail
-
configure
public com.levigo.jadice.server.client.internal.DefaultJobInternalImpl configure(JobConfiguration cfg, Map<String,Node> nodes) throws Exception
Description copied from interface:JobConfigurator
This method configures a empty/default job. It should do everything to make the job ready to be submitted for execution, including the creation and configuration of nodes and building the node graph.- Specified by:
configure
in interfaceJobConfigurator
- Parameters:
cfg
- - The configuration for the job. (In case of using the web service this configuration comes from marshaled SOAP message)nodes
- A map where the converter can store all nodes that it creates associated by a local ID- Returns:
- a configured job (but without
JobController
yet. - Throws:
Exception
- if the configuration cannot be processed
-
canConfigure
public boolean canConfigure(JobConfiguration cfg)
Description copied from interface:JobConfigurator
Check if the configuration has enough information for the specific configurator.- Specified by:
canConfigure
in interfaceJobConfigurator
- Parameters:
cfg
- the configuration for the job- Returns:
- true, if configuration is possible, false otherwise.
-
-