org.ozoneDB.core.admin
Class AdminImpl
java.lang.Object
org.ozoneDB.OzoneObject
org.ozoneDB.core.OzoneSupportObject
org.ozoneDB.core.admin.AdminImpl
- All Implemented Interfaces:
- Admin, java.io.Externalizable, org.ozoneDB.OzoneCompatible, org.ozoneDB.OzoneCompatibleOrProxy, org.ozoneDB.OzoneRemote, java.io.Serializable
- public class AdminImpl
- extends OzoneSupportObject
- implements Admin, java.io.Externalizable
This is the server side implementation of the ozone admin system. Some of
the admin functions are directly provided by this class. For other functions
this class serves as a facade for the actual implementation classes.
- Version:
- $Revision: 1.2 $ $Date: 2002/06/08 00:49:39 $
- Author:
- SMB
- See Also:
Admin
,
Serialized Form
Fields inherited from class org.ozoneDB.OzoneObject |
|
Methods inherited from class org.ozoneDB.OzoneObject |
container, database, deleteRecursive, equals, getHandle, getObjectID, handle, hashCode, onActivate, onCreate, onDelete, onPassivate, requireWriteLocking, self, setContainer, toXML |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy |
getObjectID |
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
OBJECT_ID
public static final long OBJECT_ID
- The object ID of the admin object in the database.
- See Also:
- Constant Field Values
OBJECT_NAME
public static final java.lang.String OBJECT_NAME
- The name of the admin object in the database.
- See Also:
- Constant Field Values
env
protected transient Env env
backupRestore
protected transient BackupRestore backupRestore
AdminImpl
public AdminImpl()
init
protected void init()
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
newUser
public void newUser(java.lang.String _name,
int _id)
throws java.lang.Exception
- Specified by:
newUser
in interface Admin
- Throws:
java.lang.Exception
newUser
public void newUser(java.lang.String _name,
java.lang.String _passwd,
int _id)
throws java.lang.Exception
- Specified by:
newUser
in interface Admin
- Throws:
java.lang.Exception
removeUser
public void removeUser(java.lang.String _name)
throws java.lang.Exception
- Specified by:
removeUser
in interface Admin
- Throws:
java.lang.Exception
newGroup
public void newGroup(java.lang.String _name,
int _id)
throws java.lang.Exception
- Specified by:
newGroup
in interface Admin
- Throws:
java.lang.Exception
removeGroup
public void removeGroup(java.lang.String _name)
throws java.lang.Exception
- Specified by:
removeGroup
in interface Admin
- Throws:
java.lang.Exception
addUser2Group
public void addUser2Group(java.lang.String _username,
java.lang.String _groupname)
throws java.lang.Exception
- Specified by:
addUser2Group
in interface Admin
- Throws:
java.lang.Exception
removeUserFromGroup
public void removeUserFromGroup(java.lang.String _username,
java.lang.String _groupname)
throws java.lang.Exception
- Specified by:
removeUserFromGroup
in interface Admin
- Throws:
java.lang.Exception
allUsers
public DxCollection allUsers()
throws java.lang.Exception
- Specified by:
allUsers
in interface Admin
- Throws:
java.lang.Exception
allGroups
public DxCollection allGroups()
throws java.lang.Exception
- Specified by:
allGroups
in interface Admin
- Throws:
java.lang.Exception
userForName
public User userForName(java.lang.String _name)
throws java.lang.Exception
- Specified by:
userForName
in interface Admin
- Throws:
java.lang.Exception
groupForName
public Group groupForName(java.lang.String _name)
throws java.lang.Exception
- Specified by:
groupForName
in interface Admin
- Throws:
java.lang.Exception
userForId
public User userForId(int _id)
throws java.lang.Exception
- Specified by:
userForId
in interface Admin
- Throws:
java.lang.Exception
groupForId
public Group groupForId(int _id)
throws java.lang.Exception
- Specified by:
groupForId
in interface Admin
- Throws:
java.lang.Exception
shutdown
public void shutdown()
throws java.lang.Exception
- Specified by:
shutdown
in interface Admin
- Throws:
java.lang.Exception
beginRestore
public void beginRestore()
throws java.lang.Exception
- Specified by:
beginRestore
in interface Admin
- Throws:
java.lang.Exception
processRestoreChunk
public void processRestoreChunk(byte[] chunk)
throws java.lang.Exception
- Specified by:
processRestoreChunk
in interface Admin
- Throws:
java.lang.Exception
beginBackup
public void beginBackup()
throws java.lang.Exception
- Specified by:
beginBackup
in interface Admin
- Throws:
java.lang.Exception
nextBackupChunk
public byte[] nextBackupChunk()
throws java.lang.Exception
- Specified by:
nextBackupChunk
in interface Admin
- Throws:
java.lang.Exception
numberOfTxs
public int numberOfTxs()
throws java.lang.Exception
- Specified by:
numberOfTxs
in interface Admin
- Throws:
java.lang.Exception
startGarbageCollection
public void startGarbageCollection()
- Specified by:
startGarbageCollection
in interface Admin
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.