|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectServer
the db4o server interface.
- db4o servers can be opened with Db4o.openServer(String, int)
.
- Direct in-memory connections to servers can be made with openClient()
- TCP connections are available through Db4o.openClient(String, int, String, String)
.
Before connecting clients over TCP, you have to
grantAccess(String, String)
to the username and password combination
that you want to use.
Db4o.openServer
,
ExtObjectServer for extended functionality
Method Summary | |
---|---|
boolean |
close()
closes the ObjectServer and writes all cached data. |
ExtObjectServer |
ext()
returns an ObjectServer with extended functionality. |
void |
grantAccess(java.lang.String userName,
java.lang.String password)
grants client access to the specified user with the specified password. |
ObjectContainer |
openClient()
opens a client against this server. |
ObjectContainer |
openClient(Configuration config)
See openClient() |
Method Detail |
---|
boolean close()
ObjectServer
and writes all cached data.
ExtObjectServer ext()
ObjectServer
with extended functionality.
ObjectServer
can be casted to an ExtObjectServer
.
void grantAccess(java.lang.String userName, java.lang.String password)
userName
- the name of the userpassword
- the password to be usedObjectContainer openClient()
Db4o.openClient(java.lang.String, int, java.lang.String, java.lang.String)
ObjectContainer openClient(Configuration config)
openClient()
config
- a custom Configuration
instance to be obtained via Db4o.newConfiguration()
ObjectContainer
|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |