Merge pull request #275 from PascalSchumacher/BrokerService_fix_typo

BrokerService: fix typo in field and parameter name
This commit is contained in:
Jean-Baptiste Onofré 2019-11-18 17:42:44 +01:00 committed by GitHub
commit dcb5ba1fb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 13 deletions

View File

@ -175,7 +175,7 @@ public class BrokerService implements Service {
private TaskRunnerFactory persistenceTaskRunnerFactory; private TaskRunnerFactory persistenceTaskRunnerFactory;
private SystemUsage systemUsage; private SystemUsage systemUsage;
private SystemUsage producerSystemUsage; private SystemUsage producerSystemUsage;
private SystemUsage consumerSystemUsaage; private SystemUsage consumerSystemUsage;
private PersistenceAdapter persistenceAdapter; private PersistenceAdapter persistenceAdapter;
private PersistenceAdapterFactory persistenceFactory; private PersistenceAdapterFactory persistenceFactory;
protected DestinationFactory destinationFactory; protected DestinationFactory destinationFactory;
@ -1207,29 +1207,29 @@ public class BrokerService implements Service {
* @throws IOException * @throws IOException
*/ */
public SystemUsage getConsumerSystemUsage() throws IOException { public SystemUsage getConsumerSystemUsage() throws IOException {
if (this.consumerSystemUsaage == null) { if (this.consumerSystemUsage == null) {
if (splitSystemUsageForProducersConsumers) { if (splitSystemUsageForProducersConsumers) {
this.consumerSystemUsaage = new SystemUsage(getSystemUsage(), "Consumer"); this.consumerSystemUsage = new SystemUsage(getSystemUsage(), "Consumer");
float portion = consumerSystemUsagePortion / 100f; float portion = consumerSystemUsagePortion / 100f;
this.consumerSystemUsaage.getMemoryUsage().setUsagePortion(portion); this.consumerSystemUsage.getMemoryUsage().setUsagePortion(portion);
addService(this.consumerSystemUsaage); addService(this.consumerSystemUsage);
} else { } else {
consumerSystemUsaage = getSystemUsage(); consumerSystemUsage = getSystemUsage();
} }
} }
return this.consumerSystemUsaage; return this.consumerSystemUsage;
} }
/** /**
* @param consumerSystemUsaage * @param consumerSystemUsage
* the storeSystemUsage to set * the storeSystemUsage to set
*/ */
public void setConsumerSystemUsage(SystemUsage consumerSystemUsaage) { public void setConsumerSystemUsage(SystemUsage consumerSystemUsage) {
if (this.consumerSystemUsaage != null) { if (this.consumerSystemUsage != null) {
removeService(this.consumerSystemUsaage); removeService(this.consumerSystemUsage);
} }
this.consumerSystemUsaage = consumerSystemUsaage; this.consumerSystemUsage = consumerSystemUsage;
addService(this.consumerSystemUsaage); addService(this.consumerSystemUsage);
} }
/** /**