es.cesar.quitesleep.ddbb
Class ServerDDBB

java.lang.Object
  extended by es.cesar.quitesleep.ddbb.ServerDDBB
All Implemented Interfaces:
IDDBB

public class ServerDDBB
extends java.lang.Object
implements IDDBB

Author:
Cesar Valiente Gordo

Field Summary
 
Fields inherited from interface es.cesar.quitesleep.interfaces.IDDBB
DDBB_DIR, DDBB_FILE, DEEP, QUITESLEEP_PATH, SDCARD_PATH, SEMAPHORE
 
Method Summary
static void checkServer()
          Function for logs only
static void defrag()
          Function that defrag de Server DDBB File for get free space
protected  void finalize()
          Destructor class function
static com.db4o.ObjectServer getServer()
          Get the server DDBB instance, if the singleton object doesn't create before, we create for use it.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServer

public static com.db4o.ObjectServer getServer()
Get the server DDBB instance, if the singleton object doesn't create before, we create for use it.

Returns:
The server object
See Also:
ObjectsServer

checkServer

public static void checkServer()
Function for logs only


finalize

protected void finalize()
Destructor class function

Overrides:
finalize in class java.lang.Object

defrag

public static void defrag()
Function that defrag de Server DDBB File for get free space