nl.toolforge.karma.core.cmd.event
Class CommandFinishedEvent

java.lang.Object
  extended bynl.toolforge.karma.core.cmd.event.CommandResponseEvent
      extended bynl.toolforge.karma.core.cmd.event.CommandFinishedEvent
All Implemented Interfaces:
Event

public final class CommandFinishedEvent
extends CommandResponseEvent

Generated when a command was finished (without an exception).

Version:
$Id: CommandFinishedEvent.java,v 1.2 2004/10/26 22:47:58 hippe Exp $
Author:
D.A. Smedes

Field Summary
 
Fields inherited from interface nl.toolforge.karma.core.cmd.event.Event
LEVEL_DEBUG, LEVEL_INFO, LEVEL_VERBOSE
 
Constructor Summary
CommandFinishedEvent(Command command, long startTime)
          Creates the event for command.
 
Method Summary
 Message getEventMessage()
          Returns a SimpleMessage formatted as [ <command-name> ] Started..
 long getTime()
          Returns the time this event was generated, effectively, the time the command was finished.
 
Methods inherited from class nl.toolforge.karma.core.cmd.event.CommandResponseEvent
getCommand, getPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandFinishedEvent

public CommandFinishedEvent(Command command,
                            long startTime)
Creates the event for command.

Parameters:
command - The command that has started.
Method Detail

getTime

public long getTime()
Returns the time this event was generated, effectively, the time the command was finished.

Returns:
Finish time of the command.

getEventMessage

public Message getEventMessage()
Returns a SimpleMessage formatted as [ <command-name> ] Started..

Specified by:
getEventMessage in class CommandResponseEvent
Returns:


Copyright © 2002-2004 Toolforge. All Rights Reserved.