Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.measurement.server.session
Class SynchronousDataInserter

java.lang.Object
  extended by 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.


Constructor Summary
SynchronousDataInserter()
           
 
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
 

Constructor Detail

SynchronousDataInserter

public SynchronousDataInserter()
Method Detail

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 DataPoints
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 DataPoints
isPriority - 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

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.