org.apache.maven.wagon.events
Class WagonEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.apache.maven.wagon.events.WagonEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SessionEvent, TransferEvent

public class WagonEvent
extends EventObject

Base class for all events emitted by Wagon objects.

Version:
$Id: WagonEvent.java 682051 2008-08-02 21:29:38Z hboutemy $
Author:
Michal Maczka
See Also:
Serialized Form

Field Summary
protected  long timestamp
          The time when event occurred
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
WagonEvent(Wagon source)
           
 
Method Summary
 long getTimestamp()
          Returns the timestamp which indicated the time when this event has occurred
 Wagon getWagon()
          Returns The Wagon object on which the WagonEvent initially occurred
 void setTimestamp(long timestamp)
          Sets the timestamp which indicated the time when this event has occurred
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

timestamp

protected long timestamp
The time when event occurred

Constructor Detail

WagonEvent

public WagonEvent(Wagon source)
Parameters:
source - The Wagon object on which the WagonEvent initially occurred
Method Detail

getWagon

public Wagon getWagon()
Returns The Wagon object on which the WagonEvent initially occurred

Returns:
The Wagon object on which the WagonEvent initially occurred

getTimestamp

public long getTimestamp()
Returns the timestamp which indicated the time when this event has occurred

Returns:
Returns the timestamp.

setTimestamp

public void setTimestamp(long timestamp)
Sets the timestamp which indicated the time when this event has occurred

Parameters:
timestamp - The timestamp to set.


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.