Class TcpPersistOperationBuilder
- java.lang.Object
-
- org.opennms.netmgt.collection.persistence.tcp.TcpPersistOperationBuilder
-
- All Implemented Interfaces:
PersistOperationBuilder
public class TcpPersistOperationBuilder extends Object implements PersistOperationBuilder
-
-
Constructor Summary
Constructors Constructor Description TcpPersistOperationBuilder(TcpOutputStrategy tcpStrategy, ResourceIdentifier resource, String rrdName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit()
Commit.String
getName()
Used to identify the builder in log messages in an exception is thrown during a call to commit().TimeKeeper
getTimeKeeper()
void
setAttributeMetadata(String metricIdentifier, String name)
void
setAttributeValue(CollectionAttributeType attributeType, Number value)
void
setStringAttributeValue(String key, String value)
void
setTimeKeeper(TimeKeeper timeKeeper)
-
-
-
Constructor Detail
-
TcpPersistOperationBuilder
public TcpPersistOperationBuilder(TcpOutputStrategy tcpStrategy, ResourceIdentifier resource, String rrdName)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:PersistOperationBuilder
Used to identify the builder in log messages in an exception is thrown during a call to commit().- Specified by:
getName
in interfacePersistOperationBuilder
-
setAttributeValue
public void setAttributeValue(CollectionAttributeType attributeType, Number value)
- Specified by:
setAttributeValue
in interfacePersistOperationBuilder
-
setAttributeMetadata
public void setAttributeMetadata(String metricIdentifier, String name)
- Specified by:
setAttributeMetadata
in interfacePersistOperationBuilder
-
commit
public void commit() throws PersistException
Commit.- Specified by:
commit
in interfacePersistOperationBuilder
- Throws:
PersistException
- the persist exception
-
getTimeKeeper
public TimeKeeper getTimeKeeper()
-
setTimeKeeper
public void setTimeKeeper(TimeKeeper timeKeeper)
-
-