A B C D E F G H I J L M O P R S T V Z

A

AbstractBackendRepository - Class in org.schemarepo
Parent class of the actual backend (as opposed to decorating) repositories.
AbstractBackendRepository(ValidatorFactory) - Constructor for class org.schemarepo.AbstractBackendRepository
 
add(SchemaEntry) - Method in class org.schemarepo.InMemorySchemaEntryCache
 
add(Subject) - Method in class org.schemarepo.InMemorySubjectCache
 
add(Subject) - Method in class org.schemarepo.RepositoryCache
 
add(SchemaEntry) - Method in interface org.schemarepo.SchemaEntryCache
Add the schema entry to this cache.
add(Subject) - Method in interface org.schemarepo.SubjectCache
Add or update the Subject entry in this cache.
addValidator(String) - Method in class org.schemarepo.SubjectConfig.Builder
 
allEntries() - Method in class org.schemarepo.DelegatingSubject
 
allEntries() - Method in class org.schemarepo.Subject
List the ids of schemas registered with the given subject, ordered from most recent to oldest.
asMap() - Method in class org.schemarepo.SubjectConfig
 

B

BaseRepository - Class in org.schemarepo
Base class for all repository implementations.
BaseRepository() - Constructor for class org.schemarepo.BaseRepository
 
build() - Method in class org.schemarepo.SubjectConfig.Builder
 
build() - Method in class org.schemarepo.ValidatorFactory.Builder
 

C

CacheRepository - Class in org.schemarepo
CacheRepository is a Repository implementation that wraps another Repository and acts as a write-through cache of Subjects and schema to id mappings, shielding the inner Repository from repetitive lookups.
CacheRepository(Repository, RepositoryCache) - Constructor for class org.schemarepo.CacheRepository
Create a caching repository that wraps the provided repository using the cache provided
cacheSubject(Subject) - Method in class org.schemarepo.AbstractBackendRepository
Applies validation decorator, and caches subject.
cacheWith(Subject, SchemaEntryCache) - Static method in class org.schemarepo.Subject
Create a Subject that caches id to schema mappings using the SchemaEntryCache provided.
checkSubjectExistsInBackend(String) - Method in class org.schemarepo.AbstractBackendRepository
Backend-specific check if the subject actually exists.
CLIENT_RETURN_NONE_ON_EXCEPTIONS - Static variable in class org.schemarepo.config.Config
 
CLIENT_SERVER_URL - Static variable in class org.schemarepo.config.Config
 
close() - Method in class org.schemarepo.BaseRepository
 
close() - Method in class org.schemarepo.DelegatingRepository
 
close() - Method in class org.schemarepo.LocalFileSystemRepository
 
closed - Variable in class org.schemarepo.BaseRepository
 
commaJoin(Collection<String>) - Static method in class org.schemarepo.RepositoryUtil
 
commaSplit(String) - Static method in class org.schemarepo.RepositoryUtil
Helper method for splitting a string by a delimiter with java.util.String.split().
Config - Class in org.schemarepo.config
Class containing the configuration keys and default values.
Config() - Constructor for class org.schemarepo.config.Config
 
configFromProperties(Properties) - Static method in class org.schemarepo.RepositoryUtil
Returns an immutable Map from the properties provided.
Converter<TYPE> - Interface in org.schemarepo.api.converter
An interface which the TypedSchemaRepository uses to convert IDs, schema literals and subject names back and forth with Strings.
createSchemaEntryCache() - Method in class org.schemarepo.InMemorySchemaEntryCache.Factory
 
createSchemaEntryCache() - Method in interface org.schemarepo.SchemaEntryCache.Factory
Create a SchemaEntryCache instance for use with Subject.cacheWith(Subject, SchemaEntryCache).

D

DEFAULT_SUBJECT_VALIDATORS - Static variable in class org.schemarepo.config.Config
 
DEFAULTS - Static variable in class org.schemarepo.config.Config
 
DelegatingRepository - Class in org.schemarepo
Base class for all delegating repositories.
DelegatingRepository(Repository) - Constructor for class org.schemarepo.DelegatingRepository
 
DelegatingSubject - Class in org.schemarepo
A DelegatingSubject is a Subject that delegates work to an underlying Subject.
DelegatingSubject(Subject) - Constructor for class org.schemarepo.DelegatingSubject
A DelegatingSubject delegates work to a provided Subject.

E

EMPTY - Static variable in class org.schemarepo.ValidatorFactory
 
