atg.service.datacollection
Class DataCollectorService

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.service.datacollection.DataCollectorService
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, DataCollector, DataListener, java.util.EventListener
Direct Known Subclasses:
GenericSummarizer

public abstract class DataCollectorService
extends GenericService
implements DataCollector


Field Summary
static java.lang.String CLASS_VERSION
           
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
DataCollectorService()
           
 
Method Summary
 void doStopService()
          Stop the service.
 void flush()
          Perform complete flush operation.
 void flushListeners()
          Flush each of our listeners that are data collectors.
 boolean isPropagateFlush()
          Get property PropagateFlush
abstract  void localFlush()
          Flush data.
 void setPropagateFlush(boolean pPropagateFlush)
          Set property PropagateFlush
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStartService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface atg.service.datacollection.DataListener
addDataItem
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

DataCollectorService

public DataCollectorService()
Method Detail

setPropagateFlush

public void setPropagateFlush(boolean pPropagateFlush)
Set property PropagateFlush

Parameters:
pPropagateFlush - new value to set

isPropagateFlush

public boolean isPropagateFlush()
Get property PropagateFlush

Returns:
PropagateFlush

localFlush

public abstract void localFlush()
Flush data.


flush

public void flush()
Perform complete flush operation. Flush our data to listeners, and flush our listeners as well, if appropriate

Specified by:
flush in interface DataCollector

flushListeners

public void flushListeners()
Flush each of our listeners that are data collectors.


doStopService

public void doStopService()
                   throws ServiceException
Stop the service. Before stopping the service we flush our data.

Overrides:
doStopService in class GenericService
Throws:
ServiceException - if the Service had a problem shutting down