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