@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));