Merge "Cleanup imports/whitespace in MD-SAL"
[controller.git] / opendaylight / md-sal / sal-binding-api / src / main / java / org / opendaylight / controller / sal / binding / api / mount / MountProviderService.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.sal.binding.api.mount;
9
10 import java.util.EventListener;
11
12 import org.opendaylight.yangtools.concepts.ListenerRegistration;
13 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
14
15 /**
16  * Provider MountProviderService, this version allows access to MD-SAL services
17  * specific for this mountpoint and registration / provision of interfaces for
18  * mount point.
19  *
20  * @author ttkacik
21  *
22  */
23 public interface MountProviderService extends MountService {
24
25     @Override
26     public MountProviderInstance getMountPoint(InstanceIdentifier<?> path);
27
28     MountProviderInstance createMountPoint(InstanceIdentifier<?> path);
29
30     MountProviderInstance createOrGetMountPoint(InstanceIdentifier<?> path);
31
32     ListenerRegistration<MountProvisionListener> registerProvisionListener(MountProvisionListener listener);
33
34     public interface MountProvisionListener extends EventListener {
35
36         void onMountPointCreated(InstanceIdentifier<?> path);
37
38         void onMountPointRemoved(InstanceIdentifier<?> path);
39
40     }
41 }