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