private static String getPath(ServerContext context, Namespace.ID namespaceId) { return context.getZooKeeperRoot() + Constants.ZNAMESPACES + "/" + namespaceId + Constants.ZNAMESPACE_CONF; } }
public static String[] getBaseUris(ServerContext context) { return getBaseUris(context.getConfiguration(), context.getHadoopConf()); }
TableConfWatcher(ServerContext context) { this.context = context; tablesPrefix = context.getZooKeeperRoot() + Constants.ZTABLES + "/"; scf = context.getServerConfFactory(); }
public ReplicationWorker(ServerContext context, VolumeManager fs) { this.context = context; this.fs = fs; this.conf = context.getConfiguration(); }
public WalStateManager(ServerContext context) { this.context = context; this.zoo = context.getZooReaderWriter(); }
@Override public String getInstanceId() { return context.getInstanceID(); }
public TableManager getTableManager() { return context.getTableManager(); }
public static synchronized int getAccumuloPersistentVersion(Volume v) { Path path = ServerConstants.getDataVersionLocation(v); return getAccumuloPersistentVersion(v.getFileSystem(), path); }
@Override public String getZooKeepers() { return context.getZooKeepers(); }
@Override public String getRootTabletLocation() { return context.getRootTabletLocation(); }
protected TableOperations getTableOperations() { if (tops == null) tops = this.context.tableOperations(); return tops; }
public ServerContext(SiteConfiguration siteConfig, String instanceName, String zooKeepers, int zooKeepersSessionTimeOut) { this(new ServerInfo(siteConfig, instanceName, zooKeepers, zooKeepersSessionTimeOut)); }
protected ZooConfiguration(ServerContext context, ZooCache propCache, AccumuloConfiguration parent) { this.context = context; this.propCache = propCache; this.parent = parent; this.propPathPrefix = context.getZooKeeperRoot() + Constants.ZCONFIG; }
public AccumuloConfiguration getConfiguration() { return context.getConfiguration(); }
public NamespaceConfiguration(Namespace.ID namespaceId, ServerContext context, AccumuloConfiguration parent) { this.context = context; this.parent = parent; this.namespaceId = namespaceId; this.path = context.getZooKeeperRoot() + Constants.ZNAMESPACES + "/" + namespaceId + Constants.ZNAMESPACE_CONF; }
AccumuloConfiguration getConfiguration() { return context.getConfiguration(); }
static String getZookeeperLogLocation(ServerContext context) { return context.getZooKeeperRoot() + RootTable.ZROOT_TABLET_WALOGS; }
public AccumuloConfiguration getConfiguration() { return context.getConfiguration(); }
public String getZooKeeperRoot() { return context.getZooKeeperRoot(); }
private String getPath() { return context.getZooKeeperRoot() + Constants.ZTABLES + "/" + tableId + Constants.ZTABLE_CONF; }