KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > core > storage > Cluster


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// This file is
5
// Copyright (C) 2003-@year@ Per Nyfelt. All rights reserved.
6
//
7
package org.ozoneDB.core.storage;
8
9 import org.ozoneDB.core.*;
10 import org.ozoneDB.DxLib.DxLong;
11 import org.ozoneDB.DxLib.DxCollection;
12 import org.ozoneDB.DxLib.DxMap;
13
14 import java.io.IOException JavaDoc;
15
16 /**
17  * @author Per Nyfelt
18  */

19 public interface Cluster {
20
21     Env env();
22
23     void setEnv(Env _env);
24
25     Lock lock();
26
27     void setLock(Lock to);
28
29     int size();
30
31     ClusterID clusterID();
32
33     Permissions permissions();
34
35     void registerContainer(StorageObjectContainer storageObjectContainer);
36
37     StorageObjectContainer containerForID(ObjectID id);
38
39     DxMap containers();
40
41     long modTime();
42
43     void updateLockLevel(Transaction ta) throws IOException JavaDoc;
44
45     void removeContainer(StorageObjectContainer container);
46
47     void setCurrentSize(int byteSize);
48
49     void touch();
50
51     void setClusterStore(AbstractClusterStore clusterStore);
52
53     void prepareCommit(Transaction ta);
54
55     void commit(Transaction ta) throws IOException JavaDoc;
56
57     void abort(Transaction ta) throws IOException JavaDoc;
58
59     void delete() throws Exception JavaDoc;
60
61     DxLong cachePriority();
62
63     public DxCollection allLockers();
64
65 }
66
Popular Tags