本文整理匯總了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);
}
}
示例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;
}
示例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();
}
示例4: checkConnected
import org.hawk.osgiserver.HManager; //導入方法依賴的package包/類
private void checkConnected() {
if (hawkManager == null) {
hawkManager = HManager.getInstance();
}
}
示例5: getHawkModel
import org.hawk.osgiserver.HManager; //導入方法依賴的package包/類
protected HModel getHawkModel()
{
HManager manager = HManager.getInstance();
HModel model = manager.getHawkByName(request.hawkInstance);
return model;
}