|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cle.process.Process | +--oracle.cle.process.GenericProcess | +--oracle.cle.process.ParentProcess | +--oracle.cle.process.Service
A sequence of Processes assembled to perform some task.
Field Summary | |
protected java.util.Hashtable |
aliasTable
A table containing aliases for the names of some of the ProcessInfo (Parameters and Results) objects. |
protected static java.lang.String |
ALLVALIDATIONS
|
protected boolean |
dtdValidation
Determines whether to validate the Service descriptor file against the dtd |
protected java.util.Vector |
globalInfoNames
A list of the names of the ProcessInfos that will be passed on to a subsequently called Service. |
protected java.util.Hashtable |
groupNavigationTable
A table for storing the information to be passed to each of the DisplayGroups of this Service. |
protected java.util.Hashtable |
infoTable
A table containing all of this Service's offspring's prerequisites and results (ProcessParameters and ProcessResults). |
protected static java.lang.String |
NOVALIDATIONS
|
protected static java.lang.String |
STATEMACHINEVALIDATION
|
protected java.lang.String |
validationAttributes
Contains validation attributes. |
protected static java.lang.String |
VALIDATIONDELIMITER
|
Fields inherited from class oracle.cle.process.GenericProcess |
parent |
Fields inherited from class oracle.cle.process.Process |
condition, DEBUG, endState, FAILURE, name, processes, service, stateMachine, SUCCESS, TRANSITION_CONDITION_FAILURE, TRANSITION_CONDITION_SUCCESS |
Constructor Summary | |
Service()
Deprecated. This constructor may be removed in a future release. Services should be created with XML descriptors. |
|
Service(ServiceController aController,
java.lang.String descriptorName)
Instantiate a Service based on the information in the xml named: descriptorName.xml where descriptorName
is the sole String argument to this constructor. |
|
Service(ServiceController aController,
java.lang.String descriptorName,
boolean performDtdValidation)
Instantiate a Service based on the information in the xml named: descriptorName.xml the DtdValidation argument
determines whether the content of descriptorName.xml is validated
against the dtd specified in document. |
Method Summary | |
void |
addAlias(Process aProcess,
java.lang.String localName,
java.lang.String globalName)
|
void |
addGlobalInfoName(java.lang.String globalInfoName)
Adds the specified ProcessInfo name to the list of the names of the ProcessInfos that will be passed on to a subsequently called Service. |
protected void |
addGroupTransition(java.lang.String sourceGroupName,
java.lang.String sourceGroupProcessName,
java.lang.String destinationName)
A convenient way to add a Group Transition to this group navigation table. |
protected void |
buildGroupNavigationTable()
Empty implementation so that Services can be instantiated in a runtime scenario (loaded from XML definition). |
java.lang.Object |
clone()
|
Service |
cloneService(ServiceController controller)
|
boolean |
containsKey(java.lang.String aKey)
Returns true if the infoTable contains the specified key, false otherwise. |
Process |
findByProcessName(Process node,
java.lang.String name)
|
java.lang.String |
findGlobalName(Process aProcess,
java.lang.String localName)
Returns the global ProcessInfo name for the specified Process and the ProcessInfo's name local to that Process. |
java.util.Hashtable |
getAliasTable()
Returns a reference to the current AliasTable Applications should not use this |
java.util.Vector |
getGlobalInfoNames()
|
java.util.Hashtable |
getHashtableFromInfoTable()
Return a flat name/value pair map for the info table where name=processInfo.name and value=processInfo.value |
java.lang.Object |
getInfo(java.lang.String key,
boolean checkParent)
Deprecated. Use getInfo(String, Integer) instead |
java.lang.Object |
getInfo(java.lang.String key,
java.lang.Integer checkFlag)
Get the value for the specified key from the infoTable. |
java.util.Hashtable |
getInfoTable()
Returns a reference to the current InfoTable Applications should not use this |
protected java.lang.Class |
getRelativeClass()
Returns the class for this service's parent or the class for this service if the parent is null |
protected void |
loadFromXML(java.lang.String urlString)
Loads a Service's definition from the XML file at the specified URL. |
static void |
main(java.lang.String[] args)
|
void |
putInfo(ProcessInfo info)
Put the specified ProcessInfo into the info table keyed by its name |
protected void |
registerInfo()
Empty implementation so that Services can be instantiated in a runtime scenario (loaded from XML definition). |
void |
removeGlobalInfoName(java.lang.String globalInfoName)
Removes the specified ProcessInfo name to the list of the names of the ProcessInfos that will be passed on to a subsequently called Service. |
void |
removeInfo(ProcessInfo[] processInfoArray)
Deprecated. This might be moved to a private or protected method Please use removeInfo(ProcessInfo[], Process) when calling from a Child Process |
void |
removeInfo(ProcessInfo[] processInfoArray,
Process callingProcess)
Removes the ProcessInfo objects from the InfoTable. |
void |
removeInfo(java.lang.String key)
Deprecated. This may be moved to a private or protected method Please use removeInfo(String, Process) when calling from a Child Process to enable alias lookups. |
void |
removeInfo(java.lang.String key,
Process callingProcess)
Removes the ProcessInfo object with the specified key from the InfoTable. |
void |
removeInfo(java.util.Vector processInfoVector)
Deprecated. This may be moved to a private or protected method Please use removeInfo(Vector, Process) when calling from a Child Process to enable alias lookups. |
void |
removeInfo(java.util.Vector processInfoVector,
Process callingProcess)
Removes the infoTable entries for the specified ProcessInfo objects Use this method to remove info from within a Child Process (eg: GenericProcess) because it removes the ProcessInfo for the alias, as well. |
void |
setAliasTable(java.util.Hashtable aHashtable)
Sets the current AliasTable to the specified Hashtable Applications should not use this |
void |
setGlobalInfoNames(java.util.Vector aVector)
|
protected void |
setGroupNavigationTables()
Put the group navigation table into each DisplayGroup so that they each "know" where to go next. |
void |
setInfoTable(java.util.Hashtable aHashtable)
Sets the current InfoTable to the specified Hashtable Applications should not use this |
protected void |
setServiceAndParent(Service service,
Process node)
|
protected void |
setServiceInitialState()
|
void |
setValidations(java.lang.String validations)
Sets the validations specified int the Service XML file Applications should not use this |
void |
start()
Everything starts here, for the execution of a Service. |
Methods inherited from class oracle.cle.process.ParentProcess |
addTransition, buildTransitionTable, doSkip, getChildren, getEndStates, getInitialState, getSkipable, isReady, processParameters, processResults, registerProcess, registerProcesses, setInitialState, setSkipable, skip |
Methods inherited from class oracle.cle.process.Process |
addCondition, addProcess, cloneProcess, debug, generateFailureCondition, generateSuccessCondition, getClassname, getCondition, getConditions, getIconName, getImageName, getName, getProcesses, getProcessNamed, getStateMachine, hashCode, isEndState, removeCondition, removeCondition, reportException, returnCondition, setCondition, setCondition, setEndState, setName, setService, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.cle.process.Parent |
getInfo, getName, getParents |
Methods inherited from interface oracle.cle.process.Child |
getParameters, getParent, getParents, getResults, setParent |
Field Detail |
protected java.util.Hashtable infoTable
protected java.util.Hashtable aliasTable
protected java.util.Hashtable groupNavigationTable
protected java.util.Vector globalInfoNames
protected java.lang.String validationAttributes
protected boolean dtdValidation
protected static final java.lang.String STATEMACHINEVALIDATION
protected static final java.lang.String ALLVALIDATIONS
protected static final java.lang.String NOVALIDATIONS
protected static final java.lang.String VALIDATIONDELIMITER
Constructor Detail |
public Service()
Service(String)
requires compiled classes to be in place for
Service, DisplayGroups and Process in order to succeed.
We might want to make the default constructor do nothing and provide another constructor for the functionality currently provided here.
public Service(ServiceController aController, java.lang.String descriptorName) throws CLEException
Instantiate a Service based on the information in the xml
named: descriptorName.xml
where descriptorName
is the sole String argument to this constructor.
public Service(ServiceController aController, java.lang.String descriptorName, boolean performDtdValidation) throws CLEException
Instantiate a Service based on the information in the xml
named: descriptorName.xml
the DtdValidation argument
determines whether the content of descriptorName.xml is validated
against the dtd specified in document. This argument will be overriden by
the System property for dtdValidaton - look in ProcessConstant for the
System Property to use
Method Detail |
protected void loadFromXML(java.lang.String urlString) throws CLEException
public void start()
start
in class ParentProcess
protected void setServiceInitialState()
protected void buildGroupNavigationTable() throws CLERuntimeException
protected void setGroupNavigationTables()
protected void addGroupTransition(java.lang.String sourceGroupName, java.lang.String sourceGroupProcessName, java.lang.String destinationName) throws CLEException
CLEException
- protected void registerInfo()
registerInfo
in class GenericProcess
public java.lang.Object getInfo(java.lang.String key, java.lang.Integer checkFlag)
GETINFO_CHECK_ALL: check parent and infotable for an entry GETINFO_CHECK_SERVICEONLY: check only the infotable for an entry GETINFO_CHECK_CONTROLLERONLY: check only the parent for an entry (the controller)
getInfo
in class GenericProcess
public java.lang.Object getInfo(java.lang.String key, boolean checkParent)
getInfo
in class GenericProcess
getInfo(String, Integer)
public void putInfo(ProcessInfo info)
public void removeInfo(java.lang.String key)
public void removeInfo(java.lang.String key, Process callingProcess)
public void removeInfo(ProcessInfo[] processInfoArray)
public void removeInfo(ProcessInfo[] processInfoArray, Process callingProcess)
public void removeInfo(java.util.Vector processInfoVector)
public void removeInfo(java.util.Vector processInfoVector, Process callingProcess)
public void addGlobalInfoName(java.lang.String globalInfoName)
public void removeGlobalInfoName(java.lang.String globalInfoName)
public java.util.Vector getGlobalInfoNames()
public void setGlobalInfoNames(java.util.Vector aVector)
public void setValidations(java.lang.String validations)
public void setInfoTable(java.util.Hashtable aHashtable)
public java.util.Hashtable getInfoTable()
public java.util.Hashtable getHashtableFromInfoTable()
public boolean containsKey(java.lang.String aKey)
public void addAlias(Process aProcess, java.lang.String localName, java.lang.String globalName)
public java.lang.String findGlobalName(Process aProcess, java.lang.String localName)
public void setAliasTable(java.util.Hashtable aHashtable)
public java.util.Hashtable getAliasTable()
protected java.lang.Class getRelativeClass()
public static void main(java.lang.String[] args)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class ParentProcess
public Process findByProcessName(Process node, java.lang.String name)
protected void setServiceAndParent(Service service, Process node)
public Service cloneService(ServiceController controller) throws java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |