Package com.linkedin.helix.model

Examples of com.linkedin.helix.model.Error


      // TODO need to fix: ERRORS_CONTROLLER doesn't have a form of
      // ../{sessionId}/{subPath}
      // accessor.setProperty(PropertyType.ERRORS_CONTROLLER, record,
      // statusUpdateSubPath);
      accessor.setProperty(keyBuilder.controllerTaskError(statusUpdateSubPath),
                           new Error(record));
    }
    else
    {
      // accessor.updateProperty(PropertyType.ERRORS,
      // record,
      // instanceName,
      // sessionId,
      // statusUpdateSubPath,
      // statusUpdateKey);
      accessor.updateProperty(keyBuilder.stateTransitionError(instanceName,
                                                              sessionId,
                                                              statusUpdateSubPath,
                                                              statusUpdateKey),
                              new Error(record));

    }
  }
View Full Code Here


    // TODO remove the hard code: "controller"
    if (instanceName.equalsIgnoreCase("controller"))
    {
      accessor.setProperty(keyBuilder.controllerTaskError(statusUpdateSubPath,
                                                          statusUpdateKey),
                                                          new Error(record));
    }
    else
    {
      // accessor.updateProperty(PropertyType.ERRORS,
      // record,
      // instanceName,
      // sessionId,
      // statusUpdateSubPath,
      // statusUpdateKey);
      accessor.updateProperty(keyBuilder.stateTransitionError(instanceName,
                                                              sessionId,
                                                              statusUpdateSubPath,
                                                              statusUpdateKey),
                              new Error(record));

    }
  }
View Full Code Here

TOP

Related Classes of com.linkedin.helix.model.Error

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.