|
@@ -799,7 +799,7 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
public String getVersion() {
|
|
public String getVersion() {
|
|
readLock.lock();
|
|
readLock.lock();
|
|
try {
|
|
try {
|
|
- return getStateEntity().getVersion();
|
|
|
|
|
|
+ return stateEntity.getVersion();
|
|
} finally {
|
|
} finally {
|
|
readLock.unlock();
|
|
readLock.unlock();
|
|
}
|
|
}
|
|
@@ -820,7 +820,7 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
public SecurityState getSecurityState() {
|
|
public SecurityState getSecurityState() {
|
|
readLock.lock();
|
|
readLock.lock();
|
|
try {
|
|
try {
|
|
- return getStateEntity().getSecurityState();
|
|
|
|
|
|
+ return stateEntity.getSecurityState();
|
|
} finally {
|
|
} finally {
|
|
readLock.unlock();
|
|
readLock.unlock();
|
|
}
|
|
}
|
|
@@ -841,7 +841,7 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
public SecurityState getDesiredSecurityState() {
|
|
public SecurityState getDesiredSecurityState() {
|
|
readLock.lock();
|
|
readLock.lock();
|
|
try {
|
|
try {
|
|
- return getDesiredStateEntity().getSecurityState();
|
|
|
|
|
|
+ return desiredStateEntity.getSecurityState();
|
|
} finally {
|
|
} finally {
|
|
readLock.unlock();
|
|
readLock.unlock();
|
|
}
|
|
}
|
|
@@ -1026,7 +1026,7 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
public StackId getStackVersion() {
|
|
public StackId getStackVersion() {
|
|
readLock.lock();
|
|
readLock.lock();
|
|
try {
|
|
try {
|
|
- HostComponentStateEntity schStateEntity = getStateEntity();
|
|
|
|
|
|
+ HostComponentStateEntity schStateEntity = stateEntity;
|
|
if (schStateEntity == null) {
|
|
if (schStateEntity == null) {
|
|
return new StackId();
|
|
return new StackId();
|
|
}
|
|
}
|
|
@@ -1057,7 +1057,7 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
public State getDesiredState() {
|
|
public State getDesiredState() {
|
|
readLock.lock();
|
|
readLock.lock();
|
|
try {
|
|
try {
|
|
- return getDesiredStateEntity().getDesiredState();
|
|
|
|
|
|
+ return desiredStateEntity.getDesiredState();
|
|
} finally {
|
|
} finally {
|
|
readLock.unlock();
|
|
readLock.unlock();
|
|
}
|
|
}
|
|
@@ -1078,7 +1078,7 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
public StackId getDesiredStackVersion() {
|
|
public StackId getDesiredStackVersion() {
|
|
readLock.lock();
|
|
readLock.lock();
|
|
try {
|
|
try {
|
|
- StackEntity desiredStackEntity = getDesiredStateEntity().getDesiredStack();
|
|
|
|
|
|
+ StackEntity desiredStackEntity = desiredStateEntity.getDesiredStack();
|
|
return new StackId(desiredStackEntity.getStackName(),
|
|
return new StackId(desiredStackEntity.getStackName(),
|
|
desiredStackEntity.getStackVersion());
|
|
desiredStackEntity.getStackVersion());
|
|
} finally {
|
|
} finally {
|
|
@@ -1104,7 +1104,7 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
public HostComponentAdminState getComponentAdminState() {
|
|
public HostComponentAdminState getComponentAdminState() {
|
|
readLock.lock();
|
|
readLock.lock();
|
|
try {
|
|
try {
|
|
- HostComponentAdminState adminState = getDesiredStateEntity().getAdminState();
|
|
|
|
|
|
+ HostComponentAdminState adminState = desiredStateEntity.getAdminState();
|
|
if (adminState == null && !serviceComponent.isClientComponent()
|
|
if (adminState == null && !serviceComponent.isClientComponent()
|
|
&& !serviceComponent.isMasterComponent()) {
|
|
&& !serviceComponent.isMasterComponent()) {
|
|
adminState = HostComponentAdminState.INSERVICE;
|
|
adminState = HostComponentAdminState.INSERVICE;
|
|
@@ -1445,7 +1445,7 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
public MaintenanceState getMaintenanceState() {
|
|
public MaintenanceState getMaintenanceState() {
|
|
readLock.lock();
|
|
readLock.lock();
|
|
try {
|
|
try {
|
|
- return getDesiredStateEntity().getMaintenanceState();
|
|
|
|
|
|
+ return desiredStateEntity.getMaintenanceState();
|
|
} finally {
|
|
} finally {
|
|
readLock.unlock();
|
|
readLock.unlock();
|
|
}
|
|
}
|
|
@@ -1475,7 +1475,7 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
|
|
public boolean isRestartRequired() {
|
|
public boolean isRestartRequired() {
|
|
readLock.lock();
|
|
readLock.lock();
|
|
try {
|
|
try {
|
|
- return getDesiredStateEntity().isRestartRequired();
|
|
|
|
|
|
+ return desiredStateEntity.isRestartRequired();
|
|
} finally {
|
|
} finally {
|
|
readLock.unlock();
|
|
readLock.unlock();
|
|
}
|
|
}
|