org.apache.maven.wagon.events

Class WagonEvent

Known Direct Subclasses:
SessionEvent, TransferEvent

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

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

Field Details

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 Details

WagonEvent

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

Method Details

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.