|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.candle.roma.kxc.RomaContext
This is a base class that encapsulates the common options between a RomaClient and a RomaBusinessElement.
RomaClient
,
RomaBusinessElement
Constructor Summary | |
RomaContext()
|
Method Summary | |
void |
closeTheme(RomaTheme theme)
Closes a Roma theme. |
void |
commitLocal()
Commits any local Roma transactions outstanding on current thread. |
RomaTheme |
copyTheme(RomaTheme theme)
Creates a new theme ID with exactly the same information as the existing theme. |
void |
deleteStorageQueue(java.lang.String queueName)
Deletes storage queue. |
void |
disconnect()
Terminates the connection to Roma (if connected). |
RomaTheme |
insertWorkflow(RomaTheme theme,
RomaBusinessService bs,
boolean close)
Inserts the business service into the workflow of the theme immediately after the current location in the workflow. |
boolean |
isConnected()
Returns true if connection established, false otherwise. |
RomaTheme |
mergeEteInfo(RomaTheme theme,
RomaEteInfo ete,
boolean close)
Merges the end-to-end and in-flight information with the end-to-end and in-flight information that already exists for the message and can be extracted with the RomaBusinessElement.queryTheme(RomaTheme)
or RomaClient.queryTheme(RomaTheme)
method. |
void |
putException(RomaExceptionMessage msg)
Writes an exception message to the exception message queue with default RomaExceptionOptions. |
void |
putException(RomaExceptionMessage msg,
RomaExceptionOptions opt)
Writes an exception message to the exception message queue. |
RomaTheme |
replaceWorkflow(RomaTheme theme,
RomaBusinessService bs,
boolean close)
Replaces all remaining servers in the workflow with the business service, leaving the client at the end of the workflow. |
void |
reportError(RomaExceptionMessage msg,
RomaInteger carriedOutActions)
Invoke an error analysis routine directly with default RomaReportOptions. |
void |
reportError(RomaExceptionMessage msg,
RomaInteger carriedOutActions,
RomaReportOptions opt)
Used to invoke an error analysis routine directly. |
void |
rollbackLocal()
Rolls back any local Roma transactions outstanding on the current thread. |
void |
sendAlert(RomaLogInformation info)
Sends an alert message. |
void |
setBusinessFlow(RomaBusinessFlow bf)
Sets the business flow information on the context. |
static void |
writeLog(RomaLogInformation info)
Writes entry to the system log. |
static void |
writeSysLog(RomaLogInformation info)
Writes entry to the system log. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RomaContext()
Method Detail |
public boolean isConnected()
public void commitLocal() throws RomaError
RomaError
- is thrown on error.public void rollbackLocal() throws RomaError
RomaError
- is thrown on error.public void deleteStorageQueue(java.lang.String queueName) throws RomaError
queueName
- name of storage queue to delete.RomaError
- reports errors returned by the
Roma pipe.public void closeTheme(RomaTheme theme) throws RomaError
theme
- a Roma theme previously allocated for this
context. If the operation is successful this will
be reset to null.RomaError
- is thrown on error.public void disconnect() throws RomaError
RomaError
- is thrown on error.public void putException(RomaExceptionMessage msg, RomaExceptionOptions opt) throws RomaError
msg
- the exception message.opt
- put options associated with the operation.RomaError
- is thrown on error.public void putException(RomaExceptionMessage msg) throws RomaError
msg
- the exception message.RomaError
- is thrown on error.public void reportError(RomaExceptionMessage msg, RomaInteger carriedOutActions, RomaReportOptions opt) throws RomaError
msg
- the exception message.opt
- options associated with the invocation.carriedOutActions
- actions carried outRomaError
- is thrown on error.public void reportError(RomaExceptionMessage msg, RomaInteger carriedOutActions) throws RomaError
msg
- the exception message.carriedOutActions
- actions carried outRomaError
- is thrown on error.public static void writeLog(RomaLogInformation info) throws RomaError
info
- information for the log.RomaError
- is thrown on error.public static void writeSysLog(RomaLogInformation info) throws RomaError
info
- information for the log.RomaError
- is thrown on error.public void sendAlert(RomaLogInformation info) throws RomaError
info
- the alert.RomaError
- is thrown on error.public RomaTheme insertWorkflow(RomaTheme theme, RomaBusinessService bs, boolean close) throws RomaError
theme
- Source themebs
- Business Service to insertclose
- If true, closes the source themeRomaError
- is thrown if the operation failspublic RomaTheme replaceWorkflow(RomaTheme theme, RomaBusinessService bs, boolean close) throws RomaError
theme
- Source themebs
- Business Service replacing the workflowclose
- If true, closes the source themeRomaError
- is thrown if the operation failspublic void setBusinessFlow(RomaBusinessFlow bf) throws RomaError
replaceWorkflow(RomaTheme,RomaBusinessService,boolean)
or insertWorkflow(RomaTheme,RomaBusinessService,boolean)
calls.bf
- Business Flow informationRomaError
- is thrown if the operation failspublic RomaTheme copyTheme(RomaTheme theme) throws RomaError
theme
- Source themeRomaError
- is thrown if the operation failspublic RomaTheme mergeEteInfo(RomaTheme theme, RomaEteInfo ete, boolean close) throws RomaError
RomaBusinessElement.queryTheme(RomaTheme)
or RomaClient.queryTheme(RomaTheme)
method.theme
- Source themeete
- End-to-end and in-flight information to merge into
the specified themeclose
- If true, closes the source themeRomaError
- is thrown if the operation fails
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |