org.sapia.taskman
Interface TaskOutput

All Known Implementing Classes:
DefaultTaskOutput

public interface TaskOutput

A instance of this class is used be Task to log their activity.

It is left to implementation to handle the logging method calls in a manner consistent with the "debug level" their name suggests.

Author:
Yanick Duchesne 15-Apr-2003

Method Summary
 void close()
          Closes this instance; allows for implementations to cleanup their resources.
 TaskOutput debug(Object message)
          Outputs a message of "debug" priority.
 TaskOutput error(Object message)
          Outputs a message of "error" priority.
 TaskOutput error(Object message, Throwable err)
          Outputs a message of "error" priority.
 TaskOutput error(Throwable err)
          Outputs a message of "error" priority.
 TaskOutput info(Object message)
          Outputs a message of "info" priority.
 void setTaskName(String name)
          Sets the name of the task to which this instance corresponds, allowing implementations to display which task is currently generating output.
 TaskOutput warning(Object message)
          Outputs a message of "warning" priority.
 

Method Detail

setTaskName

public void setTaskName(String name)
Sets the name of the task to which this instance corresponds, allowing implementations to display which task is currently generating output.

Parameters:
name - a task name.

debug

public TaskOutput debug(Object message)
Outputs a message of "debug" priority.

Parameters:
message - a message, as an Object.

info

public TaskOutput info(Object message)
Outputs a message of "info" priority.

Parameters:
message - a message, as an Object.

warning

public TaskOutput warning(Object message)
Outputs a message of "warning" priority.

Parameters:
message - a message, as an Object.

error

public TaskOutput error(Object message)
Outputs a message of "error" priority.

Parameters:
message - a message, as an Object.

error

public TaskOutput error(Throwable err)
Outputs a message of "error" priority.

Parameters:
err - a Throwable.

error

public TaskOutput error(Object message,
                        Throwable err)
Outputs a message of "error" priority.

Parameters:
message - a message, as an Object.
err - a Throwable.

close

public void close()
Closes this instance; allows for implementations to cleanup their resources.



Copyright © 2002 Sapia Open Community, Inc. All Rights Reserved.