当前位置: 首页>>代码示例>>Java>>正文


Java Db4oIOException类代码示例

本文整理汇总了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();
	}
}
 
开发者ID:synergynet,项目名称:synergynet3.1,代码行数:32,代码来源:SynergyNetApp.java

示例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);
		}
	}
}
 
开发者ID:synergynet,项目名称:synergynet3.1,代码行数:35,代码来源:SynergyNetApp.java


注:本文中的com.db4o.ext.Db4oIOException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。