
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected ODatabaseDocumentTx |
database |
protected String |
databaseName |
protected ODistributedDatabaseImpl |
distributed |
protected int |
id |
protected OUser |
lastUser |
protected String |
localNodeName |
protected ArrayBlockingQueue<ODistributedRequest> |
localQueue |
protected ODistributedServerManager |
manager |
protected ODistributedMessageServiceImpl |
msgService |
protected boolean |
running |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ODistributedWorker(ODistributedDatabaseImpl iDistributed,
String iDatabaseName,
int i) |
| Modifier and Type | Method and Description |
|---|---|
ODatabaseDocumentTx |
getDatabase() |
protected String |
getLocalNodeName() |
void |
initDatabaseInstance() |
protected ODistributedRequest |
nextMessage() |
protected void |
onMessage(ODistributedRequest iRequest)
Execute the remote call on the local node and send back the result
|
void |
processRequest(ODistributedRequest request) |
protected ODistributedRequest |
readRequest() |
void |
run() |
void |
shutdown() |
activeCount, checkAccess, clone, 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, yieldprotected final ODistributedDatabaseImpl distributed
protected final ODistributedServerManager manager
protected final ODistributedMessageServiceImpl msgService
protected final String localNodeName
protected final String databaseName
protected final ArrayBlockingQueue<ODistributedRequest> localQueue
protected final int id
protected volatile ODatabaseDocumentTx database
protected volatile OUser lastUser
protected volatile boolean running
public ODistributedWorker(ODistributedDatabaseImpl iDistributed, String iDatabaseName, int i)
public void processRequest(ODistributedRequest request)
public void initDatabaseInstance()
public void shutdown()
public ODatabaseDocumentTx getDatabase()
protected ODistributedRequest readRequest() throws InterruptedException
InterruptedExceptionprotected ODistributedRequest nextMessage() throws InterruptedException
InterruptedExceptionprotected void onMessage(ODistributedRequest iRequest)
protected String getLocalNodeName()
Copyright © 2009–2016 Orient Technologies. All rights reserved.