gr.uoa.di.madgik.grs.bridge.xml
Class XMLDowngrade

java.lang.Object
  extended by java.lang.Thread
      extended by gr.uoa.di.madgik.grs.bridge.BridgeDowngrade
          extended by gr.uoa.di.madgik.grs.bridge.xml.XMLDowngrade
All Implemented Interfaces:
Runnable

public class XMLDowngrade
extends BridgeDowngrade

Implementation of the BridgeDowngrade base class specialized for XML containing payload ResultSet

Author:
gpapanikos

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class gr.uoa.di.madgik.grs.bridge.BridgeDowngrade
locator, recordClass
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
XMLDowngrade()
          Create new instance
XMLDowngrade(URI locator)
          Create new instance
 
Method Summary
 void doDowngrade()
          Iterate over the input, produce the output and store it in the output writer
 org.gcube.common.searchservice.searchlibrary.rsclient.elements.RSLocator getLocator()
          Retrieves the locator of the create ResultSet
 Logger getLogger()
          The logger defined by the extending class to use the same logger
 void initialize()
          Perform any initialization needed before the downgrade begins
 void setResourceType(org.gcube.common.searchservice.searchlibrary.rsclient.elements.RSResourceType resourceType)
          Sets the resource type of the Result Set locator to be produced
 
Methods inherited from class gr.uoa.di.madgik.grs.bridge.BridgeDowngrade
downgrade, getRecord, run, setLocator, setRecordClass
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLDowngrade

public XMLDowngrade()
Create new instance


XMLDowngrade

public XMLDowngrade(URI locator)
Create new instance

Parameters:
locator - the input locator to downgrade
Method Detail

setResourceType

public void setResourceType(org.gcube.common.searchservice.searchlibrary.rsclient.elements.RSResourceType resourceType)
Sets the resource type of the Result Set locator to be produced

Parameters:
resourceType - tjhe resource type

initialize

public void initialize()
                throws GCubeBridgeException
Perform any initialization needed before the downgrade begins

Specified by:
initialize in class BridgeDowngrade
Throws:
GCubeBridgeException - the initialization could not be completed
See Also:
BridgeDowngrade.initialize()

getLocator

public org.gcube.common.searchservice.searchlibrary.rsclient.elements.RSLocator getLocator()
                                                                                    throws GCubeBridgeException
Retrieves the locator of the create ResultSet

Specified by:
getLocator in class BridgeDowngrade
Returns:
the RSlocator
Throws:
GCubeBridgeException - the locator could not be retrieved
See Also:
BridgeDowngrade.getLocator()

doDowngrade

public void doDowngrade()
                 throws GCubeBridgeException
Iterate over the input, produce the output and store it in the output writer

Specified by:
doDowngrade in class BridgeDowngrade
Throws:
GCubeBridgeException - the downgrade could not be completed
See Also:
BridgeDowngrade.doDowngrade()

getLogger

public Logger getLogger()
The logger defined by the extending class to use the same logger

Specified by:
getLogger in class BridgeDowngrade
Returns:
the logger
See Also:
BridgeDowngrade.getLogger()


Copyright © 2014. All Rights Reserved.