org.gcube.data.spd.plugin.fwk.writers.rswrapper
Class LocalWrapper<T>

java.lang.Object
  extended by org.gcube.data.spd.plugin.fwk.writers.rswrapper.AbstractWrapper<T>
      extended by org.gcube.data.spd.plugin.fwk.writers.rswrapper.AbstractLocalWrapper<T>
          extended by org.gcube.data.spd.plugin.fwk.writers.rswrapper.LocalWrapper<T>

public class LocalWrapper<T>
extends AbstractLocalWrapper<T>


Field Summary
 
Fields inherited from class org.gcube.data.spd.plugin.fwk.writers.rswrapper.AbstractLocalWrapper
closed
 
Fields inherited from class org.gcube.data.spd.plugin.fwk.writers.rswrapper.AbstractWrapper
links
 
Constructor Summary
LocalWrapper()
           
LocalWrapper(int queueSize)
           
 
Method Summary
 boolean add(org.gcube.data.spd.model.exceptions.StreamException result)
           
 boolean add(T input)
           
 void close()
           
 void disableForceOpen()
           
 void disableForceOpenAndClose()
           
 void disposeBuffer()
           
 void forceOpen()
           
 List<org.gcube.data.spd.model.exceptions.StreamException> getErrors()
           
 String getLocator()
           
 ArrayBlockingQueue<T> getQueue()
           
 boolean isForceOpen()
           
 void setTimeoutTimeInMinutes(int timeoutTimeInMinutes)
           
 
Methods inherited from class org.gcube.data.spd.plugin.fwk.writers.rswrapper.AbstractLocalWrapper
isClosed
 
Methods inherited from class org.gcube.data.spd.plugin.fwk.writers.rswrapper.AbstractWrapper
register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalWrapper

public LocalWrapper()

LocalWrapper

public LocalWrapper(int queueSize)
Method Detail

getLocator

public String getLocator()
                  throws Exception
Overrides:
getLocator in class AbstractLocalWrapper<T>
Throws:
Exception

add

public boolean add(T input)
            throws org.gcube.data.spd.model.exceptions.InvalidRecordException,
                   org.gcube.data.spd.model.exceptions.WrapperAlreadyDisposedException
Specified by:
add in class AbstractWrapper<T>
Throws:
org.gcube.data.spd.model.exceptions.InvalidRecordException
org.gcube.data.spd.model.exceptions.WrapperAlreadyDisposedException

close

public void close()
Specified by:
close in class AbstractWrapper<T>

getQueue

public ArrayBlockingQueue<T> getQueue()
Specified by:
getQueue in class AbstractLocalWrapper<T>

setTimeoutTimeInMinutes

public void setTimeoutTimeInMinutes(int timeoutTimeInMinutes)

isForceOpen

public boolean isForceOpen()

forceOpen

public void forceOpen()

disableForceOpen

public void disableForceOpen()

disableForceOpenAndClose

public void disableForceOpenAndClose()

disposeBuffer

public void disposeBuffer()
Specified by:
disposeBuffer in class AbstractLocalWrapper<T>

add

public boolean add(org.gcube.data.spd.model.exceptions.StreamException result)
            throws org.gcube.data.spd.model.exceptions.InvalidRecordException,
                   org.gcube.data.spd.model.exceptions.WrapperAlreadyDisposedException
Specified by:
add in class AbstractWrapper<T>
Throws:
org.gcube.data.spd.model.exceptions.InvalidRecordException
org.gcube.data.spd.model.exceptions.WrapperAlreadyDisposedException

getErrors

public List<org.gcube.data.spd.model.exceptions.StreamException> getErrors()


Copyright © 2013. All Rights Reserved.