当前位置: 首页>>代码示例>>Java>>正文


Java ServerUpdateResult类代码示例

本文整理汇总了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();
}
 
开发者ID:wildfly,项目名称:wildfly-arquillian,代码行数:20,代码来源:ArchiveDeployer.java

示例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);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:9,代码来源:DeploymentActionResultImpl.java

示例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;
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:33,代码来源:DeploymentPlanResultImpl.java

示例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);
					}
				}
			}
		}
	}
}
 
开发者ID:gcvt,项目名称:siebog,代码行数:29,代码来源:DomainDeployment.java

示例5: getResultByServer

import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
@Override
public Map<String, ServerUpdateResult> getResultByServer() {
    return Collections.unmodifiableMap(serverResults);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:5,代码来源:ServerGroupDeploymentActionResultImpl.java

示例6: storeServerResult

import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
void storeServerResult(final String serverName, ServerUpdateResult result) {
    serverResults.put(serverName, result);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:4,代码来源:ServerGroupDeploymentActionResultImpl.java

示例7: getDeploymentActionResults

import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
@Override
public Map<UUID, ServerUpdateResult> getDeploymentActionResults() {
    return Collections.unmodifiableMap(serverResults);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:5,代码来源:ServerDeploymentPlanResultImpl.java

示例8: getServerUpdateResult

import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
ServerUpdateResult getServerUpdateResult(UUID actionId) {
    synchronized (serverResults) {
        return serverResults.get(actionId);
    }
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:6,代码来源:ServerDeploymentPlanResultImpl.java

示例9: storeServerUpdateResult

import org.jboss.as.controller.client.helpers.domain.ServerUpdateResult; //导入依赖的package包/类
void storeServerUpdateResult(UUID actionId, ServerUpdateResult result) {
    synchronized (serverResults) {
        serverResults.put(actionId, result);
    }
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:6,代码来源:ServerDeploymentPlanResultImpl.java


注:本文中的org.jboss.as.controller.client.helpers.domain.ServerUpdateResult类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。