1 9 package org.ozoneDB.core.admin; 10 11 import org.ozoneDB.*; 12 import org.ozoneDB.core.*; 13 import org.ozoneDB.DxLib.*; 14 15 16 22 public interface Admin extends OzoneRemote { 23 24 public void newUser(String _name, int _id) throws Exception ; 25 26 public void newUser(String _name, String _passwd, int _id) throws Exception ; 27 28 public void removeUser(String _name) throws Exception ; 29 30 public void newGroup(String _name, int _id) throws Exception ; 31 32 public void removeGroup(String _name) throws Exception ; 33 34 public void addUser2Group(String _username, String _groupname) throws Exception ; 35 36 public void removeUserFromGroup(String _username, String _groupname) throws Exception ; 37 38 public DxCollection allUsers() throws Exception ; 39 40 public DxCollection allGroups() throws Exception ; 41 42 public User userForName(String _name) throws Exception ; 43 44 public Group groupForName(String _name) throws Exception ; 45 46 public User userForId(int _id) throws Exception ; 47 48 public Group groupForId(int _id) throws Exception ; 49 50 public void shutdown() throws Exception ; 51 52 public void beginRestore() throws Exception ; 54 public void processRestoreChunk(byte[] chunk) throws Exception ; 56 public void beginBackup() throws Exception ; 58 public byte[] nextBackupChunk() throws Exception ; 60 public int numberOfTxs() throws Exception ; 61 62 public void startGarbageCollection(); 63 } 64 | Popular Tags |