org.apache.maven.wagon.events

Class WagonEvent

public class WagonEvent extends 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

Field Summary
protected Repositoryrepository
Repository to which the Wagon object which emitted this event is connected
protected longtimestamp
The time when event occured
Constructor Summary
WagonEvent(Wagon source)
Method Summary
longgetTimestamp()
Returns the timestamp which indicated the time when this event has occured
WagongetWagon()
Returns The Wagon object on which the WagonEvent initially occurred
voidsetTimestamp(long timestamp)
Sets the timestamp which indicated the time when this event has occured

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

getTimestamp

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

Returns: Returns the timestamp.

getWagon

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

Returns: The Wagon object on which the WagonEvent initially occurred

setTimestamp

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

Parameters: timestamp The timestamp to set.