public abstract class BridgeDowngrade extends Thread
IBuffer to
an "old style" RewsultSet. The class defines hooks that need to be implemented by extenders that will
handle with the specific type of ResultSet typeThread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected URI |
locator
The locator of the gRS2
IBuffer input that needs to be downgraded |
protected Class<? extends org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBase> |
recordClass
The type of records that to be produced in the ResultSet output
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
BridgeDowngrade() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
doDowngrade()
Iterate over the input, produce the output and store it in the output writer
|
org.gcube.common.searchservice.searchlibrary.rsclient.elements.RSLocator |
downgrade()
Perform the downgrade.
|
abstract org.gcube.common.searchservice.searchlibrary.rsclient.elements.RSLocator |
getLocator()
Retrieves the locator of the create ResultSet
|
abstract Logger |
getLogger()
The logger defined by the extending class to use the same logger
|
protected org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBase |
getRecord(GCubeRecord record)
Instantiates the appropriate output record and populates it through the provided record
|
abstract void |
initialize()
Perform any initialization needed before the downgrade begins
|
void |
run() |
void |
setLocator(URI locator)
Set the URI locator of the gRS2 input
IBuffer to downgrade |
void |
setRecordClass(Class<? extends org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBase> recordClass)
Sets the type of records that to be produced in the ResultSet output
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected URI locator
IBuffer input that needs to be downgradedprotected Class<? extends org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBase> recordClass
public org.gcube.common.searchservice.searchlibrary.rsclient.elements.RSLocator downgrade()
throws GCubeBridgeException
GCubeBridgeException - The downgrade could not be completedpublic void setLocator(URI locator)
IBuffer to downgradelocator - the locatorpublic void setRecordClass(Class<? extends org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBase> recordClass)
recordClass - the record type to produceprotected org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBase getRecord(GCubeRecord record) throws GCubeBridgeException
record - the record to downgradeGCubeBridgeException - the record downgrade could not be completedpublic abstract void doDowngrade()
throws GCubeBridgeException
GCubeBridgeException - the downgrade could not be completedpublic abstract void initialize()
throws GCubeBridgeException
GCubeBridgeException - the initialization could not be completedpublic abstract org.gcube.common.searchservice.searchlibrary.rsclient.elements.RSLocator getLocator()
throws GCubeBridgeException
GCubeBridgeException - the locator could not be retrievedpublic abstract Logger getLogger()
Copyright © 2015. All Rights Reserved.