emptyConfig() - Static method in class org.schemarepo.SubjectConfig
 
equals(Object) - Method in class org.schemarepo.SchemaEntry
 
equals(Object) - Method in class org.schemarepo.SubjectConfig
 
exposeConfiguration() - Method in class org.schemarepo.BaseRepository
Expose certain configuration elements as properties.
exposeConfiguration() - Method in class org.schemarepo.CacheRepository
 
exposeConfiguration() - Method in class org.schemarepo.DelegatingRepository
 
exposeConfiguration() - Method in class org.schemarepo.LocalFileSystemRepository
 

F

fromString(String) - Method in interface org.schemarepo.api.converter.Converter
Given a String literal, provide a strongly-typed instance.

G

get(String) - Method in class org.schemarepo.SubjectConfig
 
getAndCacheSubject(String) - Method in class org.schemarepo.AbstractBackendRepository
Creates, applies validation decorator, and caches subject.
getConfig() - Method in class org.schemarepo.DelegatingSubject
 
getConfig() - Method in class org.schemarepo.Subject
 
getDefault(String) - Static method in class org.schemarepo.config.Config
 
getDefaultSubjectValidators() - Method in class org.schemarepo.ValidatorFactory
 
getId() - Method in class org.schemarepo.SchemaEntry
 
getIntDefault(String) - Static method in class org.schemarepo.config.Config
 
getName() - Method in class org.schemarepo.Subject
Return the Name of the Subject.
getSchema() - Method in class org.schemarepo.SchemaEntry
 
getSubjectInstance(String) - Method in class org.schemarepo.AbstractBackendRepository
Concrete subclasses must override to return specific implementation of Subject.
getSubjectInstance(String) - Method in class org.schemarepo.InMemoryRepository
 
getSubjectInstance(String) - Method in class org.schemarepo.LocalFileSystemRepository
 
getValidators() - Method in class org.schemarepo.SubjectConfig
 
getValidators(Set<String>) - Method in class org.schemarepo.ValidatorFactory
 
GsonJsonUtil - Class in org.schemarepo.json
An implementation of JsonUtil that uses google-gson.
GsonJsonUtil() - Constructor for class org.schemarepo.json.GsonJsonUtil
 

H

hashCode() - Method in class org.schemarepo.SchemaEntry
 
hashCode() - Method in class org.schemarepo.SubjectConfig
 

I

InMemoryCache - Class in org.schemarepo
A InMemoryCache is an implementation of RepositoryCache that uses InMemorySubjectCache and InMemorySchemaEntryCache
InMemoryCache() - Constructor for class org.schemarepo.InMemoryCache
 
InMemoryRepository - Class in org.schemarepo
A Repository that stores its data in memory and is not persistent.
InMemoryRepository(ValidatorFactory) - Constructor for class org.schemarepo.InMemoryRepository
 
InMemorySchemaEntryCache - Class in org.schemarepo
An unbounded in memory SchemaEntryCache that never evicts any values;
InMemorySchemaEntryCache() - Constructor for class org.schemarepo.InMemorySchemaEntryCache
 
InMemorySchemaEntryCache.Factory - Class in org.schemarepo
 
InMemorySchemaEntryCache.Factory() - Constructor for class org.schemarepo.InMemorySchemaEntryCache.Factory
 
InMemorySubjectCache - Class in org.schemarepo
An unbounded in memory SubjectCache that never evicts any values.
InMemorySubjectCache() - Constructor for class org.schemarepo.InMemorySubjectCache
 
integralKeys() - Method in class org.schemarepo.DelegatingSubject
 
