org.hyperic.hq.measurement.server.session
Class SynchronousAvailDataInserter
java.lang.Object
org.hyperic.hq.measurement.server.session.SynchronousAvailDataInserter
- All Implemented Interfaces:
- DataInserter
public class SynchronousAvailDataInserter
- extends java.lang.Object
- implements DataInserter
Method Summary |
java.lang.Object |
getLock()
|
void |
insertMetrics(java.util.List availData)
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 |
SynchronousAvailDataInserter
public SynchronousAvailDataInserter(java.lang.Object lock)
insertMetrics
public void insertMetrics(java.util.List availData)
throws java.lang.InterruptedException,
DataInserterException
- Description copied from interface:
DataInserter
- Insert data into the DB, possibly blocking.
- Specified by:
insertMetrics
in interface DataInserter
- Parameters:
availData
- a list of DataPoint
s
- Throws:
java.lang.InterruptedException
DataInserterException
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.