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:
java.io.Serializable
Direct Known Subclasses:
SessionEvent, TransferEvent

public class WagonEvent
extends java.util.EventObject

Base class for all events emitted by Wagon objects.

Version:
$Id: WagonEvent.java 162476 2005-04-19 02:49:45Z brett $
Author:
Michal Maczka
See Also:
Serialized Form

Field Summary
protected  Repository repository
          Repository to which the Wagon object which emitted this event is connected
protected  long timestamp
          The time when event occured
 
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 occured
 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 occured
 
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

repository

protected Repository repository
Repository to which the Wagon object which emitted this event is connected


timestamp

protected long timestamp
The time when event occured

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 occured

Returns:
Returns the timestamp.

setTimestamp

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

Parameters:
timestamp - The timestamp to set.