|
||||||||
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. |
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
public void rollbackLocal() throws RomaError
public void deleteStorageQueue(java.lang.String queueName) throws RomaError
queueName
- name of storage queue to delete.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.public void disconnect() throws RomaError
public void putException(RomaExceptionMessage msg, RomaExceptionOptions opt) throws RomaError
msg
- the exception message.opt
- put options associated with the operation.public void putException(RomaExceptionMessage msg) throws RomaError
msg
- the exception message.public void reportError(RomaExceptionMessage msg, RomaInteger carriedOutActions, RomaReportOptions opt) throws RomaError
msg
- the exception message.opt
- options associated with the invocation.carriedOutActions
- actions carried outpublic void reportError(RomaExceptionMessage msg, RomaInteger carriedOutActions) throws RomaError
msg
- the exception message.carriedOutActions
- actions carried outpublic static void writeLog(RomaLogInformation info) throws RomaError
info
- information for the log.public void sendAlert(RomaLogInformation info) throws RomaError
info
- the alert.public RomaTheme insertWorkflow(RomaTheme theme, RomaBusinessService bs, boolean close) throws RomaError
theme
- Source themebs
- Business Service to insertclose
- If true, closes the source themepublic RomaTheme replaceWorkflow(RomaTheme theme, RomaBusinessService bs, boolean close) throws RomaError
theme
- Source themebs
- Business Service replacing the workflowclose
- If true, closes the source themepublic void setBusinessFlow(RomaBusinessFlow bf) throws RomaError
replaceWorkflow(RomaTheme,RomaBusinessService,boolean)
or insertWorkflow(RomaTheme,RomaBusinessService,boolean)
calls.bf
- Business Flow informationpublic RomaTheme copyTheme(RomaTheme theme) throws RomaError
theme
- Source themepublic 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 theme
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |