com.jrockit.mc.flightrecorder.util
Class SilentProgressMonitor

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.util.SilentProgressMonitor
All Implemented Interfaces:
IProgressMonitor

public final class SilentProgressMonitor
extends java.lang.Object
implements IProgressMonitor

ProgressMonitor that does not out put any message.

Author:
Erik Gahlin

Constructor Summary
SilentProgressMonitor()
           
 
Method Summary
 void beginTask(int workUnits, java.lang.String description)
          Called when a task begins.
 boolean cancel()
          Cancels the current task.
 void done()
          Finished with all the work
 void doWork(int workUnits)
          Do some work
 void endTask()
          Called when the current task is finished
 void log(Severity severity, java.lang.String message, java.lang.Throwable throwable)
          Logs an error/warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilentProgressMonitor

public SilentProgressMonitor()
Method Detail

beginTask

public void beginTask(int workUnits,
                      java.lang.String description)
Description copied from interface: IProgressMonitor
Called when a task begins.

Specified by:
beginTask in interface IProgressMonitor

cancel

public boolean cancel()
Description copied from interface: IProgressMonitor
Cancels the current task.

Specified by:
cancel in interface IProgressMonitor
Returns:
true if success

doWork

public void doWork(int workUnits)
Description copied from interface: IProgressMonitor
Do some work

Specified by:
doWork in interface IProgressMonitor
Parameters:
workUnits - the number of units to work

done

public void done()
Description copied from interface: IProgressMonitor
Finished with all the work

Specified by:
done in interface IProgressMonitor

endTask

public void endTask()
Description copied from interface: IProgressMonitor
Called when the current task is finished

Specified by:
endTask in interface IProgressMonitor

log

public void log(Severity severity,
                java.lang.String message,
                java.lang.Throwable throwable)
Description copied from interface: IProgressMonitor
Logs an error/warning

Specified by:
log in interface IProgressMonitor
Parameters:
severity - the severity
message - the message
throwable - an optional Throwable. Null if N/A


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.