本文整理汇总了Java中com.db4o.ext.Db4oIOException类的典型用法代码示例。如果您正苦于以下问题:Java Db4oIOException类的具体用法?Java Db4oIOException怎么用?Java Db4oIOException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Db4oIOException类属于com.db4o.ext包,在下文中一共展示了Db4oIOException类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onDestroy
import com.db4o.ext.Db4oIOException; //导入依赖的package包/类
/**
* Actions to be performed when the SynergyNetApp window is closed.
*/
@Override
public void onDestroy()
{
ArrayList<SimpleMediaPlayer> mediaPlayers = new ArrayList<SimpleMediaPlayer>(SimpleMediaPlayer.mediaPlayers);
for (SimpleMediaPlayer mediaPlayer : mediaPlayers)
{
mediaPlayer.destroy();
}
if (NETWORKING)
{
try
{
CacheTidy.removeUnusedStudentFiles(tableIdentity);
}
catch (Db4oIOException e)
{
AdditionalSynergyNetUtilities.logInfo("Cannot clean user resources - database not online.");
}
}
if (sync != null)
{
sync.stop();
}
if (NETWORKING)
{
SynergyNetCluster.get().shutdown();
}
}
示例2: initiateSync
import com.db4o.ext.Db4oIOException; //导入依赖的package包/类
/**
* Begin or update listeners for changes to variables in the network
* cluster.
**/
private void initiateSync()
{
if (sync == null)
{
tableIdentity = new WebConfigPrefsItem().getClusterUserName();
if (NETWORKING)
{
AppSystemDeviceControl appSystemDeviceController = new AppSystemDeviceControl(tableIdentity);
sync = new AppSystemSync(appSystemDeviceController, this);
try
{
CacheTidy.removeUnusedStudentFiles(tableIdentity);
}
catch (Db4oIOException e)
{
AdditionalSynergyNetUtilities.logInfo("Cannot clean user resources - database not online.");
}
}
}
else
{
if (NETWORKING)
{
sync.reSync(this);
}
}
}