A C D E F G H I L O P R S T U V W 

A

available() - Method in class org.apache.lucene.replicator.IndexInputInputStream
 

C

checkForUpdate(String) - Method in class org.apache.lucene.replicator.http.HttpReplicator
 
checkForUpdate(String) - Method in class org.apache.lucene.replicator.LocalReplicator
 
checkForUpdate(String) - Method in interface org.apache.lucene.replicator.Replicator
Check whether the given version is up-to-date and returns a SessionToken which can be used for fetching the revision files, otherwise returns null.
cleanupFilesOnFailure(Directory, List<String>) - Static method in class org.apache.lucene.replicator.IndexReplicationHandler
Cleanup the index directory by deleting all given files.
cleanupOldIndexFiles(Directory, String) - Static method in class org.apache.lucene.replicator.IndexReplicationHandler
Cleans up the index directory from old index files.
cleanupSession(String) - Method in class org.apache.lucene.replicator.PerSessionDirectoryFactory
 
cleanupSession(String) - Method in interface org.apache.lucene.replicator.ReplicationClient.SourceDirectoryFactory
Called to denote that the replication actions for this session were finished and the directory is no longer needed.
close() - Method in class org.apache.lucene.replicator.http.HttpClientBase
 
close() - Method in class org.apache.lucene.replicator.IndexInputInputStream
 
close() - Method in class org.apache.lucene.replicator.LocalReplicator
 
close() - Method in class org.apache.lucene.replicator.ReplicationClient
 
compareTo(String) - Method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision
 
compareTo(Revision) - Method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision
 
compareTo(String) - Method in class org.apache.lucene.replicator.IndexRevision
 
compareTo(Revision) - Method in class org.apache.lucene.replicator.IndexRevision
 
compareTo(String) - Method in interface org.apache.lucene.replicator.Revision
Compares the revision to the given version string.
copyFiles(Directory, Directory, List<String>) - Static method in class org.apache.lucene.replicator.IndexReplicationHandler
Copies the files from the source directory to the target one, if they are not the same.
createIndexWriterConfig(IndexWriterConfig.OpenMode) - Method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter
 
currentRevisionFiles() - Method in class org.apache.lucene.replicator.IndexAndTaxonomyReplicationHandler
 
currentRevisionFiles() - Method in class org.apache.lucene.replicator.IndexReplicationHandler
 
currentRevisionFiles() - Method in interface org.apache.lucene.replicator.ReplicationClient.ReplicationHandler
Returns the current revision files held by the handler.
currentVersion() - Method in class org.apache.lucene.replicator.IndexAndTaxonomyReplicationHandler
 
currentVersion() - Method in class org.apache.lucene.replicator.IndexReplicationHandler
 
currentVersion() - Method in interface org.apache.lucene.replicator.ReplicationClient.ReplicationHandler
Returns the current revision version held by the handler.

D

DEFAULT_CONNECTION_TIMEOUT - Static variable in class org.apache.lucene.replicator.http.HttpClientBase
Default connection timeout for this client, in milliseconds.
DEFAULT_SESSION_EXPIRATION_THRESHOLD - Static variable in class org.apache.lucene.replicator.LocalReplicator
Threshold for expiring inactive sessions.
DEFAULT_SO_TIMEOUT - Static variable in class org.apache.lucene.replicator.http.HttpClientBase
Default socket timeout for this client, in milliseconds.
doAction(HttpResponse, Callable<T>) - Method in class org.apache.lucene.replicator.http.HttpClientBase
Same as doAction(HttpResponse, boolean, Callable) but always do consume at the end.
doAction(HttpResponse, boolean, Callable<T>) - Method in class org.apache.lucene.replicator.http.HttpClientBase
Do a specific action and validate after the action that the status is still OK, and if not, attempt to extract the actual server side exception.

E

ensureOpen() - Method in class org.apache.lucene.replicator.http.HttpClientBase
Throws AlreadyClosedException if this client is already closed.
ensureOpen() - Method in class org.apache.lucene.replicator.LocalReplicator
Ensure that replicator is still open, or throw AlreadyClosedException otherwise.
ensureOpen() - Method in class org.apache.lucene.replicator.ReplicationClient
Throws AlreadyClosedException if the client has already been closed.
equals(Object) - Method in class org.apache.lucene.replicator.RevisionFile
 
