
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx |
database |
protected String |
databaseName |
protected ODistributedDatabaseImpl |
distributed |
protected int |
id |
protected com.orientechnologies.orient.core.metadata.security.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 |
|---|---|
protected boolean |
dbNotAvailable(int retry) |
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx |
getDatabase() |
protected String |
getLocalNodeName() |
long |
getProcessedRequests() |
void |
initDatabaseInstance()
Opens the database.
|
boolean |
isWaitingForNextRequest() |
protected ODistributedRequest |
nextMessage() |
protected void |
onMessage(ODistributedRequest iRequest)
Executes the remote call on the local node and send back the result
|
void |
processRequest(ODistributedRequest request) |
protected ODistributedRequest |
readRequest() |
void |
reset() |
void |
run() |
void |
sendShutdown() |
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 com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx database
protected volatile com.orientechnologies.orient.core.metadata.security.OUser lastUser
protected volatile boolean running
public ODistributedWorker(ODistributedDatabaseImpl iDistributed, String iDatabaseName, int i)
public void processRequest(ODistributedRequest request)
public void initDatabaseInstance()
protected boolean dbNotAvailable(int retry)
public void shutdown()
public com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx getDatabase()
protected ODistributedRequest readRequest() throws InterruptedException
InterruptedExceptionpublic boolean isWaitingForNextRequest()
protected ODistributedRequest nextMessage() throws InterruptedException
InterruptedExceptionprotected void onMessage(ODistributedRequest iRequest)
protected String getLocalNodeName()
public long getProcessedRequests()
public void reset()
public void sendShutdown()
Copyright © 2009–2017 OrientDB. All rights reserved.