TPTP 4.4.0 Monitoring Tools Project
Public API Specification

org.eclipse.hyades.logging.adapter.outputters
Class CBEConvergentFileOutputter

java.lang.Object
  extended byorg.eclipse.hyades.logging.adapter.impl.Component
      extended byorg.eclipse.hyades.logging.adapter.impl.ProcessUnit
          extended byorg.eclipse.hyades.logging.adapter.impl.Outputter
              extended byorg.eclipse.hyades.logging.adapter.outputters.CBEFileOutputter
                  extended byorg.eclipse.hyades.logging.adapter.outputters.CBEConvergentFileOutputter
All Implemented Interfaces:
IComponent, IOutputter, IProcessUnit

public class CBEConvergentFileOutputter
extends CBEFileOutputter

A specialization of the CBEFileOutputter for atomically writing Common Base Events from multiple contexts to a single output file.

Since:
April 23, 2004
See Also:
CBEFileOutputter

Field Summary
 
Fields inherited from class org.eclipse.hyades.logging.adapter.outputters.CBEFileOutputter
fw, rawLogFileName
 
Fields inherited from class org.eclipse.hyades.logging.adapter.impl.ProcessUnit
flushingMode
 
Fields inherited from class org.eclipse.hyades.logging.adapter.impl.Component
logger, status, stopping
 
Constructor Summary
CBEConvergentFileOutputter()
           
 
Method Summary
protected  void setFileWriter()
          Set the FileWriter for this File Outputter
 void stop()
          Closes the file we are writing to.
protected  void writeToFile(java.lang.String event)
          Write the specified event to the file
 
Methods inherited from class org.eclipse.hyades.logging.adapter.outputters.CBEFileOutputter
getDirectory, getFileName, prepareFile, processEventItems, setDirectory, setFileName, testProcessEventItems, update
 
Methods inherited from class org.eclipse.hyades.logging.adapter.impl.ProcessUnit
flushEventItems, getProperties, setProperties, updateConfigurationPropertyChild
 
Methods inherited from class org.eclipse.hyades.logging.adapter.impl.Component
clean, getComponents, getComponentStatus, getConfiguration, getContextConfiguration, getDescription, getEventFactory, getExecutableClassName, getImplementationCreationDate, getImplementationVersion, getImplementationVersionDescription, getItemsProcessedCount, getLogger, getLoggingLevel, getName, getParent, getRole, getRoleCreationDate, getRoleVersion, getRoleVersionDescription, getUniqueID, incrementItemsProcessedCount, incrementItemsProcessedCount, init, isDisabled, isStopping, log, log, setComponents, setConfiguration, setContextConfiguration, setDescription, setDisabled, setExecutableClassName, setImplemenationCreationDate, setImplementationVersion, setImplementationVersionDescription, setLogger, setLoggingLevel, setName, setParent, setRole, setRoleCreationDate, setRoleVersion, setRoleVersionDescription, setStopping, setUniqueID, start, stop, trace, trace, trace, update, updateConfigurationAttribute, updateContextConfigurationAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.hyades.logging.adapter.IProcessUnit
flushEventItems
 
Methods inherited from interface org.eclipse.hyades.logging.adapter.IComponent
getComponents, getConfiguration, getContextConfiguration, getDescription, getExecutableClassName, getImplementationCreationDate, getImplementationVersion, getImplementationVersionDescription, getLogger, getLoggingLevel, getName, getParent, getRole, getRoleCreationDate, getRoleVersion, getRoleVersionDescription, getUniqueID, init, log, log, setComponents, setConfiguration, setContextConfiguration, setDescription, setExecutableClassName, setImplemenationCreationDate, setImplementationVersion, setImplementationVersionDescription, setLogger, setLoggingLevel, setName, setParent, setRole, setRoleCreationDate, setRoleVersion, setRoleVersionDescription, setUniqueID, start, update
 

Constructor Detail

CBEConvergentFileOutputter

public CBEConvergentFileOutputter()
Method Detail

setFileWriter

protected void setFileWriter()
                      throws AdapterException
Set the FileWriter for this File Outputter

Overrides:
setFileWriter in class CBEFileOutputter
Throws:
AdapterException

writeToFile

protected void writeToFile(java.lang.String event)
                    throws java.io.IOException
Write the specified event to the file

Overrides:
writeToFile in class CBEFileOutputter
Parameters:
event - - the event to write to file
Throws:
java.io.IOException
See Also:
CBEFileOutputter.writeToFile(java.lang.String)

stop

public void stop()
Closes the file we are writing to.

Specified by:
stop in interface IComponent
Overrides:
stop in class CBEFileOutputter
See Also:
IComponent.stop()

TPTP 4.4.0 Monitoring Tools Project
Public API Specification