Remote yang text source provider implementation
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / schema / repository / RemoteYangTextSourceProvider.java
1 /*
2  * Copyright (c) 2015 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
9 package org.opendaylight.controller.cluster.schema.repository;
10
11 import com.google.common.annotations.Beta;
12 import java.util.Set;
13 import javax.annotation.Nonnull;
14 import org.opendaylight.controller.cluster.schema.repository.impl.YangTextSchemaSourceSerializationProxy;
15 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
16 import scala.concurrent.Future;
17
18 /**
19  * A remote yang text source provider provides serializable yang text sources.
20  */
21 @Beta
22 public interface RemoteYangTextSourceProvider {
23
24     Future<Set<SourceIdentifier>> getProvidedSources();
25
26     Future<YangTextSchemaSourceSerializationProxy> getYangTextSchemaSource(@Nonnull SourceIdentifier identifier);
27 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.