本文整理匯總了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);
}
}