public class DpTrans extends Thread
DpTransCallback
,
DpDataCallback
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier and Type | Method and Description |
---|---|
Iterator<DpAccumulate> |
accumulated()
Returns an iterator for the accumulated
objects.
|
void |
dataSetTimeout(int timeoutSeconds)
A data callback should normally complete "quickly", since e.g.
|
int |
getDBName()
The database name.
|
int |
getDeviceType()
for ConfM
The device type
(needs to be public since access from Maapi package)
|
int |
getDevNo()
for ConfM
The device number
(needs to be public since access from Maapi package)
|
Dp |
getDp()
Return the data provider (DP) instance that this transaction
belongs to.
|
int |
getMode()
The mode.
|
ArrayList<ConfNamespace> |
getNsList()
Returns the namespace list stored by the data provider.
|
String |
getOpaque()
If the tailf:opaque substatement has been used with the tailf:callpoint
statement in the data model, the argument string is made available to
the callbacks via this method
|
long |
getSecondaryIndex()
Secondary index.
|
Socket |
getSocket()
Return the worker socket
socket . |
int |
getTransaction()
Return the current transaction handle.
|
Object |
getTransactionUserOpaque()
Get method for User owned opaque data.
|
DpUserInfo |
getUserInfo()
The user information.
|
Socket |
getWorkerSocket() |
void |
honorFilter(boolean h)
Tell the server whether the currently requested filtering is being
honored or not.
|
boolean |
isHideInactive()
hideInactive flag.
|
void |
run()
Runs the thread.
|
void |
setSocket(Socket sock)
A possibility to give a specified worker socket
for the transaction.
|
void |
setTransactionUserOpaque(Object opaque)
Set method for User owned opaque data.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public Dp getDp()
public int getTransaction()
public Socket getSocket()
socket
.
A default is allocated by Dp
, but
this can be changed with setSocket from
the init callback (e.g before the socket is connected to Conf)public int getMode()
public int getDBName()
public DpUserInfo getUserInfo()
public Object getTransactionUserOpaque()
public void setTransactionUserOpaque(Object opaque)
opaque
- public String getOpaque()
public long getSecondaryIndex()
public boolean isHideInactive()
public int getDevNo()
public int getDeviceType()
public void setSocket(Socket sock)
If this option is used the Socket needs to be connected to ConfD/NCS.
sock
- A socket connected to ConfD/NCS.public Socket getWorkerSocket()
public void honorFilter(boolean h)
h
- whether or not the filter is being honoredpublic void run()
public ArrayList<ConfNamespace> getNsList()
public Iterator<DpAccumulate> accumulated()
public void dataSetTimeout(int timeoutSeconds) throws IOException, DpCallbackException
timeoutSeconds
- timeout in secondsIOException
DpException
DpCallbackException