executeGET(String, String...) - Method in class org.apache.lucene.replicator.http.HttpClientBase
internal: execute a request and return its result The params argument is treated as: name1,value1,name2,value2,...
executePOST(String, HttpEntity, String...) - Method in class org.apache.lucene.replicator.http.HttpClientBase
internal: execute a request and return its result The params argument is treated as: name1,value1,name2,value2,...

F

fileName - Variable in class org.apache.lucene.replicator.RevisionFile
The name of the file.

G

getDeletionPolicy() - Method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter
Returns the SnapshotDeletionPolicy used by the underlying IndexWriter.
getDirectory(String, String) - Method in class org.apache.lucene.replicator.PerSessionDirectoryFactory
 
getDirectory(String, String) - Method in interface org.apache.lucene.replicator.ReplicationClient.SourceDirectoryFactory
Returns the Directory to use for the given session and source.
getExpirationThreshold() - Method in class org.apache.lucene.replicator.LocalReplicator
Returns the expiration threshold.
getIndexWriter() - Method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter
Returns the IndexWriter used by this DirectoryTaxonomyWriter.
getLastCommit(Directory) - Static method in class org.apache.lucene.replicator.IndexReplicationHandler
Returns the last IndexCommit found in the Directory, or null if there are no commits.
getSegmentsFile(List<String>, boolean) - Static method in class org.apache.lucene.replicator.IndexReplicationHandler
Verifies that the last file is segments_N and fails otherwise.
getSourceFiles() - Method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision
 
getSourceFiles() - Method in class org.apache.lucene.replicator.IndexRevision
 
getSourceFiles() - Method in interface org.apache.lucene.replicator.Revision
Returns the files that comprise this revision, as a mapping from a source to a list of files.
getVersion() - Method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision
 
getVersion() - Method in class org.apache.lucene.replicator.IndexRevision
 
getVersion() - Method in interface org.apache.lucene.replicator.Revision
Returns a string representation of the version of this revision.

H

handleUpdateException(Throwable) - Method in class org.apache.lucene.replicator.ReplicationClient
Called when an exception is hit by the replication thread.
hashCode() - Method in class org.apache.lucene.replicator.RevisionFile
 
HttpClientBase - Class in org.apache.lucene.replicator.http
Base class for Http clients.
HttpClientBase(String, int, String, ClientConnectionManager) - Constructor for class org.apache.lucene.replicator.http.HttpClientBase
 
HttpReplicator - Class in org.apache.lucene.replicator.http
An HTTP implementation of Replicator.
HttpReplicator(String, int, String, ClientConnectionManager) - Constructor for class org.apache.lucene.replicator.http.HttpReplicator
Construct with specified connection manager.

I

id - Variable in class org.apache.lucene.replicator.SessionToken
ID of this session.
INDEX_SOURCE - Static variable in class org.apache.lucene.replicator.IndexAndTaxonomyRevision
 
IndexAndTaxonomyReplicationHandler - Class in org.apache.lucene.replicator
A ReplicationClient.ReplicationHandler for replication of an index and taxonomy pair.
IndexAndTaxonomyReplicationHandler(Directory, Directory, Callable<Boolean>) - Constructor for class org.apache.lucene.replicator.IndexAndTaxonomyReplicationHandler
Constructor with the given index directory and callback to notify when the indexes were updated.
IndexAndTaxonomyRevision - Class in org.apache.lucene.replicator
A Revision of a single index and taxonomy index files which comprises the list of files from both indexes.
IndexAndTaxonomyRevision(IndexWriter, IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter) - Constructor for class org.apache.lucene.replicator.IndexAndTaxonomyRevision
Constructor over the given IndexWriter.
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter - Class in org.apache.lucene.replicator
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter(Directory, IndexWriterConfig.OpenMode, TaxonomyWriterCache) - Constructor for class org.apache.lucene.replicator.IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter
 
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter(Directory, IndexWriterConfig.OpenMode) - Constructor for class org.apache.lucene.replicator.IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter
 
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter(Directory) - Constructor for class org.apache.lucene.replicator.IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter
 
