當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。