Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1120418] forgot to initialize lookup factor and step runner SLSB …
Browse files Browse the repository at this point in the history
…property

With this commit I have successfully deployed a seond node even with partial
failures. Progress!
  • Loading branch information
John Sanda committed Aug 14, 2014
1 parent 0e1d481 commit 9cadde5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.rhq.enterprise.server.auth.SubjectManagerLocal;
import org.rhq.enterprise.server.cloud.StorageNodeManagerLocal;
import org.rhq.enterprise.server.operation.OperationManagerLocal;
import org.rhq.enterprise.server.storage.maintenance.DefaultStepRunnerFactory;
import org.rhq.enterprise.server.storage.maintenance.MaintenanceStepRunnerFactory;
import org.rhq.enterprise.server.storage.maintenance.StorageMaintenanceJob;
import org.rhq.enterprise.server.storage.maintenance.job.StepCalculator;
Expand Down Expand Up @@ -53,9 +54,12 @@ public class StorageClusterMaintenanceManagerBean implements StorageClusterMaint
@EJB
private StorageClusterSettingsManagerLocal clusterSettingsManager;

@EJB
private StorageClientManager storageClientManager;

private CalculatorLookup calculatorLookup = new DefaultCalculatorLookup();

private MaintenanceStepRunnerFactory stepRunnerFactory;
private MaintenanceStepRunnerFactory stepRunnerFactory = new DefaultStepRunnerFactory();

@Override
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
Expand Down Expand Up @@ -217,6 +221,7 @@ private boolean executeStep(MaintenanceStep step, MaintenanceStepRunner stepRunn
stepRunner.setOperationManager(operationManager);
stepRunner.setStorageNodeManager(storageNodeManager);
stepRunner.setSubjectManager(subjectManager);
stepRunner.setStorageClientManager(storageClientManager);
stepRunner.execute(step);

return true;
Expand Down

0 comments on commit 9cadde5

Please sign in to comment.