本文整理汇总了Java中org.opendaylight.controller.md.sal.binding.api.MountPointService类的典型用法代码示例。如果您正苦于以下问题:Java MountPointService类的具体用法?Java MountPointService怎么用?Java MountPointService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MountPointService类属于org.opendaylight.controller.md.sal.binding.api包,在下文中一共展示了MountPointService类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createInstance
import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
@Override
public RootBindingAwareBroker createInstance() {
final Broker domBroker = getDomAsyncBrokerDependency();
final BindingToNormalizedNodeCodec codec = getBindingMappingServiceDependency();
final ProviderSession session = domBroker.registerProvider(new DummyDOMProvider());
final MountPointService mount = createMountPointAdapter(codec,session);
final BindingDOMRpcServiceAdapter rpcConsumer = createRpcConsumer(codec,session);
final BindingDOMRpcProviderServiceAdapter rpcProvider = createRpcProvider(codec,session);
final RootBindingAwareBroker broker = new RootBindingAwareBroker(getIdentifier().getInstanceName());
final RpcProviderRegistry heliumRpcBroker = new HeliumRpcProviderRegistry(rpcConsumer, rpcProvider);
broker.setNotificationBroker(getNotificationServiceDependency());
if (getNotificationPublishServiceDependency() != null) {
broker.setNotificationPublishService(getNotificationPublishServiceDependency());
}
broker.setRpcBroker(heliumRpcBroker);
broker.setDataBroker(getRootDataBrokerDependency());
broker.setMountService(mount);
broker.start();
return broker;
}
示例2: start
import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
public void start() {
checkState(controllerRoot == null, "Binding Aware Broker was already started.");
LOG.info("Starting Binding Aware Broker: {}", identifier);
controllerRoot = new RootSalInstance(getRpcProviderRegistry(), getNotificationBroker());
final ImmutableClassToInstanceMap.Builder<BindingAwareService> consBuilder = ImmutableClassToInstanceMap
.builder();
consBuilder.put(NotificationService.class, getRoot());
consBuilder.put(RpcConsumerRegistry.class, getRoot());
if (dataBroker != null) {
consBuilder.put(DataBroker.class, dataBroker);
}
consBuilder.put(MountPointService.class, mountService);
supportedConsumerServices = consBuilder.build();
final ImmutableClassToInstanceMap.Builder<BindingAwareService> provBuilder = ImmutableClassToInstanceMap
.builder();
provBuilder.putAll(supportedConsumerServices).put(NotificationProviderService.class, getRoot())
.put(RpcProviderRegistry.class, getRoot());
if (notificationPublishService != null) {
provBuilder.put(NotificationPublishService.class, notificationPublishService);
}
supportedProviderServices = provBuilder.build();
}
示例3: startBindingBroker
import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
public void startBindingBroker() {
checkState(this.executor != null, "Executor needs to be set");
checkState(this.baNotifyImpl != null, "Notification Service must be started");
this.baConsumerRpc = new BindingDOMRpcServiceAdapter(getDomRpcInvoker(), this.codec);
this.baProviderRpc = new BindingDOMRpcProviderServiceAdapter(getDomRpcRegistry(), this.codec);
this.baBrokerImpl = new RootBindingAwareBroker("test");
final MountPointService mountService = new BindingDOMMountPointServiceAdapter(this.biMountImpl, this.codec);
this.baBrokerImpl.setMountService(mountService);
this.baBrokerImpl.setRpcBroker(new HeliumRpcProviderRegistry(this.baConsumerRpc, this.baProviderRpc));
this.baBrokerImpl.setNotificationBroker(this.baNotifyImpl);
this.baBrokerImpl.start();
}
示例4: createMountPointAdapter
import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
private MountPointService createMountPointAdapter(final BindingToNormalizedNodeCodec codec, final ProviderSession session) {
final DOMMountPointService domService = session.getService(DOMMountPointService.class);
if(domService != null) {
return new BindingDOMMountPointServiceAdapter(domService, codec);
}
return null;
}
示例5: onSessionInitiated
import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
@Override
public void onSessionInitiated(ProviderContext session) {
// Get the mount service provider
this.mountService = session.getSALService(MountPointService.class);
}
示例6: getMountService
import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
public MountPointService getMountService() {
return mountService;
}
示例7: setMountService
import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
public void setMountService(final MountPointService mount) {
this.mountService = mount;
}
示例8: getBindingMountPointService
import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
public MountPointService getBindingMountPointService() {
return this.baBrokerImpl.getMountService();
}