2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.sal.binding.api.mount;
10 import java.util.EventListener;
12 import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry;
13 import org.opendaylight.yangtools.concepts.ListenerRegistration;
14 import org.opendaylight.yangtools.concepts.Registration;
15 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
18 * Provider MountProviderService, this version allows access to MD-SAL services
19 * specific for this mountpoint and registration / provision of interfaces for
25 public interface MountProviderService extends MountService {
28 public MountProviderInstance getMountPoint(InstanceIdentifier<?> path);
30 MountProviderInstance createMountPoint(InstanceIdentifier<?> path);
32 MountProviderInstance createOrGetMountPoint(InstanceIdentifier<?> path);
34 ListenerRegistration<MountProvisionListener> registerProvisionListener(MountProvisionListener listener);
36 public interface MountProvisionListener extends EventListener {
38 void onMountPointCreated(InstanceIdentifier<?> path);
40 void onMountPointRemoved(InstanceIdentifier<?> path);