*/
public Resource(ResourceId id, ResourceType type, IdealState idealState,
ResourceAssignment resourceAssignment, ExternalView externalView,
RebalancerContext rebalancerContext, UserConfig userConfig, int bucketSize,
boolean batchMessageMode) {
SchedulerTaskConfig schedulerTaskConfig = schedulerTaskConfig(idealState);
RebalancerConfig rebalancerConfig = new RebalancerConfig(rebalancerContext);
_config =
new ResourceConfig(id, type, schedulerTaskConfig, rebalancerConfig, userConfig, bucketSize,
batchMessageMode);