|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
core.SingletonManager
A utility class of which at most one instance can exist per VM. Use Singleton.instance() to access this instance.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Method Summary | |
Buffer |
findBufferIP(java.lang.String IP)
NOT USED. |
Socket |
findSocketIP(java.lang.String IP,
int host,
java.lang.String src)
Find and return Socket |
java.lang.String |
getIPAdd()
NOT USED ANYMORE as IP's assigned statically. |
Buffer |
getVnet()
Return the Buffer which is the Virtual Network |
static SingletonManager |
instance()
|
void |
launchapps()
NOT USED ANYMORE ... |
void |
launchGuiApps()
NOTE USED ANYMORE ...!!??! |
void |
run()
Start running the Dispatcher. |
void |
setBuffer(java.lang.String IP,
Buffer inBuffer)
Set input buffer for a node. |
void |
setServerSockets(java.lang.String IP,
java.util.ArrayList serversockets)
Used to provide the Singelton Manager with a reference to the ServerSockets of a node. |
void |
setSockets(java.lang.String IP,
java.util.ArrayList sockets)
Used to provide the SingletonManager with a reference to the Sockets of a node. |
void |
setupServerSocket(java.lang.String IP,
int port,
Socket sock)
This method is used to create a connection to a ServerSocket from a client. |
| 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, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static SingletonManager instance()
public Buffer getVnet()
public void setBuffer(java.lang.String IP,
Buffer inBuffer)
IP - IP Address to which the buffer belongs.inBuffer - The packet input buffer.
public void setSockets(java.lang.String IP,
java.util.ArrayList sockets)
IP - IP Address which the Sockets belong to.sockets - ArrayList of Sockets.
public void setServerSockets(java.lang.String IP,
java.util.ArrayList serversockets)
IP - IP Address which the ServerSockets belong to.serversockets - ArrayList of ServerSockets.public java.lang.String getIPAdd()
public Buffer findBufferIP(java.lang.String IP)
IP -
public Socket findSocketIP(java.lang.String IP,
int host,
java.lang.String src)
IP - IP Address of the Sockethost - port number to which the Socket is bound at the Server.src - port number to which the Socket is bound at the Client.
public void setupServerSocket(java.lang.String IP,
int port,
Socket sock)
throws java.io.IOException
IP - The IP Address of the ServerSocketport - The port at the IP Address to which the Socket is to be bound.sock - The Socket wishing to be bound.
java.io.IOExceptionpublic void launchapps()
public void launchGuiApps()
public void run()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||