report.setResultType(List.class, reportResult.failedServerNames); } else { report.setResultType(List.class, reportResult.succeededServerNames);
if (gms != null) { GMSAnnounceSupplementalInfo result = new GMSAnnounceSupplementalInfo(clusterMembers, gmsStartCluster, gmsadapter); report.setResultType(GMSAnnounceSupplementalInfo.class, result);
private void setupSupplemental(AdminCommandContext context, final Server instance) { if (clusterName != null) { InstanceRegisterInstanceCommandParameters cp = new InstanceRegisterInstanceCommandParameters(); context.getActionReport(). setResultType(InstanceRegisterInstanceCommandParameters.class, cp); Node instNode = domain.getNodeNamed(node); cp.config = instance.getConfigRef(); cp.nodehost = instNode.getNodeHost(); cp.nodedir = instNode.getNodeDir(); cp.installdir = instNode.getInstallDir(); List<SystemProperty> spList = instance.getSystemProperty(); if (spList != null) { Properties p = new Properties(); for (SystemProperty sp : spList) { p.put(sp.getName(), sp.getValue()); } cp.systemProperties = p; } } }
report.setResultType(List.class, reportResult.failedServerNames); } else { report.setResultType(List.class, reportResult.succeededServerNames);
if (gms != null) { GMSAnnounceSupplementalInfo result = new GMSAnnounceSupplementalInfo(clusterMembers, gmsStopCluster, gmsadapter); report.setResultType(GMSAnnounceSupplementalInfo.class, result);
private void setupSupplemental(AdminCommandContext context, final Server instance) { if (clusterName != null) { InstanceRegisterInstanceCommandParameters cp = new InstanceRegisterInstanceCommandParameters(); context.getActionReport(). setResultType(InstanceRegisterInstanceCommandParameters.class, cp); Node instNode = domain.getNodeNamed(node); cp.config = instance.getConfigRef(); cp.nodehost = instNode.getNodeHost(); cp.nodedir = instNode.getNodeDir(); cp.installdir = instNode.getInstallDir(); List<SystemProperty> spList = instance.getSystemProperty(); if (spList != null) { Properties p = new Properties(); for (SystemProperty sp : spList) { p.put(sp.getName(), sp.getValue()); } cp.systemProperties = p; } } }
report.setResultType(String.class, name); report.setResultType(String.class, name); report.setMessage(localStrings.getLocalString("deploy.command.success","Application deployed with name {0}", name));
new DeployCommandSupplementalInfo(); context.getActionReport(). setResultType(DeployCommandSupplementalInfo.class, suppInfo);
setResultType(String.class, cluster.getName());
new DeployCommandSupplementalInfo(); context.getActionReport(). setResultType(DeployCommandSupplementalInfo.class, suppInfo); report.setResultType(String.class, name); } catch (Exception e) { report.setResultType(String.class, name); report.setMessage(localStrings.getLocalString("deploy.command.success","Application deployed with name {0}", name));
setResultType(String.class, cluster.getName());