|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
util.rmi.AbstractRmiListener.BindingThread
private class AbstractRmiListener.BindingThread
A thread that initiates a binding to a special service. The remote object that houses the services is indicated via the naming reference passed to this class's constructor. The service to which it should register is indicated by a class passed to this constructor. This is a not very lucky implementation, but was introdued too late into the concept.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private Class<?> |
caster
This is the class that denotes the service we need. |
private String |
name
This is the reference we should try to register to. |
private long |
period
Wait period between binding-resolving retries. |
private int |
retries
Maximum number of retries, zero for endless. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
private |
AbstractRmiListener.BindingThread(String castername,
Class<?> casterref,
int max,
long sleep)
The binding thread is constructed and started. |
| Method Summary | |
|---|---|
private String |
getBindName()
Returns the binding name we are trying to connect to. |
private Class<?> |
getService()
Returns the server class we want to bind to. |
void |
run()
Runs this thread until canceled, the number of retries has commenced or bindign was successful. |
| Methods inherited from class java.lang.Thread |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private String name
private Class<?> caster
private int retries
private long period
| Constructor Detail |
|---|
private AbstractRmiListener.BindingThread(String castername,
Class<?> casterref,
int max,
long sleep)
| Method Detail |
|---|
public void run()
run in interface Runnablerun in class Threadprivate String getBindName()
private Class<?> getService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||