IndexInputInputStream - Class in org.apache.lucene.replicator
An InputStream which wraps an IndexInput.
IndexInputInputStream(IndexInput) - Constructor for class org.apache.lucene.replicator.IndexInputInputStream
 
IndexReplicationHandler - Class in org.apache.lucene.replicator
A ReplicationClient.ReplicationHandler for replication of an index.
IndexReplicationHandler(Directory, Callable<Boolean>) - Constructor for class org.apache.lucene.replicator.IndexReplicationHandler
Constructor with the given index directory and callback to notify when the indexes were updated.
IndexRevision - Class in org.apache.lucene.replicator
A Revision of a single index files which comprises the list of files that are part of the current IndexCommit.
IndexRevision(IndexWriter) - Constructor for class org.apache.lucene.replicator.IndexRevision
Constructor over the given IndexWriter.
INFO_STREAM_COMPONENT - Static variable in class org.apache.lucene.replicator.IndexAndTaxonomyReplicationHandler
The component used to log messages to the default InfoStream.
INFO_STREAM_COMPONENT - Static variable in class org.apache.lucene.replicator.IndexReplicationHandler
The component used to log messages to the default InfoStream.
INFO_STREAM_COMPONENT - Static variable in class org.apache.lucene.replicator.ReplicationClient
The component name to use with InfoStream.isEnabled(String).
isClosed() - Method in class org.apache.lucene.replicator.http.HttpClientBase
Returns true iff this instance was closed, otherwise returns false.
isUpdateThreadAlive() - Method in class org.apache.lucene.replicator.ReplicationClient
Returns true if the update thread is alive.

L

LocalReplicator - Class in org.apache.lucene.replicator
A Replicator implementation for use by the side that publishes Revisions, as well for clients to check for updates.
LocalReplicator() - Constructor for class org.apache.lucene.replicator.LocalReplicator
 

O

obtainFile(String, String, String) - Method in class org.apache.lucene.replicator.http.HttpReplicator
 
obtainFile(String, String, String) - Method in class org.apache.lucene.replicator.LocalReplicator
 
obtainFile(String, String, String) - Method in interface org.apache.lucene.replicator.Replicator
Returns an InputStream for the requested file and source in the context of the given session.
open(String, String) - Method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision
 
open(String, String) - Method in class org.apache.lucene.replicator.IndexRevision
 
open(String, String) - Method in interface org.apache.lucene.replicator.Revision
Returns an IndexInput for the given fileName and source.
openIndexWriter(Directory, IndexWriterConfig) - Method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter
 
org.apache.lucene.replicator - package org.apache.lucene.replicator
Files replication framework
org.apache.lucene.replicator.http - package org.apache.lucene.replicator.http
HTTP replication implementation

P

perform(HttpServletRequest, HttpServletResponse) - Method in class org.apache.lucene.replicator.http.ReplicationService
Executes the replication task.
PerSessionDirectoryFactory - Class in org.apache.lucene.replicator
A ReplicationClient.SourceDirectoryFactory which returns FSDirectory under a dedicated session directory.
PerSessionDirectoryFactory(File) - Constructor for class org.apache.lucene.replicator.PerSessionDirectoryFactory
Constructor with the given sources mapping.
publish(Revision) - Method in class org.apache.lucene.replicator.http.HttpReplicator
 
publish(Revision) - Method in class org.apache.lucene.replicator.LocalReplicator
 
publish(Revision) - Method in interface org.apache.lucene.replicator.Replicator
Publish a new Revision for consumption by clients.

R

read() - Method in class org.apache.lucene.replicator.IndexInputInputStream
 
read(byte[]) - Method in class org.apache.lucene.replicator.IndexInputInputStream
 
read(byte[], int, int) - Method in class org.apache.lucene.replicator.IndexInputInputStream
 
release(String) - Method in class org.apache.lucene.replicator.http.HttpReplicator
 
release() - Method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision
 
release() - Method in class org.apache.lucene.replicator.IndexRevision
 
release(String) - Method in class org.apache.lucene.replicator.LocalReplicator
 
