001: ///////////////////////////////////////////////////////////////////////////////
002: //
003: // Copyright (C) 2003-@year@ by Thomas M. Hazel, MyOODB (www.myoodb.org)
004: //
005: // All Rights Reserved
006: //
007: // This program is free software; you can redistribute it and/or modify
008: // it under the terms of the GNU General Public License and GNU Library
009: // General Public License as published by the Free Software Foundation;
010: // either version 2, or (at your option) any later version.
011: //
012: // This program is distributed in the hope that it will be useful,
013: // but WITHOUT ANY WARRANTY; without even the implied warranty of
014: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
015: // GNU General Public License and GNU Library General Public License
016: // for more details.
017: //
018: // You should have received a copy of the GNU General Public License
019: // and GNU Library General Public License along with this program; if
020: // not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
021: // MA 02139, USA.
022: //
023: ///////////////////////////////////////////////////////////////////////////////
024: package org.myoodb.event;
025:
026: import org.myoodb.collectable.*;
027:
028: public interface EventLog extends LogStore {
029: @org.myoodb.MyOodbIndex(value=-400)
030: @org.myoodb.MyOodbAccess(value="Write")
031: public Event addEvent(Event event);
032:
033: @org.myoodb.MyOodbIndex(value=-401)
034: @org.myoodb.MyOodbAccess(value="Write")
035: public Event removeEvent(Event event);
036:
037: @org.myoodb.MyOodbIndex(value=-402)
038: public Event getFirstEvent();
039:
040: @org.myoodb.MyOodbIndex(value=-403)
041: public Event getLastEvent();
042:
043: @org.myoodb.MyOodbIndex(value=-404)
044: public Event getEvent(long time);
045:
046: @org.myoodb.MyOodbIndex(value=-405)
047: public java.util.ArrayList<Event> getEvents();
048:
049: @org.myoodb.MyOodbIndex(value=-406)
050: public java.util.ArrayList<Event> getEvents(long start, long end);
051:
052: @org.myoodb.MyOodbIndex(value=-407)
053: public java.util.ArrayList<Event> getEvents(long start, long end,
054: Collectable ofInterest);
055:
056: @org.myoodb.MyOodbIndex(value=-408)
057: public java.util.ArrayList<Event> getEvents(long start, long end,
058: java.util.ArrayList<Collectable> listOfInterest);
059:
060: @org.myoodb.MyOodbIndex(value=-409)
061: public java.util.ArrayList<Event> getEvents(long start, long end,
062: Class type);
063:
064: @org.myoodb.MyOodbIndex(value=-410)
065: public java.util.ArrayList<Event> getEvents(long start, long end,
066: Class type, Collectable ofInterest);
067:
068: @org.myoodb.MyOodbIndex(value=-411)
069: public java.util.ArrayList<Event> getEvents(long start, long end,
070: Class type, java.util.ArrayList<Collectable> listOfInterest);
071:
072: @org.myoodb.MyOodbIndex(value=-412)
073: public java.util.ArrayList<Event> getEvents(long start, int number,
074: Direction direction);
075:
076: @org.myoodb.MyOodbIndex(value=-413)
077: public java.util.ArrayList<Event> getEvents(long start, int number,
078: Direction direction, Collectable ofInterest);
079:
080: @org.myoodb.MyOodbIndex(value=-414)
081: public java.util.ArrayList<Event> getEvents(long start, int number,
082: Direction direction,
083: java.util.ArrayList<Collectable> listOfInterest);
084:
085: @org.myoodb.MyOodbIndex(value=-415)
086: public java.util.ArrayList<Event> getEvents(long start, int number,
087: Direction direction, Class type);
088:
089: @org.myoodb.MyOodbIndex(value=-416)
090: public java.util.ArrayList<Event> getEvents(long start, int number,
091: Direction direction, Class type, Collectable ofInterest);
092:
093: @org.myoodb.MyOodbIndex(value=-417)
094: public java.util.ArrayList<Event> getEvents(long start, int number,
095: Direction direction, Class type,
096: java.util.ArrayList<Collectable> listOfInterest);
097:
098: @org.myoodb.MyOodbIndex(value=-418)
099: public java.util.ArrayList<Event> listenForEvents(Class type);
100:
101: @org.myoodb.MyOodbIndex(value=-419)
102: public java.util.ArrayList<Event> listenForEvents(Class type,
103: Collectable ofInterest);
104:
105: @org.myoodb.MyOodbIndex(value=-420)
106: public java.util.ArrayList<Event> listenForEvents(Class type,
107: java.util.ArrayList<Collectable> listOfInterest);
108:
109: @org.myoodb.MyOodbIndex(value=-421)
110: public java.util.ArrayList<Event> listenForEvents(Class type,
111: long timeout);
112:
113: @org.myoodb.MyOodbIndex(value=-422)
114: public java.util.ArrayList<Event> listenForEvents(Class type,
115: Collectable ofInterest, long timeout);
116:
117: @org.myoodb.MyOodbIndex(value=-423)
118: public java.util.ArrayList<Event> listenForEvents(Class type,
119: java.util.ArrayList<Collectable> listOfInterest,
120: long timeout);
121:
122: @org.myoodb.MyOodbIndex(value=-424)
123: public java.util.ArrayList<Event> listenForEvents(long moment,
124: Class type);
125:
126: @org.myoodb.MyOodbIndex(value=-425)
127: public java.util.ArrayList<Event> listenForEvents(long moment,
128: Class type, Collectable ofInterest);
129:
130: @org.myoodb.MyOodbIndex(value=-426)
131: public java.util.ArrayList<Event> listenForEvents(long moment,
132: Class type, java.util.ArrayList<Collectable> listOfInterest);
133:
134: @org.myoodb.MyOodbIndex(value=-427)
135: public java.util.ArrayList<Event> listenForEvents(long moment,
136: Class type, long timeout);
137:
138: @org.myoodb.MyOodbIndex(value=-428)
139: public java.util.ArrayList<Event> listenForEvents(long moment,
140: Class type, Collectable ofInterest, long timeout);
141:
142: @org.myoodb.MyOodbIndex(value=-429)
143: public java.util.ArrayList<Event> listenForEvents(long moment,
144: Class type,
145: java.util.ArrayList<Collectable> listOfInterest,
146: long timeout);
147: }
|