|
Remote System Explorer DataStore Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.eclipse.dstore.core.server.SecuredThread
public class SecuredThread
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
DataStore |
_dataStore
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SecuredThread()
Constructs a new SecuredThread without a DataStore. |
|
SecuredThread(DataStore dataStore)
Constructs a new SecuredThread given a DataStore. |
|
SecuredThread(Runnable runnable,
DataStore dataStore)
Constructs a new SecuredThread with a DataStore and a runnable. |
|
SecuredThread(Runnable runnable,
String threadName,
DataStore dataStore)
Constructs a new SecuredThread with a DataStore, a runnable and name for the thread. |
|
SecuredThread(ThreadGroup group,
Runnable runnable,
DataStore dataStore)
Constructs a new SecuredThread with a DataStore, a runnable and a ThreadGroup. |
|
SecuredThread(ThreadGroup group,
Runnable runnable,
String threadName,
DataStore dataStore)
Constructs a new SecuredThread with a DataStore, a runnable, a name and a ThreadGroup. |
Method Summary | |
---|---|
void |
run()
When run() is called, a check is made to see if there is an ISystemService. |
void |
setDataStore(DataStore dataStore)
Sets the DataStore associated with the client |
void |
start()
As per bug 228335, this is commented out. |
Methods inherited from class java.lang.Thread |
---|
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, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public DataStore _dataStore
Constructor Detail |
---|
public SecuredThread()
setDataStore(DataStore)
.
public SecuredThread(DataStore dataStore)
dataStore
- used to extract user id and password for a clientpublic SecuredThread(Runnable runnable, DataStore dataStore)
runnable
- the runnable to be executed by the threaddataStore
- used to extract user id and password for a clientpublic SecuredThread(Runnable runnable, String threadName, DataStore dataStore)
runnable
- the runnable to be executed by the threadthreadName
- the name for the SecuredThread being createddataStore
- used to extract user id and password for a clientpublic SecuredThread(ThreadGroup group, Runnable runnable, DataStore dataStore)
group
- the thread group for which this thread will belongrunnable
- the runnable to be executed by the threaddataStore
- used to extract user id and password for a clientpublic SecuredThread(ThreadGroup group, Runnable runnable, String threadName, DataStore dataStore)
group
- the thread group for which this thread will belongrunnable
- the runnable to be executed by the threadthreadName
- the name for the SecuredThread being createddataStore
- used to extract user id and password for a clientMethod Detail |
---|
public void setDataStore(DataStore dataStore)
dataStore
- public void run()
ISystemService.setThreadSecurity(Client)
is called before Thread.run()
is called.
If a Runnable was passed into the constructor for SecuredThread then, when Thread.run()
is called, the Runnable will be invoked.
run
in interface Runnable
run
in class Thread
public void start()
ISystemService.executeThread(SecuredThread)
is called.
In this case, the run() method is invoked in a thread assigned from the running
work threads
If there isn't, the super.start()
is called.
In this case. the run() method is invoked as a new thread.
public void start()
{
try
{
ISystemService systemService = SystemServiceManager.getInstance().getSystemService();
if (systemService != null){
systemService.executeThread(this);
}
else
{
super.start();
}
}
catch(Throwable e)
{
e.printStackTrace(new PrintWriter(System.err));
}
}
start
in class Thread
|
Remote System Explorer DataStore Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |