|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmonks.batch.framework.Repository org.jmonks.batch.framework.repository.db4o.Db4oRepository org.jmonks.batch.framework.repository.db4o.ClientServerDb4oRepository
ClientServerDb4oRepository access the Db4o Server and use it as a repository.
This requires the db4o server configuration in the repository configuration.
Framework provides a utility shell script to start the server. Following is an
example repository configuration to use Db4o in client and server mode.
<repository-config repository-class-name="org.jmonks.batch.framework.repository.db4o.ClientServerDb4oRepository"> <property key="db4o-server-name">server name or IP Address</property> <property key="db4o-server-port">4545</property> <property key="db4o-server-username">scott</property> <property key="db4o-server-password">tiger</property> </repository-config>
Field Summary | |
static java.lang.String |
PROPERTY_DB4O_SERVER_NAME
Property identifies the Db4o Server name which is db4o-server-name . |
static java.lang.String |
PROPERTY_DB4O_SERVER_PASSWORD
Property identifies the Db4o Server password which is db4o-server-password . |
static java.lang.String |
PROPERTY_DB4O_SERVER_PORT
Property identifies the Db4o Server port which is db4o-server-port . |
static java.lang.String |
PROPERTY_DB4O_SERVER_USERNAME
Property identifies the Db4o Server user name which is db4o-server-username . |
Fields inherited from class org.jmonks.batch.framework.repository.db4o.Db4oRepository |
DB4O_REPOSITORY_FILENAME, PROPERTY_DB4O_DIRECTORY, repositoryConfigProperties |
Fields inherited from class org.jmonks.batch.framework.Repository |
jobName |
Constructor Summary | |
ClientServerDb4oRepository()
Enables the creation of the ClientServerDb4oRepository instance from the factory method. |
Method Summary | |
protected com.db4o.ObjectContainer |
createContainer(java.util.Map configProps)
Creates the container by looking at the configuration from given Map. |
protected void |
init(java.util.Map configProps)
Initializes the ClientServerDb4oRepository by accepting the map consist of properties needed to access Db4o server. |
Methods inherited from class org.jmonks.batch.framework.repository.db4o.Db4oRepository |
clearDataTransferredFromThisJob, getDataFromPreviousJob, logStatistics, registerJobMgmtMntrInfo, sendDataToNextJob, unregisterJobMgmtMntrInfo |
Methods inherited from class org.jmonks.batch.framework.Repository |
createRepository |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROPERTY_DB4O_SERVER_NAME
db4o-server-name
.
public static final java.lang.String PROPERTY_DB4O_SERVER_PORT
db4o-server-port
.
public static final java.lang.String PROPERTY_DB4O_SERVER_USERNAME
db4o-server-username
.
public static final java.lang.String PROPERTY_DB4O_SERVER_PASSWORD
db4o-server-password
.
Constructor Detail |
public ClientServerDb4oRepository()
Method Detail |
protected void init(java.util.Map configProps)
Initializes the ClientServerDb4oRepository by accepting the map consist of properties
needed to access Db4o server. This make sure required properties like
db4o-server-name
, db4o-server-port
,
db4o-server-username
and db4o-server-password
have been defined
and the value defined for this property is valid.
init
in class Db4oRepository
configProps
- Map contains the configuration properties.
ConfigurationException
- If any one of the required properties are not defined and
the value specified is invalid.
java.lang.IllegalArgumentException
- If given configProps is null.protected com.db4o.ObjectContainer createContainer(java.util.Map configProps)
Db4oRepository
createContainer
in class Db4oRepository
Db4oRepository.createContainer(Map)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |