Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::logging::TestLogDispatcher Class Reference

Inheritance diagram for alma::acs::logging::TestLogDispatcher:

Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::TestLogDispatcher:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

void writeRecords (Any[] anyLogRecordsArray) throws UserException

Package Functions

 TestLogDispatcher (ORB orb, AcsLogFormatter xmlLogFormatter)
String[] getCollectedXmlLogRecords ()
void clearCollectedXmlLogRecords ()
void setVerbose (boolean verbose)
void setWriteFailureChance (double writeFailureChance)

Private Attributes

final List< String > xmlLogRecordList = new ArrayList<String>()
boolean verbose = true
double writeFailureChance = 0.0
final Random random = new Random(System.currentTimeMillis())

Constructor & Destructor Documentation

alma::acs::logging::TestLogDispatcher::TestLogDispatcher ORB  orb,
AcsLogFormatter  xmlLogFormatter
[inline, package]
 


Member Function Documentation

void alma::acs::logging::TestLogDispatcher::clearCollectedXmlLogRecords  )  [inline, package]
 

String [] alma::acs::logging::TestLogDispatcher::getCollectedXmlLogRecords  )  [inline, package]
 

void alma::acs::logging::TestLogDispatcher::setVerbose boolean  verbose  )  [inline, package]
 

void alma::acs::logging::TestLogDispatcher::setWriteFailureChance double  writeFailureChance  )  [inline, package]
 

Sets the chance that a call to writeRecords will fail with an exception.

Parameters:
writeFailureChance probability between 0.0 and 1.0 inclusive

void alma::acs::logging::TestLogDispatcher::writeRecords Any[]  anyLogRecordsArray  )  throws UserException [inline, protected]
 

The CORBA call to Log#write_records(Any[]). May be faked by test subclasses.

Parameters:
anyLogRecordsArray 
Exceptions:
UserException 

Reimplemented from alma::acs::logging::RemoteLogDispatcher.


Member Data Documentation

final Random alma::acs::logging::TestLogDispatcher::random = new Random(System.currentTimeMillis()) [private]
 

boolean alma::acs::logging::TestLogDispatcher::verbose = true [private]
 

double alma::acs::logging::TestLogDispatcher::writeFailureChance = 0.0 [private]
 

final List<String> alma::acs::logging::TestLogDispatcher::xmlLogRecordList = new ArrayList<String>() [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:43 2009 for ACS Java API by doxygen 1.3.8