|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.sdklib.internal.repository.NullTaskMonitor
public class NullTaskMonitor
A no-op implementation of the ITaskMonitor interface.
ILogger is used. Clients could use NullLogger if
they really don't care about the logging either.
| Constructor Summary | |
|---|---|
NullTaskMonitor(com.android.utils.ILogger log)
Creates a no-op ITaskMonitor that defers logging to the specified
logger. |
|
| Method Summary | |
|---|---|
ITaskMonitor |
createSubMonitor(int tickCount)
Creates a sub-monitor that will use up to tickCount on the progress bar. |
UserCredentials |
displayLoginCredentialsPrompt(java.lang.String title,
java.lang.String message)
Always return null. |
boolean |
displayPrompt(java.lang.String title,
java.lang.String message)
Always return false. |
void |
error(java.lang.Throwable t,
java.lang.String errorFormat,
java.lang.Object... args)
|
int |
getProgress()
Always return 1. |
int |
getProgressMax()
Returns the max value of the progress bar, as last set by ITaskMonitor.setProgressMax(int). |
void |
incProgress(int delta)
Increments the current value of the progress bar. |
void |
info(java.lang.String msgFormat,
java.lang.Object... args)
|
boolean |
isCancelRequested()
Always return false. |
void |
log(java.lang.String format,
java.lang.Object... args)
Logs a "normal" information line. |
void |
logError(java.lang.String format,
java.lang.Object... args)
Logs an "error" information line. |
void |
logVerbose(java.lang.String format,
java.lang.Object... args)
Logs a "verbose" information line, that is extra details which are typically not that useful for the end-user and might be hidden until explicitly shown. |
void |
setDescription(java.lang.String format,
java.lang.Object... args)
Sets the description in the current task dialog. |
void |
setProgressMax(int max)
Sets the max value of the progress bar. |
void |
verbose(java.lang.String msgFormat,
java.lang.Object... args)
|
void |
warning(java.lang.String warningFormat,
java.lang.Object... args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullTaskMonitor(com.android.utils.ILogger log)
ITaskMonitor that defers logging to the specified
logger.
This can be passed to methods that require a monitor when the caller doesn't
have any UI to update or means to report tracked progress.
log - An ILogger. Must not be null. Consider using NullLogger.| Method Detail |
|---|
public void setDescription(java.lang.String format,
java.lang.Object... args)
ITaskMonitor
setDescription in interface ITaskMonitor
public void log(java.lang.String format,
java.lang.Object... args)
ITaskMonitor
log in interface ITaskMonitor
public void logError(java.lang.String format,
java.lang.Object... args)
ITaskMonitor
logError in interface ITaskMonitor
public void logVerbose(java.lang.String format,
java.lang.Object... args)
ITaskMonitor
logVerbose in interface ITaskMonitorpublic void setProgressMax(int max)
ITaskMonitorITaskMonitor.incProgress(int) or
ITaskMonitor.getProgress() or ITaskMonitor.createSubMonitor(int). Callers are
discouraged from using more than once -- implementations can either discard
the next calls or behave incoherently.
setProgressMax in interface ITaskMonitorpublic int getProgressMax()
ITaskMonitorITaskMonitor.setProgressMax(int).
Returns 0 if the max has never been set yet.
getProgressMax in interface ITaskMonitorpublic void incProgress(int delta)
ITaskMonitor
incProgress in interface ITaskMonitorpublic int getProgress()
getProgress in interface ITaskMonitorpublic boolean isCancelRequested()
isCancelRequested in interface ITaskMonitorpublic ITaskMonitor createSubMonitor(int tickCount)
ITaskMonitor
createSubMonitor in interface ITaskMonitor
public boolean displayPrompt(java.lang.String title,
java.lang.String message)
displayPrompt in interface ITaskMonitortitle - The title of the dialog boxmessage - The error message
public UserCredentials displayLoginCredentialsPrompt(java.lang.String title,
java.lang.String message)
displayLoginCredentialsPrompt in interface ITaskMonitortitle - The title of the dialog box.message - The message to be displayed as an instruction.
public void error(@Nullable
java.lang.Throwable t,
@Nullable
java.lang.String errorFormat,
java.lang.Object... args)
error in interface com.android.utils.ILogger
public void warning(@NonNull
java.lang.String warningFormat,
java.lang.Object... args)
warning in interface com.android.utils.ILogger
public void info(@NonNull
java.lang.String msgFormat,
java.lang.Object... args)
info in interface com.android.utils.ILogger
public void verbose(@NonNull
java.lang.String msgFormat,
java.lang.Object... args)
verbose in interface com.android.utils.ILogger
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||