Class TcpListener
- java.lang.Object
-
- org.opennms.netmgt.telemetry.listeners.TcpListener
-
-
Constructor Summary
Constructors Constructor Description TcpListener(String name, TcpParser parser, com.codahale.metrics.MetricRegistry metrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
getHost()
String
getName()
Collection<? extends Parser>
getParsers()
int
getPort()
void
setHost(String host)
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
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceListener
-
getParsers
public Collection<? extends Parser> getParsers()
- Specified by:
getParsers
in interfaceListener
-
getHost
public String getHost()
-
setHost
public void setHost(String host)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
-