Examples of Conf


Examples of org.apache.hadoop.hdfs.DFSClient.Conf

    } else {
      // HA case
      FailoverProxyProvider<T> failoverProxyProvider = NameNodeProxies
          .createFailoverProxyProvider(conf, failoverProxyProviderClass, xface,
              nameNodeUri);
      Conf config = new Conf(conf);
      T proxy = (T) RetryProxy.create(xface, failoverProxyProvider,
          RetryPolicies.failoverOnNetworkException(
              RetryPolicies.TRY_ONCE_THEN_FAIL, config.maxFailoverAttempts,
              config.maxRetryAttempts, config.failoverSleepBaseMillis,
              config.failoverSleepMaxMillis));
View Full Code Here

Examples of org.apache.hadoop.hdfs.DFSClient.Conf

    } else {
      // HA case
      FailoverProxyProvider<T> failoverProxyProvider = NameNodeProxies
          .createFailoverProxyProvider(conf, failoverProxyProviderClass, xface,
              nameNodeUri);
      Conf config = new Conf(conf);
      T proxy = (T) RetryProxy.create(xface, failoverProxyProvider, RetryPolicies
          .failoverOnNetworkException(RetryPolicies.TRY_ONCE_THEN_FAIL,
              config.maxFailoverAttempts, config.failoverSleepBaseMillis,
              config.failoverSleepMaxMillis));
     
View Full Code Here

Examples of org.apache.hadoop.hdfs.DFSClient.Conf

      ExtendedBlock block, Token<BlockTokenIdentifier> blockToken,
      long startOffset, long len, DataEncryptionKey encryptionKey)
          throws IOException {
    int bufferSize = conf.getInt(DFSConfigKeys.IO_FILE_BUFFER_SIZE_KEY,
        DFSConfigKeys.IO_FILE_BUFFER_SIZE_DEFAULT);
    return newBlockReader(new Conf(conf),
        sock, file, block, blockToken, startOffset,
        len, bufferSize, true, "", encryptionKey, null);
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.DFSClient.Conf

    } else {
      // HA case
      FailoverProxyProvider<T> failoverProxyProvider = NameNodeProxies
          .createFailoverProxyProvider(conf, failoverProxyProviderClass, xface,
              nameNodeUri);
      Conf config = new Conf(conf);
      T proxy = (T) RetryProxy.create(xface, failoverProxyProvider,
          RetryPolicies.failoverOnNetworkException(
              RetryPolicies.TRY_ONCE_THEN_FAIL, config.maxFailoverAttempts,
              config.maxRetryAttempts, config.failoverSleepBaseMillis,
              config.failoverSleepMaxMillis));
View Full Code Here

Examples of org.apache.hadoop.hdfs.DFSClient.Conf

      Socket sock, String file,
      ExtendedBlock block, Token<BlockTokenIdentifier> blockToken,
      long startOffset, long len) throws IOException {
    int bufferSize = conf.getInt(DFSConfigKeys.IO_FILE_BUFFER_SIZE_KEY,
        DFSConfigKeys.IO_FILE_BUFFER_SIZE_DEFAULT);
    return newBlockReader(new Conf(conf),
        sock, file, block, blockToken, startOffset,
        len, bufferSize, true, "");
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.DFSClient.Conf

    } else {
      // HA case
      FailoverProxyProvider<T> failoverProxyProvider = NameNodeProxies
          .createFailoverProxyProvider(conf, failoverProxyProviderClass, xface,
              nameNodeUri);
      Conf config = new Conf(conf);
      T proxy = (T) RetryProxy.create(xface, failoverProxyProvider, RetryPolicies
          .failoverOnNetworkException(RetryPolicies.TRY_ONCE_THEN_FAIL,
              config.maxFailoverAttempts, config.failoverSleepBaseMillis,
              config.failoverSleepMaxMillis));
     
View Full Code Here

Examples of org.lilyproject.runtime.conf.Conf

    private LilyRuntimeModel buildModel(ConfRegistry confRegistry) {
        LilyRuntimeModel newModel;
        if ((settings.getModel() != null)) {
            newModel = settings.getModel();
        } else {
            Conf modulesConf = confRegistry.getConfiguration("wiring", false, false);
            Set<String> disabledModuleIds = settings.getDisabledModuleIds() != null ?
                    settings.getDisabledModuleIds() : Collections.<String>emptySet();
            SourceLocations sourceLocations = settings.getSourceLocations() != null ?
                    settings.getSourceLocations() : new SourceLocations();
            try {
View Full Code Here

Examples of org.lilyproject.runtime.conf.Conf

            ModuleConfig moduleConf = ModuleConfigBuilder.build(entry, this);
            moduleConfigs.add(moduleConf);
        }

        // Check / build class path configurations
        Conf classLoadingConf = confRegistry.getConfiguration("classloading");
        List<ClasspathEntry> sharedClasspath = ClassLoaderConfigurer.configureClassPaths(moduleConfigs,
                settings.getEnableArtifactSharing(), classLoadingConf);

        // Construct the shared classloader
        infolog.debug("Creating shared classloader");
View Full Code Here

Examples of org.lilyproject.runtime.conf.Conf

    private ClassLoaderConfigurer(List<ModuleConfig> moduleConfigs, boolean enableSharing, Conf classLoadingConf) {
        this.moduleConfigs = moduleConfigs;
        this.enableSharing = enableSharing;

        Conf requiredConf = classLoadingConf.getChild("required", false);
        Conf allowedConf = classLoadingConf.getChild("allowed", false);

        if (requiredConf != null) {
            String requiredSharingStr = requiredConf.getAttribute("on-conflict", requiredSharingConflictResolution.getName());
            requiredSharingConflictResolution = SharingConflictResolution.fromString(requiredSharingStr);
            if (requiredSharingConflictResolution == null || requiredSharingConflictResolution.equals(SharingConflictResolution.DONTSHARE)) {
                throw new LilyRTException("Illegal value for required sharing conflict resolution (@on-conflict: " + requiredSharingStr, requiredConf.getLocation());
            }
        }

        if (allowedConf != null) {
            String allowedSharingStr = allowedConf.getAttribute("on-conflict", allowedSharingConflictResolution.getName());
            allowedSharingConflictResolution = SharingConflictResolution.fromString(allowedSharingStr);
            if (allowedSharingConflictResolution == null) {
                throw new LilyRTException("Illegal value for allowed sharing conflict resolution (@on-conflict:  " + allowedSharingStr, requiredConf.getLocation());
            }
        }
View Full Code Here

Examples of org.lilyproject.runtime.conf.Conf

     * @param qName to test
     */
    public ConfAttributeIterator(NodePointer parent, QName qName) {
        this.parent = parent;

        Conf conf = (Conf)parent.getNode();

        String name = qName.getName();
        if (name.equals("*")) {
            attributes.addAll(conf.getAttributes().entrySet());
        } else {
            for (Map.Entry<String, String> entry : conf.getAttributes().entrySet()) {
                if (entry.getKey().equals(name)) {
                    attributes.add(entry);
                    break;
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.