public final class FilesystemSchemaSourceCache<T extends SchemaSourceRepresentation> extends AbstractSchemaSourceCache<T>
Constructor and Description |
---|
FilesystemSchemaSourceCache(SchemaSourceRegistry consumer,
Class<T> representation,
File storageDirectory) |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.FluentFuture<? extends T> |
getSource(SourceIdentifier sourceIdentifier)
Returns a representation a for supplied YANG source identifier.
|
protected void |
offer(T source)
Offer a schema source in requested representation for caching.
|
register, schemaSourceEncountered, schemaSourceRegistered, schemaSourceUnregistered
public FilesystemSchemaSourceCache(SchemaSourceRegistry consumer, Class<T> representation, File storageDirectory)
public com.google.common.util.concurrent.FluentFuture<? extends T> getSource(SourceIdentifier sourceIdentifier)
SchemaSourceProvider
MissingSchemaSourceException
.
MissingSchemaSourceException
.
In either case the returned representation is required to report a non-null
revision in the SourceIdentifier
returned from
SchemaSourceRepresentation.getIdentifier()
.
Implementations are not required to provide constant behavior in time, notably this different invocation of this method may produce different results.
sourceIdentifier
- source identifierprotected void offer(T source)
AbstractSchemaSourceCache
AbstractSchemaSourceCache.register(SourceIdentifier)
.offer
in class AbstractSchemaSourceCache<T extends SchemaSourceRepresentation>
source
- schema sourceCopyright © 2019 OpenDaylight. All rights reserved.