本文整理汇总了Java中org.jboss.as.controller.client.helpers.domain.ServerUpdateResult类的典型用法代码示例。如果您正苦于以下问题:Java ServerUpdateResult类的具体用法?Java ServerUpdateResult怎么用?Java ServerUpdateResult使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ServerUpdateResult类属于org.jboss.as.controller.client.helpers.domain包,在下文中一共展示了ServerUpdateResult类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: executeDeploymentPlan
import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
private String executeDeploymentPlan(DeploymentPlan plan, DeploymentAction deployAction) throws Exception {
Future<DeploymentPlanResult> future = deploymentManagerDeprecated.execute(plan);
DeploymentPlanResult planResult = future.get();
Map<String, ServerGroupDeploymentPlanResult> actionResults = planResult.getServerGroupResults();
for (Entry<String, ServerGroupDeploymentPlanResult> result : actionResults.entrySet()) {
for (Entry<String, ServerDeploymentPlanResult> planServerResult : result.getValue().getServerResults().entrySet()) {
ServerUpdateResult actionResult = planServerResult.getValue().getDeploymentActionResults()
.get(deployAction.getId());
if (actionResult != null) {
Exception deploymentException = (Exception) actionResult.getFailureResult();
if (deploymentException != null)
throw deploymentException;
}
}
}
return deployAction.getDeploymentUnitUniqueName();
}
示例2: storeServerUpdateResult
import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
void storeServerUpdateResult(ServerIdentity server, ServerUpdateResult result) {
ServerGroupDeploymentActionResultImpl sgdar = (ServerGroupDeploymentActionResultImpl) serverResults.get(server.getServerGroupName());
if (sgdar == null) {
sgdar = new ServerGroupDeploymentActionResultImpl(server.getServerGroupName());
serverResults.put(server.getServerGroupName(), sgdar);
}
sgdar.storeServerResult(server.getServerName(), result);
}
示例3: buildServerGroupResults
import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
private static Map<String, ServerGroupDeploymentPlanResult> buildServerGroupResults(Map<UUID, DeploymentActionResult> deploymentActionResults) {
Map<String, ServerGroupDeploymentPlanResult> serverGroupResults = new HashMap<String, ServerGroupDeploymentPlanResult>();
for (Map.Entry<UUID, DeploymentActionResult> entry : deploymentActionResults.entrySet()) {
UUID actionId = entry.getKey();
DeploymentActionResult actionResult = entry.getValue();
Map<String, ServerGroupDeploymentActionResult> actionResultsByServerGroup = actionResult.getResultsByServerGroup();
for (ServerGroupDeploymentActionResult serverGroupActionResult : actionResultsByServerGroup.values()) {
String serverGroupName = serverGroupActionResult.getServerGroupName();
ServerGroupDeploymentPlanResultImpl sgdpr = (ServerGroupDeploymentPlanResultImpl) serverGroupResults.get(serverGroupName);
if (sgdpr == null) {
sgdpr = new ServerGroupDeploymentPlanResultImpl(serverGroupName);
serverGroupResults.put(serverGroupName, sgdpr);
}
for (Map.Entry<String, ServerUpdateResult> serverEntry : serverGroupActionResult.getResultByServer().entrySet()) {
String serverName = serverEntry.getKey();
ServerUpdateResult sud = serverEntry.getValue();
ServerDeploymentPlanResultImpl sdpr = (ServerDeploymentPlanResultImpl) sgdpr.getServerResult(serverName);
if (sdpr == null) {
sdpr = new ServerDeploymentPlanResultImpl(serverName);
sgdpr.storeServerResult(serverName, sdpr);
}
sdpr.storeServerUpdateResult(actionId, sud);
}
}
}
return serverGroupResults;
}
示例4: executePlan
import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
private void executePlan(final DomainDeploymentManager manager, final DeploymentPlan plan)
throws DeploymentExecutionException, ExecutionException, InterruptedException
{
if (plan.getDeploymentActions().size() > 0)
{
final DeploymentPlanResult planResult = manager.execute(plan).get();
final Map<UUID, DeploymentActionResult> actionResults = planResult
.getDeploymentActionResults();
for (UUID uuid : actionResults.keySet())
{
final Map<String, ServerGroupDeploymentActionResult> groupDeploymentActionResults = actionResults
.get(uuid).getResultsByServerGroup();
for (String serverGroup2 : groupDeploymentActionResults.keySet())
{
final Map<String, ServerUpdateResult> serverUpdateResults = groupDeploymentActionResults
.get(serverGroup2).getResultByServer();
for (String server : serverUpdateResults.keySet())
{
final Throwable t = serverUpdateResults.get(server).getFailureResult();
if (t != null)
{
throw new DeploymentExecutionException(t, "Error executing %s", type);
}
}
}
}
}
}
示例5: getResultByServer
import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
@Override
public Map<String, ServerUpdateResult> getResultByServer() {
return Collections.unmodifiableMap(serverResults);
}
示例6: storeServerResult
import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
void storeServerResult(final String serverName, ServerUpdateResult result) {
serverResults.put(serverName, result);
}
示例7: getDeploymentActionResults
import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
@Override
public Map<UUID, ServerUpdateResult> getDeploymentActionResults() {
return Collections.unmodifiableMap(serverResults);
}
示例8: getServerUpdateResult
import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
ServerUpdateResult getServerUpdateResult(UUID actionId) {
synchronized (serverResults) {
return serverResults.get(actionId);
}
}
示例9: storeServerUpdateResult
import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
void storeServerUpdateResult(UUID actionId, ServerUpdateResult result) {
synchronized (serverResults) {
serverResults.put(actionId, result);
}
}