public class DaemonContext<T extends ProtocolContext> extends Object
Daemon has a single configuration context.| Modifier and Type | Method and Description |
|---|---|
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) |
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 - IOExceptionIOExceptionpublic void addListeningInterface(ListeningInterface li)
public void addListeningInterface(InetAddress addressToBind, int portToBind) throws IOException
addressToBind - portToBind - context - IOExceptionpublic 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)
Copyright © 2012. All Rights Reserved.