release(String) - Method in interface org.apache.lucene.replicator.Replicator
Notify that the specified SessionToken is no longer needed by the caller.
release() - Method in interface org.apache.lucene.replicator.Revision
Called when this revision can be safely released, i.e.
REPLICATE_FILENAME_PARAM - Static variable in class org.apache.lucene.replicator.http.ReplicationService
Request parameter name for providing the file's name.
REPLICATE_SESSION_ID_PARAM - Static variable in class org.apache.lucene.replicator.http.ReplicationService
Request parameter name for providing a session ID.
REPLICATE_SOURCE_PARAM - Static variable in class org.apache.lucene.replicator.http.ReplicationService
Request parameter name for providing the file's source.
REPLICATE_VERSION_PARAM - Static variable in class org.apache.lucene.replicator.http.ReplicationService
Request parameter name for providing the revision version.
REPLICATION_CONTEXT - Static variable in class org.apache.lucene.replicator.http.ReplicationService
The context path for the servlet.
ReplicationClient - Class in org.apache.lucene.replicator
A client which monitors and obtains new revisions from a Replicator.
ReplicationClient(Replicator, ReplicationClient.ReplicationHandler, ReplicationClient.SourceDirectoryFactory) - Constructor for class org.apache.lucene.replicator.ReplicationClient
Constructor.
ReplicationClient.ReplicationHandler - Interface in org.apache.lucene.replicator
Handler for revisions obtained by the client.
ReplicationClient.SourceDirectoryFactory - Interface in org.apache.lucene.replicator
Resolves a session and source into a Directory to use for copying the session files to.
ReplicationService - Class in org.apache.lucene.replicator.http
A server-side service for handling replication requests.
ReplicationService(Map<String, Replicator>) - Constructor for class org.apache.lucene.replicator.http.ReplicationService
 
ReplicationService.ReplicationAction - Enum in org.apache.lucene.replicator.http
Actions supported by the ReplicationService.
Replicator - Interface in org.apache.lucene.replicator
An interface for replicating files.
requiredFiles(Map<String, List<RevisionFile>>) - Method in class org.apache.lucene.replicator.ReplicationClient
Returns the files required for replication.
responseInputStream(HttpResponse) - Method in class org.apache.lucene.replicator.http.HttpClientBase
Internal utility: input stream of the provided response
responseInputStream(HttpResponse, boolean) - Method in class org.apache.lucene.replicator.http.HttpClientBase
Internal utility: input stream of the provided response, which optionally consumes the response's resources when the input stream is exhausted.
Revision - Interface in org.apache.lucene.replicator
A revision comprises lists of files that come from different sources and need to be replicated together to e.g.
RevisionFile - Class in org.apache.lucene.replicator
Describes a file in a Revision.
RevisionFile(String) - Constructor for class org.apache.lucene.replicator.RevisionFile
Constructor with the given file name.
revisionFiles(IndexCommit, IndexCommit) - Static method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision
Returns a singleton map of the revision files from the given IndexCommit.
revisionFiles(IndexCommit) - Static method in class org.apache.lucene.replicator.IndexRevision
Returns a singleton map of the revision files from the given IndexCommit.
revisionReady(String, Map<String, List<RevisionFile>>, Map<String, List<String>>, Map<String, Directory>) - Method in class org.apache.lucene.replicator.IndexAndTaxonomyReplicationHandler
 
revisionReady(String, Map<String, List<RevisionFile>>, Map<String, List<String>>, Map<String, Directory>) - Method in class org.apache.lucene.replicator.IndexReplicationHandler
 
