Package com.opengamma.masterdb.batch

Examples of com.opengamma.masterdb.batch.DbBatchMaster


  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    ComponentInfo info = new ComponentInfo(BatchMaster.class, getClassifier());
   
    // master
    DbBatchMaster master = new DbBatchMaster(getDbConnector(), getComputationTargetResolver());
    if (getUniqueIdScheme() != null) {
      master.setUniqueIdScheme(getUniqueIdScheme());
    }
    checkSchema(master.getSchemaVersion(), "rsk");
   
    // register
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteBatchMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, master.getUniqueIdScheme());
    repo.registerComponent(info, master);
   
    // publish
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataBatchMasterResource(master));
View Full Code Here

TOP

Related Classes of com.opengamma.masterdb.batch.DbBatchMaster

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.