|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.ChannelListener com.jalios.jcms.db.DerbyManager
public class DerbyManager
This class manages the internal Derby server.
Field Summary | |
---|---|
static String |
REVISION
|
Fields inherited from class com.jalios.jcms.ChannelListener |
---|
order |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
Method Summary | |
---|---|
void |
backupDatabase(String backupdirectory)
Backups the database. |
boolean |
checkServerConnection()
Returns true if the connections with Derby can be established. |
void |
freezeDatabase()
Freezes the database. |
File |
getBackupDir()
Returns the backup directory. |
String |
getBackupSchedule()
Returns the backup schedule (JDring/cron syntax). |
String |
getDerbyPath()
|
static DerbyManager |
getInstance()
|
String |
getJdbcUrl()
Returns the JDBC URL to access the internal Derby Server. |
String |
getRuntimeInfo()
Returns runtime information about the running Derby Server. |
int |
getServerPort()
Returns the port of the Derby server. |
String |
getSysInfo()
Returns information about the running Derby Server. |
void |
handleFinalize()
Called when the channel is finalized |
void |
initAfterStoreLoad()
Called just after the store has been loaded and the channel has been initialized. |
void |
initBeforeStoreLoad()
Called just before the store has been loaded. |
boolean |
isBackupEnabled()
Returns true if the backup is enabled. |
boolean |
isServerStarted()
Returns true if internal Derby server has been started. |
void |
performBackup()
Performs a backup of the database and save the backup as a zip file in the backup directory. |
void |
shutdown()
Shutdown the internal Derby server |
void |
unfreezeDatabase()
Unfreezes the database. |
Methods inherited from class com.jalios.jcms.ChannelListener |
---|
compareTo, equals, init |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Method Detail |
---|
public static DerbyManager getInstance()
public boolean checkServerConnection()
public String getDerbyPath()
public String getJdbcUrl()
public boolean isServerStarted()
public int getServerPort()
public boolean isBackupEnabled()
public String getBackupSchedule()
public File getBackupDir()
public String getSysInfo()
public String getRuntimeInfo()
public void freezeDatabase()
public void unfreezeDatabase()
public void backupDatabase(String backupdirectory)
backupdirectory
- the path of the backup directorypublic void shutdown()
public void performBackup()
public void handleFinalize()
ChannelListener
handleFinalize
in class ChannelListener
public void initAfterStoreLoad() throws Exception
ChannelListener
initAfterStoreLoad
in class ChannelListener
Exception
- any exception you may want to throw if a problem occurs needing to interrupt JCMS startup.public void initBeforeStoreLoad() throws Exception
ChannelListener
initBeforeStoreLoad
in class ChannelListener
Exception
- any exception you may want to throw if a problem occurs needing to interrupt JCMS startup.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |