List of usage examples for java.io Closeable interface-usage
From source file org.pentaho.big.data.impl.shim.pig.WriterAppenderManager.java
/** * Created by bryan on 10/1/15. */ public class WriterAppenderManager implements Closeable { private static final Class<?> PKG = WriterAppenderManager.class; private final Log4jFileAppender appender;
From source file com.asakusafw.runtime.stage.temporary.TemporaryFileInputHelper.java
final class TemporaryFileInputHelper implements Closeable { static final Log LOG = LogFactory.getLog(TemporaryFileInputHelper.class); static final AtomicInteger THREAD_COUNTER = new AtomicInteger();
From source file nya.miku.wishmaster.chans.cirno.Chan410CatalogReader.java
public class Chan410CatalogReader implements Closeable { private static final char[] CATALOG_START = "<div class=\"cataloglist\">".toCharArray(); private static final Pattern PATTERN_THREADNUMBER = Pattern.compile(".*/(\\d+)\\..*"); private static final int FILTER_START = 0;
From source file backup.store.ExternalExtendedBlockSort.java
public class ExternalExtendedBlockSort<T extends Writable> implements Closeable { public static void main(String[] args) throws Exception { Configuration conf = new Configuration(); Path dir = new Path("file:///home/apm/Development/git-projects/hdfs-backup/hdfs-backup-core/tmp"); dir.getFileSystem(conf).delete(dir, true); long start = System.nanoTime();
From source file org.commonjava.cartographer.graph.RelationshipGraphFactory.java
public final class RelationshipGraphFactory implements Closeable { private final Logger logger = LoggerFactory.getLogger(getClass()); private final RelationshipGraphConnectionFactory connectionManager;
From source file org.sonatype.nexus.repository.httpclient.BlockingHttpClient.java
/** * Wraps an {@link HttpClient} with manual and automatic blocking functionality. * * @since 3.0 */ public class BlockingHttpClient extends FilteredHttpClientSupport implements HttpClient, Closeable {
From source file org.apache.hawq.pxf.plugins.hbase.utilities.HBaseLookupTable.java
/**
* HBaseLookupTable will load a table's lookup information from HBase pxflookup
* table if exists.<br>
* This table holds mappings between HAWQ column names (key) and HBase column
* names (value).<br>
* E.g. for an HBase table "hbase_table", mappings between HAWQ column names and
From source file org.apache.tajo.storage.HashShuffleAppenderWrapper.java
public class HashShuffleAppenderWrapper implements Closeable { private static Log LOG = LogFactory.getLog(HashShuffleAppenderWrapper.class); private DirectRawFileWriter appender; private AtomicBoolean closed = new AtomicBoolean(false); private int partId;
From source file org.deegree.protocol.ows.http.OwsHttpResponse.java
/**
* Encapsulates an HTTP response from an OGC web service.
* <p>
* NOTE: The receiver <b>must</b> call {@link #close()} eventually, otherwise the HTTP connection will not be freed.
* </p>
*
From source file com.kloudtek.kloudmake.service.filestore.FileStore.java
/**
* <p>This service allows to access local or remote files.</p>
* <p>It supports remote files, which are subsequently cached on the host. It also support remote files which cannot be
* automatically downloaded, but need to instead be manually downloaded by the user (generally because of license
* restrictions on distribution).</p>
* <p>Local files will not be cached (the ones where protocol is 'classpath' or 'file')</p>