Modifier and Type | Class and Description |
---|---|
static interface |
DiagnosticsHandler.ProbeHandler |
Modifier and Type | Field and Description |
---|---|
protected MulticastSocket |
diag_sock |
protected InetAddress |
diagnostics_addr |
protected int |
diagnostics_port |
protected Set<DiagnosticsHandler.ProbeHandler> |
handlers |
protected Log |
log |
protected SocketFactory |
socket_factory |
protected Thread |
thread |
protected ThreadFactory |
thread_factory |
static String |
THREAD_NAME |
Constructor and Description |
---|
DiagnosticsHandler(InetAddress diagnostics_addr,
int diagnostics_port,
Log log,
SocketFactory socket_factory,
ThreadFactory thread_factory) |
Modifier and Type | Method and Description |
---|---|
protected void |
bindToInterfaces(List<NetworkInterface> interfaces,
MulticastSocket s) |
Set<DiagnosticsHandler.ProbeHandler> |
getProbeHandlers() |
Thread |
getThread() |
protected void |
handleDiagnosticProbe(SocketAddress sender,
DatagramSocket sock,
String request) |
void |
registerProbeHandler(DiagnosticsHandler.ProbeHandler handler) |
void |
run() |
protected static void |
sendResponse(DatagramSocket sock,
SocketAddress sender,
byte[] buf) |
void |
start() |
void |
stop() |
void |
unregisterProbeHandler(DiagnosticsHandler.ProbeHandler handler) |
public static final String THREAD_NAME
protected Thread thread
protected MulticastSocket diag_sock
protected InetAddress diagnostics_addr
protected int diagnostics_port
protected final Set<DiagnosticsHandler.ProbeHandler> handlers
protected final Log log
protected final SocketFactory socket_factory
protected final ThreadFactory thread_factory
public DiagnosticsHandler(InetAddress diagnostics_addr, int diagnostics_port, Log log, SocketFactory socket_factory, ThreadFactory thread_factory)
public Thread getThread()
public Set<DiagnosticsHandler.ProbeHandler> getProbeHandlers()
public void registerProbeHandler(DiagnosticsHandler.ProbeHandler handler)
public void unregisterProbeHandler(DiagnosticsHandler.ProbeHandler handler)
public void start() throws IOException
IOException
public void stop()
protected void handleDiagnosticProbe(SocketAddress sender, DatagramSocket sock, String request)
protected static void sendResponse(DatagramSocket sock, SocketAddress sender, byte[] buf) throws IOException
IOException
protected void bindToInterfaces(List<NetworkInterface> interfaces, MulticastSocket s)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.