endurox-java
Functions
Enduro/X queue routines

Functions

native void org.endurox.AtmiCtx.tpenqueue (String qspace, String qname, TPQCTL ctl, TypedBuffer idata, long flags)
 
native void org.endurox.AtmiCtx.tpenqueueex (short nodeid, short srvid, String qname, TPQCTL ctl, TypedBuffer idata, long flags)
 
native TypedBuffer org.endurox.AtmiCtx.tpdequeue (String qspace, String qname, TPQCTL ctl, TypedBuffer odata, long flags)
 
native TypedBuffer org.endurox.AtmiCtx.tpdequeueex (short nodeid, short srvid, String qname, TPQCTL ctl, TypedBuffer odata, long flags)
 

Detailed Description

Queue handling

Function Documentation

◆ tpdequeue()

native TypedBuffer org.endurox.AtmiCtx.tpdequeue ( String  qspace,
String  qname,
TPQCTL  ctl,
TypedBuffer  odata,
long  flags 
)

Dequeue message from Queue sub-system See tpdequeue(3) manpage for more information.

Parameters
qspacequeue space name
qnamequeue name
ctlqueue control obj
odataoutput data to rewrite received message
flagsTPNOTRAN, TPSIGRSTRT, TPNOTIME, TPNOCHANGE, TPNOBLOCK
Returns
Returned buffer from queue. Not that ctl will contain metadata about the message
Exceptions
AtmiTPEINVALExceptiondata is NULL, qspace is NULL, or nodeid and srvid is 0. Error can be generate in case if qname is empty or NULL. ctl is NULL or data does not point to tpalloc() allocated buffer.
AtmiTPENOENTExceptionTmqueue server is not available.
AtmiTPETIMEExceptionService did not reply in given time (NDRX_TOUT).
AtmiTPEDIAGNOSTICExceptionMore information is provided in TPQCTL.diagnostic field.
AtmiTPESVCFAILExceptionTmqueue Service returned TPFAIL. This is application level failure.
AtmiTPESVCERRExceptionTmqueue service got system level failure. Server died during the message presence in service queue.
AtmiTPESYSTEMExceptionEnduro/X internal error occurred. See logs for more info.
AtmiTPEOSExceptionSystem failure occurred during serving. See logs i.e. user log, or debugs for more info.

◆ tpdequeueex()

native TypedBuffer org.endurox.AtmiCtx.tpdequeueex ( short  nodeid,
short  srvid,
String  qname,
TPQCTL  ctl,
TypedBuffer  odata,
long  flags 
)

Dequeue message from Queue sub-system See tpdequeueex(3) manpage for more information.

Parameters
nodeidCluster node ID on which queue server is present
srvidQueue Server ID on given cluster node id
qnamequeue name
ctlqueue control obj
odataoutput data to rewrite received message
flagsTPNOTRAN, TPSIGRSTRT, TPNOTIME, TPNOCHANGE, TPNOBLOCK
Returns
Returned buffer from queue. Not that ctl will contain metadata about the message
Exceptions
AtmiTPEINVALExceptiondata is NULL, qspace is NULL, or nodeid and srvid is 0. Error can be generate in case if qname is empty or NULL. ctl is NULL or data does not point to tpalloc() allocated buffer.
AtmiTPENOENTExceptionTmqueue server is not available.
AtmiTPETIMEExceptionService did not reply in given time (NDRX_TOUT).
AtmiTPEDIAGNOSTICExceptionMore information is provided in TPQCTL.diagnostic field.
AtmiTPESVCFAILExceptionTmqueue Service returned TPFAIL. This is application level failure.
AtmiTPESVCERRExceptionTmqueue service got system level failure. Server died during the message presence in service queue.
AtmiTPESYSTEMExceptionEnduro/X internal error occurred. See logs for more info.
AtmiTPEOSExceptionSystem failure occurred during serving. See logs i.e. user log, or debugs for more info.

◆ tpenqueue()

native void org.endurox.AtmiCtx.tpenqueue ( String  qspace,
String  qname,
TPQCTL  ctl,
TypedBuffer  idata,
long  flags 
)

Enqueue message to persistent storage See tpenqueue(3) manpage for more information.

Parameters
qspacequeue space name
qnamequeue name
ctlqueue control obj
idatadata buffer
flagsflags TPNOTRAN, TPSIGRSTRT, TPNOTIME, TPNOBLOCK, TPNOABORT
Exceptions
AtmiTPEINVALExceptiondata is NULL, qspace is NULL, or nodeid and srvid is 0. Error can be generate in case if qname is empty or NULL. ctl is NULL or data does not point to tpalloc() allocated buffer.
AtmiTPENOENTExceptionTmqueue server is not available.
AtmiTPETIMEExceptionService did not reply in given time (NDRX_TOUT).
AtmiTPEDIAGNOSTICExceptionMore information is provided in TPQCTL.diagnostic field. For this exception use getQctl() to get original TPQCTL passed to method call.
AtmiTPESVCFAILExceptionTmqueue Service returned TPFAIL. This is application level failure.
AtmiTPESVCERRExceptionTmqueue service got system level failure. Server died during the message presence in service queue.
AtmiTPESYSTEMExceptionEnduro/X internal error occurred. See logs for more info.
AtmiTPEOSExceptionSystem failure occurred during serving. See logs i.e. user log, or debugs for more info.

◆ tpenqueueex()

native void org.endurox.AtmiCtx.tpenqueueex ( short  nodeid,
short  srvid,
String  qname,
TPQCTL  ctl,
TypedBuffer  idata,
long  flags 
)

Enqueue message to persistent storage, extended See tpenqueueex(3) manpage for more information.

Parameters
nodeidCluster node ID on which queue server is present
srvidQueue Server ID on given cluster node id
qnamequeue name
ctlqueue control obj
idatadata buffer
flagsflags TPNOTRAN, TPSIGRSTRT, TPNOTIME, TPNOBLOCK, TPNOABORT
Exceptions
AtmiTPEINVALExceptiondata is NULL, qspace is NULL, or nodeid and srvid is 0. Error can be generate in case if qname is empty or NULL. ctl is NULL or data does not point to tpalloc() allocated buffer.
AtmiTPENOENTExceptionTmqueue server is not available.
AtmiTPETIMEExceptionService did not reply in given time (NDRX_TOUT).
AtmiTPEDIAGNOSTICExceptionMore information is provided in TPQCTL.diagnostic field. For this exception use getQctl() to get original TPQCTL passed to method call.
AtmiTPESVCFAILExceptionTmqueue Service returned TPFAIL. This is application level failure.
AtmiTPESVCERRExceptionTmqueue service got system level failure. Server died during the message presence in service queue.
AtmiTPESYSTEMExceptionEnduro/X internal error occurred. See logs for more info.
AtmiTPEOSExceptionSystem failure occurred during serving. See logs i.e. user log, or debugs for more info.