当前位置: 首页>>代码示例>>Java>>正文


Java TableListing.toString方法代码示例

本文整理汇总了Java中org.apache.hadoop.tools.TableListing.toString方法的典型用法代码示例。如果您正苦于以下问题:Java TableListing.toString方法的具体用法?Java TableListing.toString怎么用?Java TableListing.toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.hadoop.tools.TableListing的用法示例。


在下文中一共展示了TableListing.toString方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getLongUsage

import org.apache.hadoop.tools.TableListing; //导入方法依赖的package包/类
@Override
public String getLongUsage() {
  TableListing listing = AdminHelper.getOptionDescriptionListing();
  listing.addRow("<path>", "A path to cache. The path can be " +
      "a directory or a file.");
  listing.addRow("<pool-name>", "The pool to which the directive will be " +
      "added. You must have write permission on the cache pool "
      + "in order to add new directives.");
  listing.addRow("-force",
      "Skips checking of cache pool resource limits.");
  listing.addRow("<replication>", "The cache replication factor to use. " +
      "Defaults to 1.");
  listing.addRow("<time-to-live>", "How long the directive is " +
      "valid. Can be specified in minutes, hours, and days, e.g. " +
      "30m, 4h, 2d. Valid units are [smhd]." +
      " \"never\" indicates a directive that never expires." +
      " If unspecified, the directive never expires.");
  return getShortUsage() + "\n" +
    "Add a new cache directive.\n\n" +
    listing.toString();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:22,代码来源:CacheAdmin.java

示例2: getLongUsage

import org.apache.hadoop.tools.TableListing; //导入方法依赖的package包/类
@Override
public String getLongUsage() {
  TableListing listing = AdminHelper.getOptionDescriptionListing();
  listing.addRow("<id>", "The ID of the directive to modify (required)");
  listing.addRow("<path>", "A path to cache. The path can be " +
      "a directory or a file. (optional)");
  listing.addRow("-force",
      "Skips checking of cache pool resource limits.");
  listing.addRow("<replication>", "The cache replication factor to use. " +
      "(optional)");
  listing.addRow("<pool-name>", "The pool to which the directive will be " +
      "added. You must have write permission on the cache pool "
      + "in order to move a directive into it. (optional)");
  listing.addRow("<time-to-live>", "How long the directive is " +
      "valid. Can be specified in minutes, hours, and days, e.g. " +
      "30m, 4h, 2d. Valid units are [smhd]." +
      " \"never\" indicates a directive that never expires.");
  return getShortUsage() + "\n" +
    "Modify a cache directive.\n\n" +
    listing.toString();
}
 
开发者ID:yncxcw,项目名称:big-c,代码行数:22,代码来源:CacheAdmin.java

示例3: getLongUsage

import org.apache.hadoop.tools.TableListing; //导入方法依赖的package包/类
@Override
public String getLongUsage() {
  TableListing listing = getOptionDescriptionListing();
  listing.addRow("<path>", "A path to cache. The path can be " +
      "a directory or a file.");
  listing.addRow("<pool-name>", "The pool to which the directive will be " +
      "added. You must have write permission on the cache pool "
      + "in order to add new directives.");
  listing.addRow("-force",
      "Skips checking of cache pool resource limits.");
  listing.addRow("<replication>", "The cache replication factor to use. " +
      "Defaults to 1.");
  listing.addRow("<time-to-live>", "How long the directive is " +
      "valid. Can be specified in minutes, hours, and days, e.g. " +
      "30m, 4h, 2d. Valid units are [smhd]." +
      " \"never\" indicates a directive that never expires." +
      " If unspecified, the directive never expires.");
  return getShortUsage() + "\n" +
    "Add a new cache directive.\n\n" +
    listing.toString();
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:22,代码来源:CacheAdmin.java

示例4: getLongUsage

import org.apache.hadoop.tools.TableListing; //导入方法依赖的package包/类
@Override
public String getLongUsage() {
  final TableListing listing = AdminHelper.getOptionDescriptionListing();
  listing.addRow("<path>", "The path of the encryption zone to create. " +
    "It must be an empty directory.");
  listing.addRow("<keyName>", "Name of the key to use for the " +
      "encryption zone.");
  return getShortUsage() + "\n" +
    "Create a new encryption zone.\n\n" +
    listing.toString();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:12,代码来源:CryptoAdmin.java

示例5: getLongUsage

import org.apache.hadoop.tools.TableListing; //导入方法依赖的package包/类
@Override
public String getLongUsage() {
  final TableListing listing = AdminHelper.getOptionDescriptionListing();
  listing.addRow("<command-name>", "The command for which to get " +
      "detailed help. If no command is specified, print detailed help for " +
      "all commands");
  return getShortUsage() + "\n" +
      "Get detailed help about a command.\n\n" +
      listing.toString();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:11,代码来源:AdminHelper.java

示例6: getLongUsage

import org.apache.hadoop.tools.TableListing; //导入方法依赖的package包/类
@Override
public String getLongUsage() {
  final TableListing listing = AdminHelper.getOptionDescriptionListing();
  listing.addRow("<path>",
      "The path of the file/directory for getting the storage policy");
  return getShortUsage() + "\n" +
      "Get the storage policy of a file/directory.\n\n" +
      listing.toString();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:StoragePolicyAdmin.java

示例7: getLongUsage

import org.apache.hadoop.tools.TableListing; //导入方法依赖的package包/类
@Override
public String getLongUsage() {
  TableListing listing = AdminHelper.getOptionDescriptionListing();
  listing.addRow("<path>", "The path of the file/directory to set storage" +
      " policy");
  listing.addRow("<policy>", "The name of the block storage policy");
  return getShortUsage() + "\n" +
      "Set the storage policy to a file/directory.\n\n" +
      listing.toString();
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:11,代码来源:StoragePolicyAdmin.java

示例8: getLongUsage

import org.apache.hadoop.tools.TableListing; //导入方法依赖的package包/类
@Override
public String getLongUsage() {
  final TableListing listing = getOptionDescriptionListing();
  listing.addRow("<path>", "The path of the encryption zone to create. " +
    "It must be an empty directory.");
  listing.addRow("<keyName>", "Name of the key to use for the " +
      "encryption zone.");
  return getShortUsage() + "\n" +
    "Create a new encryption zone.\n\n" +
    listing.toString();
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:12,代码来源:CryptoAdmin.java

示例9: getLongUsage

import org.apache.hadoop.tools.TableListing; //导入方法依赖的package包/类
@Override
public String getLongUsage() {
  final TableListing listing = getOptionDescriptionListing();
  listing.addRow("<path>",
      "The path of the file/directory for getting the storage policy");
  return getShortUsage() + "\n" +
      "Get the storage policy of a file/directory.\n\n" +
      listing.toString();
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:10,代码来源:StoragePolicyAdmin.java

示例10: getLongUsage

import org.apache.hadoop.tools.TableListing; //导入方法依赖的package包/类
@Override
public String getLongUsage() {
  final TableListing listing = getOptionDescriptionListing();
  listing.addRow("<command-name>", "The command for which to get " +
      "detailed help. If no command is specified, print detailed help for " +
      "all commands");
  return getShortUsage() + "\n" +
    "Get detailed help about a command.\n\n" +
    listing.toString();
}
 
开发者ID:yncxcw,项目名称:FlexMap,代码行数:11,代码来源:CryptoAdmin.java


注:本文中的org.apache.hadoop.tools.TableListing.toString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。