revisionReady(String, Map<String, List<RevisionFile>>, Map<String, List<String>>, Map<String, Directory>) - Method in interface org.apache.lucene.replicator.ReplicationClient.ReplicationHandler
Called when a new revision was obtained and is available (i.e.
revisionVersion(IndexCommit, IndexCommit) - Static method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision
Returns a String representation of a revision's version from the given IndexCommits of the search and taxonomy indexes.
revisionVersion(IndexCommit) - Static method in class org.apache.lucene.replicator.IndexRevision
Returns a String representation of a revision's version from the given IndexCommit.

S

serialize(DataOutput) - Method in class org.apache.lucene.replicator.SessionToken
Serialize the token data for communication between server and client.
SessionExpiredException - Exception in org.apache.lucene.replicator
Exception indicating that a revision update session was expired due to lack of activity.
SessionExpiredException(String, Throwable) - Constructor for exception org.apache.lucene.replicator.SessionExpiredException
 
SessionExpiredException(String) - Constructor for exception org.apache.lucene.replicator.SessionExpiredException
 
SessionExpiredException(Throwable) - Constructor for exception org.apache.lucene.replicator.SessionExpiredException
 
SessionToken - Class in org.apache.lucene.replicator
Token for a replication session, for guaranteeing that source replicated files will be kept safe until the replication completes.
SessionToken(DataInput) - Constructor for class org.apache.lucene.replicator.SessionToken
Constructor which deserializes from the given DataInput.
SessionToken(String, Revision) - Constructor for class org.apache.lucene.replicator.SessionToken
Constructor with the given id and revision.
setConnectionTimeout(int) - Method in class org.apache.lucene.replicator.http.HttpClientBase
Set the connection timeout for this client, in milliseconds.
setExpirationThreshold(long) - Method in class org.apache.lucene.replicator.LocalReplicator
Modify session expiration time - if a replication session is inactive that long it is automatically expired, and further attempts to operate within this session will throw a SessionExpiredException.
setInfoStream(InfoStream) - Method in class org.apache.lucene.replicator.IndexAndTaxonomyReplicationHandler
Sets the InfoStream to use for logging messages.
setInfoStream(InfoStream) - Method in class org.apache.lucene.replicator.IndexReplicationHandler
Sets the InfoStream to use for logging messages.
setInfoStream(InfoStream) - Method in class org.apache.lucene.replicator.ReplicationClient
Sets the InfoStream to use for logging messages.
setSoTimeout(int) - Method in class org.apache.lucene.replicator.http.HttpClientBase
Set the socket timeout for this client, in milliseconds.
size - Variable in class org.apache.lucene.replicator.RevisionFile
The size of the file denoted by RevisionFile.fileName.
skip(long) - Method in class org.apache.lucene.replicator.IndexInputInputStream
 
sourceFiles - Variable in class org.apache.lucene.replicator.SessionToken
 
startUpdateThread(long, String) - Method in class org.apache.lucene.replicator.ReplicationClient
Start the update thread with the specified interval in milliseconds.
stopUpdateThread() - Method in class org.apache.lucene.replicator.ReplicationClient
Stop the update thread.

T

TAXONOMY_SOURCE - Static variable in class org.apache.lucene.replicator.IndexAndTaxonomyRevision
 
throwKnownError(HttpResponse, StatusLine) - Method in class org.apache.lucene.replicator.http.HttpClientBase
 
toString() - Method in class org.apache.lucene.replicator.IndexAndTaxonomyRevision
 
toString() - Method in class org.apache.lucene.replicator.IndexRevision
 
toString() - Method in class org.apache.lucene.replicator.ReplicationClient
 
toString() - Method in class org.apache.lucene.replicator.RevisionFile
 
toString() - Method in class org.apache.lucene.replicator.SessionToken
 

U

updateNow() - Method in class org.apache.lucene.replicator.ReplicationClient
Executes the update operation immediately, irregardess if an update thread is running or not.
url - Variable in class org.apache.lucene.replicator.http.HttpClientBase
The URL stting to execute requests against.

V

valueOf(String) - Static method in enum org.apache.lucene.replicator.http.ReplicationService.ReplicationAction
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.apache.lucene.replicator.http.ReplicationService.ReplicationAction
Returns an array containing the constants of this enum type, in the order they are declared.
verifyStatus(HttpResponse) - Method in class org.apache.lucene.replicator.http.HttpClientBase
Internal: response status after invocation, and in case or error attempt to read the exception sent by the server.
version - Variable in class org.apache.lucene.replicator.SessionToken
 

W

writeSegmentsGen(String, Directory) - Static method in class org.apache.lucene.replicator.IndexReplicationHandler
Writes IndexFileNames.SEGMENTS_GEN file to the directory, reading the generation from the given segmentsFile.
A C D E F G H I L O P R S T U V W 

Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.