@Test public void testHBaseFile() throws IOException { final File uploadFolder = new File(uploadPath); if (!uploadFolder.isDirectory()) { fail("please enter a correct dir to upload!"); } Collection<File> uploadFiles = FileUtils.listFiles(uploadFolder, null, false); if (uploadFiles == null || uploadFiles.isEmpty()) { fail("please enter a correct dir which has files."); } for (File uploadFile : uploadFiles) { if (uploadFile.isFile()) testAHBaseFile(uploadFile); } }
HBaseFile(String identifier) { this.identifier = identifier; this.status = NEW; this.createTime = System.currentTimeMillis(); }
HBaseFile { HBaseFile(String identifier) { this.identifier = identifier; this.status = NEW; this.createTime = System.currentTimeMillis(); } }
HBaseFile { HBaseFile(String identifier) { this.identifier = identifier; this.status = NEW; this.createTime = System.currentTimeMillis(); } HBaseFile(String identifier); }
HBaseFile { HBaseFile(String identifier) { this.identifier = identifier; this.status = NEW; this.createTime = System.currentTimeMillis(); } HBaseFile(String identifier); void delete(); boolean exists(); boolean integrity(); String getIdentifier(); long getSize(); String getDesc(); long getCreateTime(); @Override String toString(); }
HBaseFile { HBaseFile(String identifier) { this.identifier = identifier; this.status = NEW; this.createTime = System.currentTimeMillis(); } HBaseFile(String identifier); void delete(); boolean exists(); boolean integrity(); String getIdentifier(); long getSize(); String getDesc(); long getCreateTime(); @Override String toString();  }