return new SimpleResourceUnit(String.format(STR0,loadManager.selectBrokerForAssignment(serviceUnit)),new PulsarResourceDescription()); | return Optional.of(new SimpleResourceUnit(String.format(STR0,leastLoadedBroker.get()),new PulsarResourceDescription())); | new SimpleResourceUnit(String.format(STR0,loadManager.selectBrokerForAssignment(serviceUnit)),new PulsarResourceDescription()) | Optional.of(new SimpleResourceUnit(String.format(STR0,leastLoadedBroker.get()),new PulsarResourceDescription())) | pulsar | d6d4fa3a1103f650bf16e74429f82db3d33fe739 | org.apache.pulsar.broker.loadbalance.impl.ModularLoadManagerWrapper | | _1 | getLeastLoaded |
---|
_2 | getLeastLoaded |
---|
| v0 | new PulsarResourceDescription() |
---|
| | v0 | new PulsarResourceDescription() |
---|
| Returns | False |