KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > myoodb > collectable > LogStore


1 ///////////////////////////////////////////////////////////////////////////////
2
//
3
// Copyright (C) 2003-@year@ by Thomas M. Hazel, MyOODB (www.myoodb.org)
4
//
5
// All Rights Reserved
6
//
7
// This program is free software; you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License and GNU Library
9
// General Public License as published by the Free Software Foundation;
10
// either version 2, or (at your option) any later version.
11
//
12
// This program is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License and GNU Library General Public License
16
// for more details.
17
//
18
// You should have received a copy of the GNU General Public License
19
// and GNU Library General Public License along with this program; if
20
// not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
21
// MA 02139, USA.
22
//
23
///////////////////////////////////////////////////////////////////////////////
24
package org.myoodb.collectable;
25
26 public interface LogStore extends AbstractCollection
27 {
28     public enum Direction
29     {
30         BACKWARDS(0),
31         FORWARDS(1);
32
33         private final int m_value;
34
35         Direction(int value)
36         {
37             m_value = value;
38         }
39
40         public int intValue()
41         {
42             return m_value;
43         }
44     };
45
46     public enum Container
47     {
48         SIZE(100);
49
50         private final int m_value;
51
52         Container(int value)
53         {
54             m_value = value;
55         }
56
57         public int intValue()
58         {
59             return m_value;
60         }
61     }
62
63     @org.myoodb.MyOodbIndex(value=-300)
64     @org.myoodb.MyOodbAccess(value="Write")
65     public LogObject addLogObject(LogObject logObject);
66
67     @org.myoodb.MyOodbIndex(value=-301)
68     @org.myoodb.MyOodbAccess(value="Write")
69     public LogObject removeLogObject(LogObject logObject);
70
71     @org.myoodb.MyOodbIndex(value=-302)
72     public LogObject getFirstLogObject();
73
74     @org.myoodb.MyOodbIndex(value=-303)
75     public LogObject getLastLogObject();
76
77     @org.myoodb.MyOodbIndex(value=-304)
78     public LogObject getLogObject(long time);
79
80     @org.myoodb.MyOodbIndex(value=-305)
81     public java.util.ArrayList JavaDoc<LogObject> getLogObjects();
82
83     @org.myoodb.MyOodbIndex(value=-306)
84     public java.util.ArrayList JavaDoc<LogObject> getLogObjects(long start, long end);
85
86     @org.myoodb.MyOodbIndex(value=-307)
87     public java.util.ArrayList JavaDoc<LogObject> getLogObjects(long start, long end, Class JavaDoc baseLogObjectType);
88
89     @org.myoodb.MyOodbIndex(value=-308)
90     public java.util.ArrayList JavaDoc<LogObject> getLogObjects(long moment, int number, Direction direction);
91
92     @org.myoodb.MyOodbIndex(value=-309)
93     public java.util.ArrayList JavaDoc<LogObject> getLogObjects(long moment, int number, Direction direction, Class JavaDoc baseLogObjectType);
94
95     @org.myoodb.MyOodbIndex(value=-310)
96     public long getLogStoreSize();
97
98     @org.myoodb.MyOodbIndex(value=-311)
99     public String JavaDoc toString();
100 }
101
Popular Tags