com.waveset.session
Class WavesetConsole.ConsoleBulkMonitor

java.lang.Object
  extended bycom.waveset.session.WavesetConsole.ConsoleBulkMonitor
All Implemented Interfaces:
BulkMonitor
Enclosing class:
WavesetConsole

public class WavesetConsole.ConsoleBulkMonitor
extends java.lang.Object
implements BulkMonitor

Internal monitor class that prints import/export results to the console.


Field Summary
 
Fields inherited from interface com.waveset.session.BulkMonitor
code_id
 
Constructor Summary
WavesetConsole.ConsoleBulkMonitor()
           
WavesetConsole.ConsoleBulkMonitor(java.lang.String source)
           
 
Method Summary
 void error(java.lang.String msg)
          Called for error message that happen during the load.
 java.lang.String getSource()
          Called to get the source of bulk operation, used primarily for auditing should include something like a filename when a file is being imported/exported.
 void processObject(PersistentObject obj, java.lang.String operation)
          Called for each object that is processed.
 void processType(Type t)
          Called as we begin processing a type.
 void setSource(java.lang.String source)
           
 void warning(java.lang.String msg)
          Called for warning message that happen during the load.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WavesetConsole.ConsoleBulkMonitor

public WavesetConsole.ConsoleBulkMonitor()

WavesetConsole.ConsoleBulkMonitor

public WavesetConsole.ConsoleBulkMonitor(java.lang.String source)
Method Detail

processType

public void processType(Type t)
Description copied from interface: BulkMonitor
Called as we begin processing a type.

Specified by:
processType in interface BulkMonitor

processObject

public void processObject(PersistentObject obj,
                          java.lang.String operation)
Description copied from interface: BulkMonitor
Called for each object that is processed. The operation is a string describing what is being done to the object, it may be null if the operation is obvious from context. Examples include "Added", "Updated", "Restored".

Specified by:
processObject in interface BulkMonitor

warning

public void warning(java.lang.String msg)
Description copied from interface: BulkMonitor
Called for warning message that happen during the load.

Specified by:
warning in interface BulkMonitor

error

public void error(java.lang.String msg)
Description copied from interface: BulkMonitor
Called for error message that happen during the load.

Specified by:
error in interface BulkMonitor

getSource

public java.lang.String getSource()
Description copied from interface: BulkMonitor
Called to get the source of bulk operation, used primarily for auditing should include something like a filename when a file is being imported/exported. The audit record will include the source as the objectName.

Specified by:
getSource in interface BulkMonitor

setSource

public void setSource(java.lang.String source)
Specified by:
setSource in interface BulkMonitor