Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected ODatabaseDocumentInternal |
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,
boolean acceptsWhileNotOnline) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
dbNotAvailable(int retry) |
ODatabaseDocumentInternal |
getDatabase() |
protected String |
getLocalNodeName() |
long |
getProcessedRequests() |
ODistributedRequest |
getProcessing() |
protected void |
handleError(ODistributedRequest iRequest,
Object responsePayload) |
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
|
boolean |
processRequest(ODistributedRequest request) |
protected ODistributedRequest |
readRequest() |
void |
reset() |
void |
run() |
static boolean |
sendResponseBack(Object current,
ODistributedServerManager manager,
ODistributedRequest iRequest,
Object responsePayload) |
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, yield
protected 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 ODatabaseDocumentInternal database
protected volatile OUser lastUser
protected volatile boolean running
public ODistributedWorker(ODistributedDatabaseImpl iDistributed, String iDatabaseName, int i, boolean acceptsWhileNotOnline)
public boolean processRequest(ODistributedRequest request)
public void initDatabaseInstance()
protected boolean dbNotAvailable(int retry)
public void shutdown()
public ODatabaseDocumentInternal getDatabase()
protected ODistributedRequest readRequest() throws InterruptedException
InterruptedException
public boolean isWaitingForNextRequest()
protected ODistributedRequest nextMessage() throws InterruptedException
InterruptedException
protected void onMessage(ODistributedRequest iRequest)
protected void handleError(ODistributedRequest iRequest, Object responsePayload)
protected String getLocalNodeName()
public static boolean sendResponseBack(Object current, ODistributedServerManager manager, ODistributedRequest iRequest, Object responsePayload)
public long getProcessedRequests()
public void reset()
public void sendShutdown()
public ODistributedRequest getProcessing()
Copyright © 2009–2020 OrientDB. All rights reserved.