當前位置: 首頁>>代碼示例>>Java>>正文


Java HManager.getInstance方法代碼示例

本文整理匯總了Java中org.hawk.osgiserver.HManager.getInstance方法的典型用法代碼示例。如果您正苦於以下問題:Java HManager.getInstance方法的具體用法?Java HManager.getInstance怎麽用?Java HManager.getInstance使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.hawk.osgiserver.HManager的用法示例。


在下文中一共展示了HManager.getInstance方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createInstance

import org.hawk.osgiserver.HManager; //導入方法依賴的package包/類
@Override
public void createInstance(String name, String backend, int minDelay, int maxDelay, List<String> plugins) throws TException {
	try {
		final HManager manager = HManager.getInstance();
		if (manager.getHawkByName(name) == null) {
			HModel model = HModel.create(new LocalHawkFactory(), name, storageFolder(name),
					null, backend, plugins,
					manager, new SecurePreferencesCredentialsStore(), minDelay, maxDelay);
			addStateListener(model);
		}
	} catch (Exception ex) {
		throw new TException(ex);
	}
}
 
開發者ID:mondo-project,項目名稱:mondo-integration,代碼行數:15,代碼來源:HawkThriftIface.java

示例2: HawkServerConfigurator

import org.hawk.osgiserver.HManager; //導入方法依賴的package包/類
public HawkServerConfigurator(Iface iface) {
	this.iface = iface;

	hawkInstanceConfigs = new ArrayList<HawkInstanceConfig>();
	manager = HManager.getInstance();
	parser = new ConfigFileParser();
	numberOfConfiguredInstances = 0;
}
 
開發者ID:mondo-project,項目名稱:mondo-hawk,代碼行數:9,代碼來源:HawkServerConfigurator.java

示例3: setup

import org.hawk.osgiserver.HManager; //導入方法依賴的package包/類
@BeforeClass
static public void setup() {
	initConfigurationFolder();
	setupAndCopyPathsInXmlFile(xmlFileName_1);
	setupAndCopyPathsInXmlFile(xmlFileName_2);
	manager = HManager.getInstance();
	hawkIface = new HawkThriftIface(ThriftProtocol.TUPLE, null, null);
	serverConfigurator = new HawkServerConfigurator(hawkIface);
	serverConfigurator.loadHawkServerConfigurations();		
}
 
開發者ID:mondo-project,項目名稱:mondo-hawk,代碼行數:11,代碼來源:HawkServerConfiguratorTest.java

示例4: checkConnected

import org.hawk.osgiserver.HManager; //導入方法依賴的package包/類
private void checkConnected() {
	if (hawkManager == null) {
		hawkManager = HManager.getInstance();
	}
}
 
開發者ID:mondo-project,項目名稱:mondo-integration,代碼行數:6,代碼來源:ServerCommandProvider.java

示例5: getHawkModel

import org.hawk.osgiserver.HManager; //導入方法依賴的package包/類
protected HModel getHawkModel()
{
	HManager manager = HManager.getInstance();
	HModel model = manager.getHawkByName(request.hawkInstance);
	return model;
}
 
開發者ID:mondo-project,項目名稱:mondo-integration,代碼行數:7,代碼來源:IFCExportJobExecutor.java


注:本文中的org.hawk.osgiserver.HManager.getInstance方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。