edu.isi.pegasus.planner.refiner
class ThreadPool.AuthenticateThread extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
private boolean |
mAvailable
Whether the thread is available to do some work or not.
|
private int |
mIndex
The unique identifying id of the thread.
|
private String |
mPool
The pool against which to authenticate.
|
private boolean |
mShutdown
Whether to shutdown or not.
|
private Thread |
mThread
The thread object that is used to launch the thread.
|
Constructor and Description |
---|
ThreadPool.AuthenticateThread(int index)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
AuthenticateRequest |
getAuthenticateRequest()
Returns an authentication request to the worker thread.
|
boolean |
isAvailable()
Returns whether a thread is available to do some work or not.
|
void |
join(long millis)
Calls the corresponding join method of the thread associated with
this class.
|
void |
run()
The runnable method of the thread, that is called when the thread is
started.
|
void |
shutdown()
Sets the shutdown flag to true.
|
void |
start()
The start method for the thread.
|
private String mPool
private Thread mThread
private boolean mAvailable
private boolean mShutdown
private int mIndex
public ThreadPool.AuthenticateThread(int index)
public void start()
public boolean isAvailable()
public void shutdown()
public void join(long millis) throws InterruptedException
millis
- The time to wait in milliseconds.InterruptedException
public void run()
public AuthenticateRequest getAuthenticateRequest()