本文整理汇总了Java中org.hawk.core.IHawk类的典型用法代码示例。如果您正苦于以下问题:Java IHawk类的具体用法?Java IHawk怎么用?Java IHawk使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IHawk类属于org.hawk.core包,在下文中一共展示了IHawk类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create
import org.hawk.core.IHawk; //导入依赖的package包/类
@Override
public IHawk create(String name, File localStorageFolder, String location, ICredentialsStore credStore, IConsole console, List<String> plugins) throws Exception {
/**
* This implementation ignores the plugins parameter, as it is not OSGi-aware:
* the OSGi-awareness is done in the HModel class itself.
*/
return new LocalHawk(name, localStorageFolder, credStore, console);
}
示例2: createGraph
import org.hawk.core.IHawk; //导入依赖的package包/类
public IGraphDatabase createGraph(IHawk hawk) throws Exception {
for (IConfigurationElement i : getBackends()) {
if (i.getAttribute("store").equals(hawk.getDbtype())) {
return (IGraphDatabase) i.createExecutableExtension("store");
}
}
throw new Exception("cannot instantiate this type of graph: "
+ hawk.getDbtype());
}
示例3: create
import org.hawk.core.IHawk; //导入依赖的package包/类
@Override
public IHawk create(String name, File parentFolder, String location, ICredentialsStore credStore, IConsole console, List<String> enabledPlugins) throws Exception {
return new ThriftRemoteHawk(name, location, parentFolder, credStore, console, ThriftProtocol.guessFromURL(location), enabledPlugins);
}
示例4: getHawk
import org.hawk.core.IHawk; //导入依赖的package包/类
public IHawk getHawk() {
return hawk;
}