integralKeys() - Method in class org.schemarepo.Subject
Indicates whether the keys generated by this subject can be expected to parse as an integer.
isValid() - Method in class org.schemarepo.BaseRepository
Asserts the repository is in a valid state (for ex.
isValid() - Method in class org.schemarepo.DelegatingRepository
 

J

JETTY_BUFFER_SIZE - Static variable in class org.schemarepo.config.Config
 
JETTY_GRACEFUL_SHUTDOWN - Static variable in class org.schemarepo.config.Config
 
JETTY_HEADER_SIZE - Static variable in class org.schemarepo.config.Config
 
JETTY_HOST - Static variable in class org.schemarepo.config.Config
 
JETTY_PORT - Static variable in class org.schemarepo.config.Config
 
JETTY_STOP_AT_SHUTDOWN - Static variable in class org.schemarepo.config.Config
 
JSON_UTIL_IMPLEMENTATION - Static variable in class org.schemarepo.config.Config
 
JsonUtil - Interface in org.schemarepo.json
An API to convert back and forth with JSON.

L

latest() - Method in class org.schemarepo.DelegatingSubject
 
latest() - Method in class org.schemarepo.Subject
Lookup the most recently registered schema for the given subject.
LOCAL_FILE_SYSTEM_PATH - Static variable in class org.schemarepo.config.Config
 
LocalFileSystemRepository - Class in org.schemarepo
A Repository that persists content to file.
LocalFileSystemRepository(String, ValidatorFactory) - Constructor for class org.schemarepo.LocalFileSystemRepository
Create a LocalFileSystemRepository in the directory path provided.
logger - Variable in class org.schemarepo.BaseRepository
 
LOGGING_ROUTE_JUL_TO_SLF4J - Static variable in class org.schemarepo.config.Config
 
lookup(String) - Method in class org.schemarepo.AbstractBackendRepository
 
lookup(String) - Method in class org.schemarepo.CacheRepository
 
lookup(String) - Method in class org.schemarepo.DelegatingRepository
 
lookup(String) - Method in class org.schemarepo.InMemorySubjectCache
 
lookup(String) - Method in class org.schemarepo.ReadOnlyRepository
 
lookup(String) - Method in interface org.schemarepo.Repository
Returns the subject if it exists, null otherwise.
lookup(String) - Method in class org.schemarepo.RepositoryCache
 
lookup(String) - Method in interface org.schemarepo.SubjectCache
Look up a Subject by its name.
lookupById(String) - Method in class org.schemarepo.DelegatingSubject
 
lookupById(String) - Method in class org.schemarepo.InMemorySchemaEntryCache
 
lookupById(String) - Method in interface org.schemarepo.SchemaEntryCache
Look up a schema entry by its id.
lookupById(String) - Method in class org.schemarepo.Subject
Lookup the SchemaEntry for the given subject by id.
lookupBySchema(String) - Method in class org.schemarepo.DelegatingSubject
 
lookupBySchema(String) - Method in class org.schemarepo.InMemorySchemaEntryCache
 
lookupBySchema(String) - Method in interface org.schemarepo.SchemaEntryCache
Look up a schema entry by its full string form.
lookupBySchema(String) - Method in class org.schemarepo.Subject
Lookup the SchemaEntry for the given schema.

M

MessageStrings - Class in org.schemarepo
Static Strings used to communicate a message to the end-user.
MessageStrings() - Constructor for class org.schemarepo.MessageStrings
 

O

org.schemarepo - package org.schemarepo
 
org.schemarepo.api.converter - package org.schemarepo.api.converter
 
org.schemarepo.config - package org.schemarepo.config
 
org.schemarepo.json - package org.schemarepo.json
 

P

propertiesToString(Properties, String) - Static method in class org.schemarepo.RepositoryUtil
Converts properties to string representation

R

readOnly(Subject) - Static method in class org.schemarepo.Subject
Create a Subject that rejects modifications, throwing IllegalStateException if a modification is attempted
ReadOnlyRepository - Class in org.schemarepo
ReadOnlyRepository is a Repository implementation that wraps another Repository and rejects all operations that can modify the state of the Repository.

ReadOnlyRepository.register(String, SubjectConfig), Subject.register(String) and Subject.registerIfLatest(String, SchemaEntry) throw IllegalStateException if called.
ReadOnlyRepository(Repository) - Constructor for class org.schemarepo.ReadOnlyRepository
Create a repository that disallows mutations to the underlying repository.
register(String, SubjectConfig) - Method in class org.schemarepo.AbstractBackendRepository
 
register(String, SubjectConfig) - Method in class org.schemarepo.CacheRepository
 
register(String, SubjectConfig) - Method in class org.schemarepo.DelegatingRepository
 
register(String) - Method in class org.schemarepo.DelegatingSubject
 
register(String, SubjectConfig) - Method in class org.schemarepo.ReadOnlyRepository
 
register(String, SubjectConfig) - Method in interface org.schemarepo.Repository
Attempt to create a Subject with the given name and validator.
register(String) - Method in class org.schemarepo.Subject
If the provided schema has already been registered in this subject, return the id.
registerIfLatest(String, SchemaEntry) - Method in class org.schemarepo.DelegatingSubject
 
registerIfLatest(String, SchemaEntry) - Method in class org.schemarepo.Subject
Register the provided schema only if the current latest schema matches the provided latest entry.
registerSubjectInBackend(String, SubjectConfig) - Method in class org.schemarepo.AbstractBackendRepository
Backend-specific registration logic.
registerSubjectInBackend(String, SubjectConfig) - Method in class org.schemarepo.InMemoryRepository
 
registerSubjectInBackend(String, SubjectConfig) - Method in class org.schemarepo.LocalFileSystemRepository
 
REJECT_VALIDATOR - Static variable in class org.schemarepo.ValidatorFactory
 
repo - Variable in class org.schemarepo.DelegatingRepository
 
REPO_CACHE - Static variable in class org.schemarepo.config.Config
 
REPO_CLASS - Static variable in class org.schemarepo.config.Config
 
Repository - Interface in org.schemarepo
A Repository is a collection of Subjects.
RepositoryCache - Class in org.schemarepo
A RepositoryCache composes a SubjectCache with a SchemaEntryCache.Factory, using Subject.cacheWith(Subject, SchemaEntryCache) to wrap Subject instances prior to insertion into the SubjectCache.
RepositoryCache(SubjectCache, SchemaEntryCache.Factory) - Constructor for class org.schemarepo.RepositoryCache
 
RepositoryUtil - Class in org.schemarepo
RepositoryUtil contains static helper methods for the org.schemarepo package.

S

safeConfig(SubjectConfig) - Static method in class org.schemarepo.RepositoryUtil
temporary until we have decided how to deal with null configs or create a SubjectConfig class
SCHEMA_DOES_NOT_EXIST_ERROR - Static variable in class org.schemarepo.MessageStrings
 
SCHEMA_WITH_NEWLINE_ERROR - Static variable in class org.schemarepo.MessageStrings
 
SchemaEntry - Class in org.schemarepo
SchemaEntry is composed of a schema and its corresponding id.
SchemaEntry(String, String) - Constructor for class org.schemarepo.SchemaEntry
Primary constructor taking a literal id and schema.
SchemaEntry(String) - Constructor for class org.schemarepo.SchemaEntry
Constructor taking the string representation of the SchemaEntry produced by SchemaEntry.toString()
SchemaEntryCache - Interface in org.schemarepo
A SchemaEntryCache is a bi-directional cache from a schema string to a schema id string.
SchemaEntryCache.Factory - Interface in org.schemarepo
Creates instances of SchemaEntryCache

schemasFromJson(String) - Method in class org.schemarepo.json.GsonJsonUtil
 
schemasFromJson(String) - Method in interface org.schemarepo.json.JsonUtil
Decode a string created by JsonUtil.schemasToJson(Iterable)
schemasFromString(String) - Static method in class org.schemarepo.RepositoryUtil
Decode a string created by RepositoryUtil.schemasToString(Iterable)
schemasToJson(Iterable<SchemaEntry>) - Method in class org.schemarepo.json.GsonJsonUtil
 
schemasToJson(Iterable<SchemaEntry>) - Method in interface org.schemarepo.json.JsonUtil
Encode SchemaEntry objects into a String for use by JsonUtil.schemasFromJson(String) The format is an array of objects containing id and schema fields, for example: [{"id": "0", "schema": "schema1"}, {"id": "2", "schema": "schema2"}]
schemasToString(Iterable<SchemaEntry>) - Static method in class org.schemarepo.RepositoryUtil
Encode SchemaEntry objects into a String for use by RepositoryUtil.schemasFromString(String)
SchemaValidationException - Exception in org.schemarepo
 
SchemaValidationException(String) - Constructor for exception org.schemarepo.SchemaValidationException
 
set(Map<String, String>) - Method in class org.schemarepo.SubjectConfig.Builder
 
set(String, String) - Method in class org.schemarepo.SubjectConfig.Builder
 
setDefaultValidator(String) - Method in class org.schemarepo.ValidatorFactory.Builder
 
setDefaultValidators(Collection<String>) - Method in class org.schemarepo.ValidatorFactory.Builder
 
setValidator(String, Validator) - Method in class org.schemarepo.ValidatorFactory.Builder
Configure this builder to return a ValidatorFactory that maps the Validator provided to the name given.
setValidators(Collection<String>) - Method in class org.schemarepo.SubjectConfig.Builder
 
Subject - Class in org.schemarepo
A Subject is a collection of mutually compatible Schemas.
Subject(String) - Constructor for class org.schemarepo.Subject
A Subject has a name.
SUBJECT_DOES_NOT_EXIST_ERROR - Static variable in class org.schemarepo.MessageStrings
 
subjectCache - Variable in class org.schemarepo.AbstractBackendRepository
 
SubjectCache - Interface in org.schemarepo
A SubjectCache is a cache from a string subject name to a Subject
SubjectConfig - Class in org.schemarepo
A SubjectConfig is effectively a Map , with reserved keys and default values for certain keys.
SubjectConfig.Builder - Class in org.schemarepo
 
SubjectConfig.Builder() - Constructor for class org.schemarepo.SubjectConfig.Builder
 
subjectNamesFromJson(String) - Method in class org.schemarepo.json.GsonJsonUtil
 
subjectNamesFromJson(String) - Method in interface org.schemarepo.json.JsonUtil
Decode a string created by JsonUtil.subjectsToJson(Iterable)
subjectNamesFromString(String) - Static method in class org.schemarepo.RepositoryUtil
Decode a string created by RepositoryUtil.subjectsToString(Iterable)
subjects() - Method in class org.schemarepo.AbstractBackendRepository
 
subjects() - Method in class org.schemarepo.CacheRepository
 
subjects() - Method in class org.schemarepo.DelegatingRepository
 
subjects() - Method in class org.schemarepo.ReadOnlyRepository
 
subjects() - Method in interface org.schemarepo.Repository
List all subjects.
subjectsToJson(Iterable<Subject>) - Method in class org.schemarepo.json.GsonJsonUtil
 
subjectsToJson(Iterable<Subject>) - Method in interface org.schemarepo.json.JsonUtil
Encode Subjects into a String for use by JsonUtil.subjectNamesFromJson(String) The format is an array of objects containing a name field, for example: [{"name": "subject1"}, {"name": "subject2"}]
subjectsToString(Iterable<Subject>) - Static method in class org.schemarepo.RepositoryUtil
Encode Subjects into a String for use by RepositoryUtil.subjectNamesFromString(String)

T

toString(TYPE) - Method in interface org.schemarepo.api.converter.Converter
Given a strongly-typed instance, provide its String literal representation.
toString() - Method in class org.schemarepo.BaseRepository
 
toString() - Method in class org.schemarepo.SchemaEntry
 
toString() - Method in class org.schemarepo.Subject
 

V

validate(String, Iterable<SchemaEntry>) - Method in interface org.schemarepo.Validator
Validate that a schema is compatible with the schemas provided.
validateSchemaOrSubject(String) - Static method in class org.schemarepo.RepositoryUtil
Throws IllegalArgumentException if the string provided is null, or empty.
validatingSubject(Subject, ValidatorFactory) - Static method in class org.schemarepo.Subject
Create a Subject that validates schemas as configured.
VALIDATION_PREFIX - Static variable in class org.schemarepo.config.Config
 
Validator - Interface in org.schemarepo
A Validator may be bound to each Subject in a Repository to ensure that schemas added to the Subject are mutually compatible.
VALIDATOR_PREFIX - Static variable in class org.schemarepo.config.Config
 
ValidatorFactory - Class in org.schemarepo
A factory for mapping Validator names to instantiated instances.
ValidatorFactory.Builder - Class in org.schemarepo
 
ValidatorFactory.Builder() - Constructor for class org.schemarepo.ValidatorFactory.Builder
 
validators - Variable in class org.schemarepo.AbstractBackendRepository
 
VALIDATORS_KEY - Static variable in class org.schemarepo.SubjectConfig
 
values() - Method in class org.schemarepo.InMemorySchemaEntryCache
return all of the values in this cache
values() - Method in class org.schemarepo.InMemorySubjectCache
 

Z

ZK_CONNECTION_TIMEOUT - Static variable in class org.schemarepo.config.Config
 
ZK_CURATOR_NUMBER_OF_RETRIES - Static variable in class org.schemarepo.config.Config
 
ZK_CURATOR_SLEEP_TIME_BETWEEN_RETRIES - Static variable in class org.schemarepo.config.Config
 
ZK_ENSEMBLE - Static variable in class org.schemarepo.config.Config
 
ZK_PATH_PREFIX - Static variable in class org.schemarepo.config.Config
 
ZK_SESSION_TIMEOUT - Static variable in class org.schemarepo.config.Config
 

A B C D E F G H I J L M O P R S T V Z

Copyright © 2015. All rights reserved.