本文整理匯總了Java中io.fabric8.api.Container.getProvisionStatus方法的典型用法代碼示例。如果您正苦於以下問題:Java Container.getProvisionStatus方法的具體用法?Java Container.getProvisionStatus怎麽用?Java Container.getProvisionStatus使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類io.fabric8.api.Container
的用法示例。
在下文中一共展示了Container.getProvisionStatus方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: matches
import io.fabric8.api.Container; //導入方法依賴的package包/類
public Boolean matches(Container container) {
String provisionStatus = container.getProvisionStatus();
Boolean isProvisionStopped = provisionStatus.equalsIgnoreCase(Container.PROVISION_STOPPED);
Boolean isAlive = container.isAlive();
LOG.trace(new ToStringBuilder(this)
.append("containerName", containerName)
.append("provisionStatus", provisionStatus)
.append("isProvisionStopped", isProvisionStopped)
.append("isAlive", isAlive)
.toString());
return !isAlive && isProvisionStopped;
}
示例2: matches
import io.fabric8.api.Container; //導入方法依賴的package包/類
public Boolean matches(Container container) {
Boolean isAlive = container.isAlive();
String provisionStatus = container.getProvisionStatus();
Boolean isProvisioningComplete = container.isProvisioningComplete();
Boolean isProvisionComplete = provisionStatus.equalsIgnoreCase(Container.PROVISION_SUCCESS);
Boolean isDependencyFrameworkComplete = false;
String blueprintStatus = dataStore.getContainerAttribute(containerName, DataStore.ContainerAttribute.BlueprintStatus, "", false, false);
if (!blueprintStatus.isEmpty()) {
isDependencyFrameworkComplete = blueprintStatus.equalsIgnoreCase(STARTED);
}
String springStatus = dataStore.getContainerAttribute(containerName, DataStore.ContainerAttribute.SpringStatus, "", false, false);
if (!springStatus.isEmpty()) {
isDependencyFrameworkComplete = springStatus.equalsIgnoreCase(STARTED);
}
String provisionException = container.getProvisionException();
Boolean hasNoProvisionException = provisionException == null;
if (hasNoProvisionException) {
provisionException = "";
}
LOG.trace(new ToStringBuilder(this)
.append("containerName", containerName)
.append("isAlive", isAlive)
.append("isProvisioningComplete", isProvisioningComplete)
.append("isDependencyFrameworkComplete", isDependencyFrameworkComplete)
.append("isProvisionComplete", isProvisionComplete)
.append("hasNoProvisionException", hasNoProvisionException)
.append("provisionException", provisionException)
.toString());
return isAlive && isProvisioningComplete && isDependencyFrameworkComplete && isProvisionComplete && hasNoProvisionException;
}