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

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

public class XMLUpgrade
extends BridgeUpgrade

Implementation of the BridgeUpgrade 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.BridgeUpgrade
locator, recordInputClass, recordOutputClass
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
XMLUpgrade()
           
XMLUpgrade(org.gcube.common.searchservice.searchlibrary.rsclient.elements.RSLocator locator)
           
 
Method Summary
 void doUpgrade()
          Iterate over the input, produce the output and store it in the output writer
 URI getLocator()
          Retrieves the locator of the create IBuffer
 Logger getLogger()
          The logger defined by the extending class to use the same logger
 void initialize()
          Perform any initialization needed before the upgrade begins
 void setCompress(boolean compress)
          Set compress at transport
 void setProxy(gr.uoa.di.madgik.grs.proxy.IWriterProxy proxy)
          Sets the IWriterProxy to be used for the locaotr URI to be created for the output
 
Methods inherited from class gr.uoa.di.madgik.grs.bridge.BridgeUpgrade
getRecord, run, setLocator, setRecordInputClass, setRecordOutputClass, upgrade
 
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

XMLUpgrade

public XMLUpgrade()

XMLUpgrade

public XMLUpgrade(org.gcube.common.searchservice.searchlibrary.rsclient.elements.RSLocator locator)
Method Detail

setCompress

public void setCompress(boolean compress)
Set compress at transport

Parameters:
compress - compress at transport or not

setProxy

public void setProxy(gr.uoa.di.madgik.grs.proxy.IWriterProxy proxy)
Sets the IWriterProxy to be used for the locaotr URI to be created for the output

Parameters:
proxy - the proxy to use

initialize

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

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

getLocator

public URI getLocator()
               throws GCubeBridgeException
Retrieves the locator of the create IBuffer

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

doUpgrade

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

Specified by:
doUpgrade in class BridgeUpgrade
Throws:
GCubeBridgeException - the upgrade could not be completed
See Also:
BridgeUpgrade.doUpgrade()

getLogger

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

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


Copyright © 2014. All Rights Reserved.