|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread dist1.acb.common.transport.AbstractConnectionServer dist1.acb.CBL.ControlSocket
ControlSocket - responsible for exchange control information such a Environment condition between CBLs.
Nested Class Summary | |
class |
ControlSocket.ClientManager
Client manager |
Field Summary |
Fields inherited from class dist1.acb.common.transport.AbstractConnectionServer |
log, socketPort |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
static boolean |
checkLinkTo(java.lang.String host,
int port)
Checks link to a CBL server. |
static boolean |
checkLinkToImmortalPoint()
Checks link to the 'immortal point' |
protected AbstractPersonalManager |
createPersonalManager(java.net.Socket s,
java.lang.ThreadGroup group)
Concrete creating a PersonalManager |
static ResponseEnvironment |
getEnvironment(java.util.LinkedList srvList)
Returns current condition of the enviroment from an alive CBL |
static ControlSocket |
getInstance()
Returns only one instance of the class |
static java.net.InetSocketAddress |
getPrimary()
Getter for property primary. |
protected void |
handleUnrecoverableError(java.lang.Throwable e)
|
static boolean |
isItI(java.net.InetSocketAddress addr)
Checks if the provided address is our address |
static boolean |
isItI(java.lang.String extendedHostName,
int port)
Checks if the provided address is our address |
static boolean |
requestForHotJoin(CBL cbl)
Tries to connect to the CBL and to send RequestForHostJoin |
static void |
setPrimary(java.net.InetSocketAddress aprimary)
Setter for property primary. |
void |
start()
Initiate some objects and if succeed, causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread. |
Methods inherited from class dist1.acb.common.transport.AbstractConnectionServer |
run |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static ResponseEnvironment getEnvironment(java.util.LinkedList srvList) throws java.lang.RuntimeException
srvList
- Possible alive CBLs
java.lang.RuntimeException
- if something wrongpublic static ControlSocket getInstance()
public static boolean isItI(java.lang.String extendedHostName, int port) throws java.net.UnknownHostException
extendedHostName
- A hostport
- A port
java.net.UnknownHostException
- if our address was not resolvedpublic static boolean isItI(java.net.InetSocketAddress addr) throws java.net.UnknownHostException
addr
- An address
java.net.UnknownHostException
- if our address was not resolvedpublic static void setPrimary(java.net.InetSocketAddress aprimary)
aprimary
- New value of property primary.public static java.net.InetSocketAddress getPrimary()
public static boolean checkLinkTo(java.lang.String host, int port)
host
- Destination hostport
- Destination port
public static boolean checkLinkToImmortalPoint()
public static boolean requestForHotJoin(CBL cbl) throws java.lang.RuntimeException, java.lang.ClassNotFoundException, java.lang.InterruptedException
cbl
- The CBL
java.lang.RuntimeException
- if we must stop attemps for the Hot Join
java.lang.ClassNotFoundException
- if the current class was not found
java.lang.InterruptedException
- Current thread was interruptedpublic void start()
protected AbstractPersonalManager createPersonalManager(java.net.Socket s, java.lang.ThreadGroup group)
createPersonalManager
in class AbstractConnectionServer
s
- A socket with connected clientgroup
- Thread group to which current thread will be related
protected void handleUnrecoverableError(java.lang.Throwable e)
handleUnrecoverableError
in class AbstractConnectionServer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |