org.sourceforge.jemm.database
Interface DatabaseDebugIF

All Known Implementing Classes:
DefaultDBDebugHandler

public interface DatabaseDebugIF

A debugging/testing interface that Database implementations may expose.

Author:
Rory Graves

Method Summary
 int getObjectCount()
           
 boolean isClientReferenceHeld(ClientId clientId, ID id)
          Returns whether within parent database the given client has a reference to the given object.
 int noLocksHeld()
           
 void triggerGCCycle()
           
 

Method Detail

isClientReferenceHeld

boolean isClientReferenceHeld(ClientId clientId,
                              ID id)
Returns whether within parent database the given client has a reference to the given object.

Parameters:
clientId - The id of the client.
id - The id of the object.
Returns:
True if the given client holds a reference to object 'id'.

triggerGCCycle

void triggerGCCycle()

getObjectCount

int getObjectCount()
Returns:
The number of objects stored in the database.

noLocksHeld

int noLocksHeld()


Copyright © 2009. All Rights Reserved.