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.LocalWrapper<T>

public class LocalWrapper<T>
extends AbstractWrapper<T>


Constructor Summary
LocalWrapper()
           
LocalWrapper(int queueSize)
           
 
Method Summary
 boolean add(T input)
           
 void close()
           
 String getLocator()
           
 ArrayBlockingQueue<T> getQueue()
           
 boolean isClosed()
           
 void register()
           
 void setTimeoutTimeInMinutes(int timeoutTimeInMinutes)
           
 void 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
Specified by:
getLocator in class AbstractWrapper<T>
Throws:
Exception

add

public boolean add(T input)
            throws Exception
Specified by:
add in class AbstractWrapper<T>
Throws:
Exception

close

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

getQueue

public ArrayBlockingQueue<T> getQueue()

setTimeoutTimeInMinutes

public void setTimeoutTimeInMinutes(int timeoutTimeInMinutes)

unregister

public void unregister()
                throws Exception
Specified by:
unregister in class AbstractWrapper<T>
Throws:
Exception

register

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

isClosed

public boolean isClosed()
Specified by:
isClosed in class AbstractWrapper<T>


Copyright © 2012. All Rights Reserved.