Package org.apache.hadoop.util

Examples of org.apache.hadoop.util.CoronaSerializer


    // This will prevent the expireNodes and expireSessions threads from
    // expiring the nodes and sessions respectively
    safeMode = true;
    LOG.info("Safe mode is now: " + (this.safeMode ? "ON" : "OFF"));

    CoronaSerializer coronaSerializer = new CoronaSerializer(conf);

    // Expecting the START_OBJECT token for ClusterManager
    coronaSerializer.readStartObjectToken("ClusterManager");

    coronaSerializer.readField("startTime");
    startTime = coronaSerializer.readValueAs(Long.class);

    coronaSerializer.readField("nodeManager");
    nodeManager = new NodeManager(this, hostsReader, coronaSerializer);
    nodeManager.setConf(conf);

    coronaSerializer.readField("sessionManager");
    sessionManager = new SessionManager(this, coronaSerializer);

    coronaSerializer.readField("sessionNotifier");
    sessionNotifier = new SessionNotifier(sessionManager, this, metrics,
                                          coronaSerializer);

    // Expecting the END_OBJECT token for ClusterManager
    coronaSerializer.readEndObjectToken("ClusterManager");

    lastRestartTime = clock.getTime();
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.util.CoronaSerializer

Copyright © 2018 www.massapicom. 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.