com.chaosserver.bilbo.task
Interface Task

All Known Implementing Classes:
BaseTask

public interface Task

A task that can be processed as part of Bilbo.

All Bilbo tasks must implement this interface.

Since:
Bilbo 2.0

Method Summary
 void execute()
          Executes the task.
 void parseTaskArguments(String argumentString)
          Parses the task specific argument string.
 void setSettings(Settings settings)
          Setter for the settings object.
 

Method Detail

setSettings

public void setSettings(Settings settings)
Setter for the settings object.

Parameters:
settings - the settings object

parseTaskArguments

public void parseTaskArguments(String argumentString)
                        throws BadTaskCommandArgumentsException
Parses the task specific argument string.

Parameters:
argumentString - the task specific argument string
Throws:
BadTaskCommandArgumentsException - if the argument string is invalid

execute

public void execute()
             throws TaskException
Executes the task.

Throws:
TaskException - if something goes wrong


Copyright © 20020228