204 words

SelfTest and com.objectdb.Doctor

#1
2015-10-29 10:27

Dear Objectdb-Team

We're really pleased with objectdb. Nevertheless we would like to ask for an 'extra' feature.

The class 'com.objectdb.Doctor' enables a self-test for a given Database. We would like to
make a self-test before every start of the database (i.e. the server). In case of fails or errors
we would like to repair the database and/or inform the customer.

So it would be very helpful, if the self-testroutine and the result of the self-test will
be available directly from the application.

best regards
Arne Stocker (Advolux GmbH)

Arne
Arne's picture
Joined on 2013-08-08
User Post #11
#2
2015-10-30 13:46

You can run the Doctor from your application using:

    Doctor.main(new String[] { ... });

Output will be written to the standard output and standard error streams but these can be captured and checked.

This technique is currently in use internally by ObjectDB tests. Not ideal (and obviously dedicated API would be much cleaner) but this could serve as an immediate solution for your current needs.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,325
#3
2015-12-09 09:37

thank you for your reply. We implemented the solution and captured the string-output. 

may we hope for an Api in some future release ?

best regards

Arne

Arne
Arne's picture
Joined on 2013-08-08
User Post #12
#4
2015-12-10 08:49

An API may be added. There is a plan to support running the Doctor online (against an open database) using an API that is similar to the current online backup (i.e. by running a special query against the database).

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,352

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel