com.kuka.common
Class UdpHandler
java.lang.Object
java.util.logging.Handler
com.kuka.common.UdpHandler
public class UdpHandler
- extends Handler
The class extends the handler class and. It uses sockets to send log messages
to a receiver.
- This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.
|
Constructor Summary |
UdpHandler()
This constructor uses the default ip (local host) and the default port
(23458). |
UdpHandler(InetAddress ip,
int port)
This constructor sets the data socket to the committed ip adress and
port. |
| Methods inherited from class java.util.logging.Handler |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UdpHandler
public UdpHandler()
throws Exception
- This constructor uses the default ip (local host) and the default port
(23458).
- Throws:
Exception - The exception is thrown if the socket could not be opened
UdpHandler
public UdpHandler(InetAddress ip,
int port)
throws Exception
- This constructor sets the data socket to the committed ip adress and
port.
- Parameters:
ip - The ip that should receive the log messagesport - The port that should receive the log messages
- Throws:
Exception - The exception is thrown if the socket could not be opened
publish
public void publish(LogRecord record)
- Specified by:
publish in class Handler
flush
public void flush()
- Specified by:
flush in class Handler
close
public void close()
- Specified by:
close in class Handler
Copyright © 2019. All rights reserved.