|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.maverick.nio.DaemonContext<T>
public class DaemonContext<T extends ProtocolContext>
Each instance of a Daemon has a single configuration context.
| Method Summary | |
|---|---|
static void |
addEventListener(com.maverick.events.EventListener listener)
|
static void |
addEventListener(EventListener listener)
|
static void |
addEventListener(String threadPrefix,
com.maverick.events.EventListener listener)
|
void |
addListeningInterface(InetAddress addressToBind,
int portToBind)
Add an interface and port to the listening socket list and provide the protocol context. |
void |
addListeningInterface(ListeningInterface li)
|
void |
addListeningInterface(String addressToBind,
int portToBind)
Add an interface and port to the listening socket list and provide the protocol context. |
int |
getBacklog()
|
ListeningInterface[] |
getListeningInterfaces()
Get the listening socket list. |
int |
getReadBufferSize()
|
boolean |
getReuseAddress()
|
Daemon<T> |
getServer()
Get the instance of the SSHD for this context. |
static void |
removeEventListener(String threadPrefix)
|
void |
removeListeningInterface(InetAddress addressBound,
int portBound)
Remove a listening interface from the daemon at runtime. |
void |
removeListeningInterface(String addressBound,
int portBound)
Remove a listening interface from the daemon at runtime. |
void |
setBacklog(int backlog)
|
void |
setReadBufferSize(int readBufferSize)
|
void |
setReuseAddress(boolean reuseAddress)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Daemon<T> getServer()
public int getBacklog()
public boolean getReuseAddress()
public void setBacklog(int backlog)
public void setReuseAddress(boolean reuseAddress)
public void addListeningInterface(String addressToBind,
int portToBind)
throws IOException
addressToBind - StringportToBind - intprotocolContext -
IOException
IOExceptionpublic void addListeningInterface(ListeningInterface li)
public void addListeningInterface(InetAddress addressToBind,
int portToBind)
throws IOException
addressToBind - portToBind - context -
IOException
public void removeListeningInterface(InetAddress addressBound,
int portBound)
addressBound - portBound -
public void removeListeningInterface(String addressBound,
int portBound)
throws UnknownHostException
addressBound - portBound -
UnknownHostExceptionpublic ListeningInterface[] getListeningInterfaces()
public static void addEventListener(com.maverick.events.EventListener listener)
public static void addEventListener(String threadPrefix,
com.maverick.events.EventListener listener)
public static void addEventListener(EventListener listener)
public static void removeEventListener(String threadPrefix)
public int getReadBufferSize()
public void setReadBufferSize(int readBufferSize)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||