@Test public void touchTestWithFullURI() throws IOException { String tachyonURI = "tachyon: + mLocalTachyonCluster.getMasterPort() + "/destFileURI"; String[] argv = new String[] { "touch", tachyonURI }; mFsShell.touch(argv); TachyonFile tFile = mTfs.getFile("/destFileURI"); assertThat(tFile, notNullValue()); assertThat(getCommandOutput(argv), equalTo(mOutput.toString())); assertThat(tFile.isFile(), equalTo(true)); }
public int touch(String argv[]) throws IOException { if (argv.length != 2) { System.out.println("Usage: tfs touch <path>"); return -1; } String path = argv[1]; String file = Utils.getFilePath(path); TachyonFS tachyonClient = TachyonFS.get(Utils.validatePath(path)); TachyonFile tFile = tachyonClient.getFile(tachyonClient.createFile(file)); OutputStream out = tFile.getOutStream(WriteType.THROUGH); out.close(); System.out.println(path + " has been created"); return 0; }
TFsShell { public int touch(String argv[]) throws IOException { if (argv.length != 2) { System.out.println("Usage: tfs touch <path>"); return -1; } String path = argv[1]; String file = Utils.getFilePath(path); TachyonFS tachyonClient = TachyonFS.get(Utils.validatePath(path)); TachyonFile tFile = tachyonClient.getFile(tachyonClient.createFile(file)); OutputStream out = tFile.getOutStream(WriteType.THROUGH); out.close(); System.out.println(path + " has been created"); return 0; } }
TFsShell { public int touch(String argv[]) throws IOException { if (argv.length != 2) { System.out.println("Usage: tfs touch <path>"); return -1; } String path = argv[1]; String file = Utils.getFilePath(path); TachyonFS tachyonClient = TachyonFS.get(Utils.validatePath(path)); TachyonFile tFile = tachyonClient.getFile(tachyonClient.createFile(file)); OutputStream out = tFile.getOutStream(WriteType.THROUGH); out.close(); System.out.println(path + " has been created"); return 0; }  }
TFsShell { public int touch(String argv[]) throws IOException { if (argv.length != 2) { System.out.println("Usage: tfs touch <path>"); return -1; } String path = argv[1]; String file = Utils.getFilePath(path); TachyonFS tachyonClient = TachyonFS.get(Utils.validatePath(path)); TachyonFile tFile = tachyonClient.getFile(tachyonClient.createFile(file)); OutputStream out = tFile.getOutStream(WriteType.THROUGH); out.close(); System.out.println(path + " has been created"); return 0; }  static void main(String argv[]); int cat(String argv[]); int copyFromLocal(String argv[]); int copyToLocal(String argv[]); int count(String argv[]); int fileinfo(String argv[]); int location(String argv[]); int ls(String argv[]); int lsr(String argv[]); int mkdir(String argv[]); int pin(String argv[]); int unpin(String argv[]); void printUsage(); int rename(String argv[]); int report(String argv[]); int request(String argv[]); int rm(String argv[]); int run(String argv[]); int tail(String argv[]); int touch(String argv[]); }
TFsShell { public int touch(String argv[]) throws IOException { if (argv.length != 2) { System.out.println("Usage: tfs touch <path>"); return -1; } String path = argv[1]; String file = Utils.getFilePath(path); TachyonFS tachyonClient = TachyonFS.get(Utils.validatePath(path)); TachyonFile tFile = tachyonClient.getFile(tachyonClient.createFile(file)); OutputStream out = tFile.getOutStream(WriteType.THROUGH); out.close(); System.out.println(path + " has been created"); return 0; }  static void main(String argv[]); int cat(String argv[]); int copyFromLocal(String argv[]); int copyToLocal(String argv[]); int count(String argv[]); int fileinfo(String argv[]); int location(String argv[]); int ls(String argv[]); int lsr(String argv[]); int mkdir(String argv[]); int pin(String argv[]); int unpin(String argv[]); void printUsage(); int rename(String argv[]); int report(String argv[]); int request(String argv[]); int rm(String argv[]); int run(String argv[]); int tail(String argv[]); int touch(String argv[]);  }