static public void announceGMSGroupStopComplete(String clusterName, ActionReport report) { if (report != null) { GMSAnnounceSupplementalInfo gmsInfo = report.getResultType(GMSAnnounceSupplementalInfo.class); if (gmsInfo != null && gmsInfo.gmsInitiated) { GMSConstants.shutdownState groupShutdownState = GMSConstants.shutdownState.COMPLETED; try { if (gmsInfo.gms != null) { gmsInfo.gms.announceGroupShutdown(clusterName, groupShutdownState); } } catch (Throwable t) { // ensure gms group startup announcement does not interfere with starting cluster. GMS_LOGGER.log(LogLevel.WARNING, GMS_GROUP_STOP_EXCEPTION, t.getLocalizedMessage()); } } } }
static public void announceGMSGroupStartupComplete(String clusterName, ActionReport report) { if (report != null) { GMSAnnounceSupplementalInfo gmsInfo = report.getResultType(GMSAnnounceSupplementalInfo.class); if (gmsInfo != null && gmsInfo.gmsInitiated) { List<String> members = null; members = (List<String>)report.getResultType(List.class);
@Override public void execute(AdminCommandContext context) { ActionReport report = context.getActionReport(); final Logger logger = context.getLogger(); final String clusterName = context.getActionReport().getResultType(String.class); if (clusterName != null) { try { ParameterMapExtractor pme = new ParameterMapExtractor(this); final ParameterMap paramMap = pme.extract(); List<String> targets = new ArrayList<String>(); List<Server> instances = target.getInstances(clusterName); for (Server s : instances) { targets.add(s.getName()); } ClusterOperationUtil.replicateCommand( "_unregister-instance", FailurePolicy.Warn, FailurePolicy.Warn, targets, context, paramMap, habitat); } catch (Exception e) { report.failure(logger, e.getMessage()); } } } }
@Override public void execute(AdminCommandContext context) { ActionReport report = context.getActionReport(); final Logger logger = context.getLogger(); final String clusterName = context.getActionReport().getResultType(String.class); if (clusterName != null) { try { ParameterMapExtractor pme = new ParameterMapExtractor(this); final ParameterMap paramMap = pme.extract(); List<String> targets = new ArrayList<String>(); List<Server> instances = target.getInstances(clusterName); for (Server s : instances) { targets.add(s.getName()); } ClusterOperationUtil.replicateCommand( "_unregister-instance", FailurePolicy.Warn, FailurePolicy.Warn, FailurePolicy.Ignore, targets, context, paramMap, habitat); } catch (Exception e) { report.failure(logger, e.getMessage()); } } } }
context.getActionReport().getResultType(InstanceRegisterInstanceCommandParameters.class);
context.getActionReport().getResultType(InstanceRegisterInstanceCommandParameters.class);
return actionReport.getResultType(String.class); } catch (CommandException e) { throw new GlassFishException(e);
context.getActionReport().getResultType(DeployCommandSupplementalInfo.class); final DeploymentContext dc = suppInfo.deploymentContext(); final DeployCommandParameters params = dc.getCommandParameters(DeployCommandParameters.class);
return actionReport.getResultType(String.class); } catch (CommandException e) { throw new GlassFishException(e);