| com.db4o.ext.ExtObjectServer
All known Subclasses: com.db4o.internal.cs.ObjectServerImpl,
ExtObjectServer | public interface ExtObjectServer extends ObjectServer(Code) | | extended functionality for the ObjectServer interface.
Every ObjectServer also always is an ExtObjectServer
so a cast is possible.
com.db4o.ObjectServer.ext is a convenient method to perform the cast.
The functionality is split to two interfaces to allow newcomers to
focus on the essential methods.
|
Method Summary | |
public void | backup(String path) backs up the database file used by the ObjectServer.
While the backup is running, the ObjectServer can continue to be
used. | public int | clientCount() returns the number of connected clients. | public Configuration | configure() returns the
Configuration context for this ObjectServer.
Upon opening an ObjectServer with any of the factory methods in the
Db4o class, the global
Configuration context
is copied into the ObjectServer. | public ObjectContainer | objectContainer() returns the ObjectContainer used by the server. | public int | port() | public void | revokeAccess(String userName) removes client access permissions for the specified user. |
backup | public void backup(String path) throws IOException(Code) | | backs up the database file used by the ObjectServer.
While the backup is running, the ObjectServer can continue to be
used. Changes that are made while the backup is in progress, will be applied to
the open ObjectServer and to the backup.
While the backup is running, the ObjectContainer should not be closed.
If a file already exists at the specified path, it will be overwritten.
Parameters: path - a fully qualified path |
clientCount | public int clientCount()(Code) | | returns the number of connected clients.
|
configure | public Configuration configure()(Code) | | returns the
Configuration context for this ObjectServer.
Upon opening an ObjectServer with any of the factory methods in the
Db4o class, the global
Configuration context
is copied into the ObjectServer. The
Configuration can be modified individually for
each ObjectServer without any effects on the global settings.
the Configuration context for this ObjectServer See Also: com.db4o.Db4o.configure |
objectContainer | public ObjectContainer objectContainer()(Code) | | returns the ObjectContainer used by the server.
the ObjectContainer used by the server |
port | public int port()(Code) | | The local port this server uses, 0 if disconnected or in embedded mode |
revokeAccess | public void revokeAccess(String userName)(Code) | | removes client access permissions for the specified user.
Parameters: userName - the name of the user |
|
|