|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.omsdk.qil.applicationblocks.monitoring.AdHocManagement
Shows how to use the QIL ad hoc management features. This class assumes that the QIL factory has already been successfully initialized.
Constructor Summary | |
AdHocManagement()
|
Method Summary | |
void |
changeOperationMode(boolean supervisor)
Switches between supervisor and reporter modes. |
QILInteractionList |
findInteractionsSQL(java.lang.String queueID,
java.lang.String sqlCriteria,
java.lang.String orderBy)
Synchronously retrieves interactions from a queue. |
QILInteractionList |
findInteractionsSQLAsync(java.lang.String queueID,
java.lang.String sqlCriteria,
java.lang.String orderBy,
java.lang.Runnable command)
Asynchronously retrieves interactions from a queue. |
void |
leave(java.lang.String ixnID,
java.lang.String reason,
java.lang.String code)
Leaves an interaction. |
QILInteractionList |
lock(java.lang.String queueID,
java.lang.String ixnID,
java.lang.String reason,
java.lang.String code)
Locks the interaction. |
void |
pull(java.lang.String ixnID,
java.lang.String reason,
java.lang.String code)
Pulls an interaction. |
void |
stopProcessing(java.lang.String ixnID,
java.lang.String reason,
java.lang.String code)
Stops processing of an interaction. |
void |
unlock(java.lang.String ixnID,
java.lang.String reason,
java.lang.String code)
Unlocks an interaction. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AdHocManagement()
Method Detail |
public final void changeOperationMode(boolean supervisor) throws QILUnsuccessfulModeChangeException
supervisor
- true
to change to supervisor mode;
otherwise, false
to change to reporter mode.
QILUnsuccessfulModeChangeException
- exception thrown if the change failed.public QILInteractionList findInteractionsSQL(java.lang.String queueID, java.lang.String sqlCriteria, java.lang.String orderBy) throws QILRequestFailedException
queueID
- queue IDsqlCriteria
- SQL criteria for finding interactions.orderBy
- order for the interactions to be returned
(use the regular SQL syntax.)
QILRequestFailedException
- exception thrown if the request fails.public QILInteractionList findInteractionsSQLAsync(java.lang.String queueID, java.lang.String sqlCriteria, java.lang.String orderBy, java.lang.Runnable command) throws QILRequestFailedException
queueID
- queue ID.sqlCriteria
- SQL criteria for finding interactions.orderBy
- order for the interactions to be returned
(use the regular SQL syntax.)command
- the command to be executed.
QILRequestFailedException
- exception thrown if the request fails.public QILInteractionList lock(java.lang.String queueID, java.lang.String ixnID, java.lang.String reason, java.lang.String code) throws QILRequestFailedException, QILOperationalModeRestrictionException
unlock(String, String, String)
method.
queueID
- queue ID.ixnID
- interaction ID.reason
- reason to lock.code
- code, used to lock.
QILRequestFailedException
- exception thrown if the request fails.
QILOperationalModeRestrictionException
- exception thrown if the QIL application's operational mode
does not allow this action.public void unlock(java.lang.String ixnID, java.lang.String reason, java.lang.String code) throws QILRequestFailedException, QILOperationalModeRestrictionException
ixnID
- interaction ID.reason
- reason to unlock.code
- code, used to unlock.
QILRequestFailedException
- exception thrown if the request fails.
QILOperationalModeRestrictionException
- exception thrown if the QIL application's operational mode
does not allow this action.public void pull(java.lang.String ixnID, java.lang.String reason, java.lang.String code) throws QILRequestFailedException, QILOperationalModeRestrictionException
ixnID
- ID of the interaction to be pulled.reason
- reason to pull.code
- code.
QILRequestFailedException
- exception thrown if the request fails.
QILOperationalModeRestrictionException
- exception thrown if the QIL application's operational mode
does not allow this action.leave(String, String, String)
public void leave(java.lang.String ixnID, java.lang.String reason, java.lang.String code) throws QILRequestFailedException, QILOperationalModeRestrictionException
ixnID
- interaction ID.reason
- reason.code
- code.
QILRequestFailedException
- exception thrown if the request fails.
QILOperationalModeRestrictionException
- exception thrown if the QIL application's operational mode
does not allow this action.public void stopProcessing(java.lang.String ixnID, java.lang.String reason, java.lang.String code) throws QILRequestFailedException, QILOperationalModeRestrictionException
ixnID
- interaction ID.reason
- reason.code
- code.
QILRequestFailedException
- exception thrown if the request fails.
QILOperationalModeRestrictionException
- exception thrown if the QIL application's operational mode
does not allow this action.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |