Package com.db4o.cs.internal.config
Class StandardClientServerFactory
- java.lang.Object
-
- com.db4o.cs.internal.config.StandardClientServerFactory
-
- All Implemented Interfaces:
ClientServerFactory
public class StandardClientServerFactory extends java.lang.Object implements ClientServerFactory
-
-
Constructor Summary
Constructors Constructor Description StandardClientServerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectContainer
openClient(ClientConfiguration clientConfig, java.lang.String hostName, int port, java.lang.String user, java.lang.String password)
ObjectServer
openServer(ServerConfiguration config, java.lang.String databaseFileName, int port)
-
-
-
Method Detail
-
openClient
public ObjectContainer openClient(ClientConfiguration clientConfig, java.lang.String hostName, int port, java.lang.String user, java.lang.String password) throws Db4oIOException, OldFormatException, InvalidPasswordException
- Specified by:
openClient
in interfaceClientServerFactory
- Throws:
Db4oIOException
OldFormatException
InvalidPasswordException
-
openServer
public ObjectServer openServer(ServerConfiguration config, java.lang.String databaseFileName, int port) throws Db4oIOException, IncompatibleFileFormatException, OldFormatException, DatabaseFileLockedException, DatabaseReadOnlyException
- Specified by:
openServer
in interfaceClientServerFactory
- Throws:
Db4oIOException
IncompatibleFileFormatException
OldFormatException
DatabaseFileLockedException
DatabaseReadOnlyException
-
-