jenkins.plugins.htmlaudio.domain
Interface BuildEventRepository

All Known Implementing Classes:
VolatileBuildEventRepository

public interface BuildEventRepository

Repository for BuildEvents.

Author:
Lars Hvile

Method Summary
 void add(BuildEvent event)
          Adds a new BuildEvent.
 java.util.Collection<BuildEvent> findNewerThan(long buildEventId)
          Returns each BuildEvent that is newer than, i.e.
 java.lang.Long getLastEventId()
          Returns the id of the newest BuildEvent or null if the repository is empty.
 java.util.Collection<BuildEvent> list()
          Returns each existing BuildEvent.
 void remove(BuildEvent event)
          Removes an existing BuildEvent.
 

Method Detail

add

void add(BuildEvent event)
Adds a new BuildEvent.


remove

void remove(BuildEvent event)
Removes an existing BuildEvent.


list

java.util.Collection<BuildEvent> list()
Returns each existing BuildEvent.


findNewerThan

java.util.Collection<BuildEvent> findNewerThan(long buildEventId)
Returns each BuildEvent that is newer than, i.e. happened after, a provided event.


getLastEventId

java.lang.Long getLastEventId()
Returns the id of the newest BuildEvent or null if the repository is empty.



Copyright © 2004-2011. All Rights Reserved.