Class UdpListener
- java.lang.Object
-
- org.opennms.netmgt.telemetry.listeners.UdpListener
-
-
Field Summary
Fields Modifier and Type Field Description static com.swrve.ratelimitedlogger.RateLimitedLog
RATE_LIMITED_LOG
-
Constructor Summary
Constructors Constructor Description UdpListener(String name, List<UdpParser> parsers, com.codahale.metrics.MetricRegistry metrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
getHost()
int
getMaxPacketSize()
String
getName()
Collection<? extends Parser>
getParsers()
int
getPort()
void
setHost(String host)
void
setMaxPacketSize(int maxPacketSize)
void
setPort(int port)
void
start()
void
stop()
-
-
-
Method Detail
-
start
public void start() throws InterruptedException
- Specified by:
start
in interfaceListener
- Throws:
InterruptedException
-
stop
public void stop() throws InterruptedException
- Specified by:
stop
in interfaceListener
- Throws:
InterruptedException
-
getHost
public String getHost()
-
setHost
public void setHost(String host)
-
setPort
public void setPort(int port)
-
getPort
public int getPort()
-
getMaxPacketSize
public int getMaxPacketSize()
-
setMaxPacketSize
public void setMaxPacketSize(int maxPacketSize)
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceListener
-
getParsers
public Collection<? extends Parser> getParsers()
- Specified by:
getParsers
in interfaceListener
-
-