Class SimpleTcpOutputStrategy
- java.lang.Object
-
- org.opennms.netmgt.collection.persistence.tcp.SimpleTcpOutputStrategy
-
- All Implemented Interfaces:
TcpOutputStrategy
public class SimpleTcpOutputStrategy extends Object implements TcpOutputStrategy
Provides a simple non-queued implementation of TcpOutputStrategy that pushes data to the stream one reading at a time.The receiver of this strategy is not defined in any way. This is just a fire and forget strategy. There is no way to read data back into opennms.
-
-
Constructor Summary
Constructors Constructor Description SimpleTcpOutputStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHost()
getHostint
getPort()
getPortvoid
setHost(String host)
setHostvoid
setPort(int port)
setPortvoid
updateData(String path, String owner, Long timestamp, List<Double> dblValues, List<String> strValues)
Updates the TCP output stream with the supplied values
-
-
-
Method Detail
-
getPort
public int getPort()
getPort
- Returns:
- a int.
-
setPort
public void setPort(int port)
setPort
- Parameters:
port
- a int.
-
updateData
public void updateData(String path, String owner, Long timestamp, List<Double> dblValues, List<String> strValues) throws Exception
Updates the TCP output stream with the supplied values- Specified by:
updateData
in interfaceTcpOutputStrategy
- Parameters:
path
- the hierarchy path for the dataowner
- the owner of the datadblValues
- a list of Double valuesstrValues
- a list of String values- Throws:
Exception
- if an error occurs updating the file
-
-