public class JobHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
JobHelper.VHandler |
Modifier and Type | Field and Description |
---|---|
protected Job |
job |
static java.lang.String |
LOGGER_TAGNAME |
static java.lang.String |
MESSENGER_TAGNAME |
static java.lang.String |
TRACER_TAGNAME |
protected Transformer |
transformer |
Constructor and Description |
---|
JobHelper(Job job)
The constructor
|
JobHelper(Transformer transformer,
java.io.File file)
The constructor
|
Modifier and Type | Method and Description |
---|---|
AoSession |
createSession(Aosession xmlSession)
Create an ASAM ODS session according to the configuration coming from the xml file.
|
java.lang.String |
getDrivenBy()
Get the driving side indicator.
|
java.lang.String |
getEnvironmentName()
Get the name of the environment.
|
java.util.logging.Filter |
getFilter(Loghandler logHandler)
Get the filter.
|
java.util.logging.Formatter |
getFormatter(Loghandler logHandler)
Get the formatter.
|
RuleHelper |
getFromRules()
Get the from rule list.
|
java.util.logging.Handler |
getHandler(Loghandler logHandler)
Get the handler for the given tag.
|
java.util.logging.Handler |
getHandler(java.lang.String tag)
Get the handler for the given tag.
|
protected java.util.logging.Level |
getLevel(java.lang.Class clazz,
java.lang.String value)
Get the level according to given string from given class.
|
java.util.logging.Level |
getLogLevel()
Get the log level.
|
java.util.logging.Level |
getMessengerLevel()
Get the messenger level.
|
java.lang.Object |
getObject(Objdef objectDef,
java.lang.ClassLoader classLoader) |
java.util.Map<java.lang.String,java.lang.Object> |
getObjectMap()
Get an object map from load element.
|
java.util.Properties |
getProperties()
Get the properties from rules.
|
java.util.Properties |
getProperties(Propertyseq seq)
Get properties from property sequence
|
RuleEngine |
getRuleEngine()
Get the rule engine.
|
RuleHelper |
getRules(Ruleselector selector)
Get a rules helper for given rule selector.
|
Carrier |
getSourceCarrier()
Get the source carrier.
|
java.lang.String[] |
getStringSequence(Stringseq seq)
Get the string array from a sequence.
|
Carrier |
getTargetCarrier()
Get the target carrier.
|
RuleHelper |
getToRules()
Get the to rule list.
|
java.util.logging.Level |
getTraceLevel()
Get the trace level.
|
Transformer |
getTransformer()
Get the transfromer that is bind to the helper.
|
boolean |
isPedantic()
Get the gather mode.
|
java.lang.Class |
loadClass(Classdef classDef,
java.lang.ClassLoader classLoader) |
java.lang.String |
replaceKeywords(java.lang.String val) |
public static final java.lang.String LOGGER_TAGNAME
public static final java.lang.String TRACER_TAGNAME
public static final java.lang.String MESSENGER_TAGNAME
protected Job job
protected Transformer transformer
public JobHelper(Transformer transformer, java.io.File file) throws javax.xml.bind.JAXBException, java.io.IOException, java.io.FileNotFoundException
rules
- The unmarshalled xml files.javax.xml.bind.JAXBException
java.io.IOException
java.io.FileNotFoundException
public JobHelper(Job job)
rules
- The unmarshalled xml files.public Transformer getTransformer()
public java.util.Properties getProperties()
public java.util.Properties getProperties(Propertyseq seq)
seq
- the property sequence.public java.lang.String getEnvironmentName()
public java.util.logging.Level getLogLevel()
public java.util.logging.Level getMessengerLevel()
public java.util.logging.Level getTraceLevel()
protected java.util.logging.Level getLevel(java.lang.Class clazz, java.lang.String value)
public boolean isPedantic()
public java.lang.String getDrivenBy()
JOB.xsd
public Carrier getTargetCarrier()
public Carrier getSourceCarrier()
public RuleHelper getFromRules()
public RuleHelper getToRules()
public RuleHelper getRules(Ruleselector selector) throws javax.xml.bind.JAXBException, java.io.IOException, java.io.FileNotFoundException
selector
- the rule selector.javax.xml.bind.JAXBException
java.io.IOException
java.io.FileNotFoundException
public AoSession createSession(Aosession xmlSession) throws AoException
xmlSession
- sessiondefined in XML.AoException
- If the connection failspublic java.util.Map<java.lang.String,java.lang.Object> getObjectMap()
public java.lang.Object getObject(Objdef objectDef, java.lang.ClassLoader classLoader)
public java.lang.Class loadClass(Classdef classDef, java.lang.ClassLoader classLoader)
public java.util.logging.Handler getHandler(java.lang.String tag)
tag
- the tag name of the handler.public java.util.logging.Handler getHandler(Loghandler logHandler)
tag
- the tag name of the handler.public java.util.logging.Formatter getFormatter(Loghandler logHandler)
public java.util.logging.Filter getFilter(Loghandler logHandler)
public RuleEngine getRuleEngine()
public java.lang.String[] getStringSequence(Stringseq seq)
seq
- The string sequence.public java.lang.String replaceKeywords(java.lang.String val)