Merge "Increase timeout for waiting for broker service in sal-binding-it."
[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.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;
16
17 /**
18  * Provider MountProviderService, this version allows access to MD-SAL services
19  * specific for this mountpoint and registration / provision of interfaces for
20  * mount point.
21  * 
22  * @author ttkacik
23  * 
24  */
25 public interface MountProviderService extends MountService {
26     
27     @Override
28     public MountProviderInstance getMountPoint(InstanceIdentifier<?> path);
29
30     MountProviderInstance createMountPoint(InstanceIdentifier<?> path);
31
32     MountProviderInstance createOrGetMountPoint(InstanceIdentifier<?> path);
33
34     ListenerRegistration<MountProvisionListener> registerProvisionListener(MountProvisionListener listener);
35
36     public interface MountProvisionListener extends EventListener {
37
38         void onMountPointCreated(InstanceIdentifier<?> path);
39
40         void onMountPointRemoved(InstanceIdentifier<?> path);
41
42     }
43 }