1 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 ; 15 16 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 ; 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 ; 56 57 void abort(Transaction ta) throws IOException ; 58 59 void delete() throws Exception ; 60 61 DxLong cachePriority(); 62 63 public DxCollection allLockers(); 64 65 } 66 | Popular Tags |