org.hyperic.hq.measurement.server.session
Class SynchronousDataInserter
java.lang.Object
org.hyperic.hq.measurement.server.session.SynchronousDataInserter
- All Implemented Interfaces:
- DataInserter
public class SynchronousDataInserter
- extends java.lang.Object
- implements DataInserter
A DataInserter
which immediately calls addData in the data manager
and will not return until the data has been written to the DB.
Method Summary |
java.lang.Object |
getLock()
|
void |
insertMetrics(java.util.List metricData)
Insert data into the DB, possibly blocking. |
void |
insertMetrics(java.util.List metricData,
boolean isPriority)
Insert priority data into the DB, possibly blocking. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynchronousDataInserter
public SynchronousDataInserter()
insertMetrics
public void insertMetrics(java.util.List metricData)
throws java.lang.InterruptedException
- Description copied from interface:
DataInserter
- Insert data into the DB, possibly blocking.
- Specified by:
insertMetrics
in interface DataInserter
- Parameters:
metricData
- a list of DataPoint
s
- Throws:
java.lang.InterruptedException
getLock
public java.lang.Object getLock()
- Specified by:
getLock
in interface DataInserter
insertMetrics
public void insertMetrics(java.util.List metricData,
boolean isPriority)
throws java.lang.InterruptedException,
DataInserterException
- Description copied from interface:
DataInserter
- Insert priority data into the DB, possibly blocking. This may or may not
be implemented by the inherited class.
- Specified by:
insertMetrics
in interface DataInserter
- Parameters:
metricData
- a list of DataPoint
sisPriority
- tells the inserter to prioritize the metricData List.
When implemented the DataInserter will give will insert the priority
data before the low priority data.
- Throws:
java.lang.InterruptedException
DataInserterException
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.