public class SetupClusterAction extends AbstractSetupAction
Modifier and Type | Class and Description |
---|---|
static class |
SetupClusterAction.ClusterableInterface |
DEMO_CONTENT_ZIP_FILE, SETUP_CLUSTER_TO_STANDALONE, SETUP_CONTENT_BLANK, SETUP_CONTENT_DEMO, SETUP_CONTENT_IMPORT, SETUP_CUSTOM, SETUP_DB_CLUSTER_CONN_TYPE, SETUP_DB_CONN_TYPE, SETUP_DB_DATASOURCE, SETUP_DB_EMBEDDED, SETUP_DB_STANDARD, SETUP_DB_TYPE_DATASOURCE, SETUP_DB_TYPE_STANDARD, SETUP_PATHS, SETUP_QUICK, SETUP_SESSION_ID_KEY, SETUP_SKIP_TO_NEXT_STEP, SETUP_SKIP_TO_NEXT_STEP_CLUSTER, SETUP_USER_INTERNAL, SETUP_USER_JAACS
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
SetupClusterAction() |
getBootstrapManager, getContainerManager, getLocale, getServerId, getSetupPersister, getSetupSessionId, getSingletonFromMainContext, getSupportEntitlementNumber, getXsrfToken, getXsrfTokenGenerator, isPermitted, retrieveSingletonFromMainContext, setBootstrapSidManager, setContainerManager, setLicenseService, setSetupPersister, setXsrfTokenGenerator, transitionFromColdToTenantedState, transitionFromColdToVacantState, transitionFromVacantToTenantedState
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
public void validate()
validate
in interface MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class com.opensymphony.xwork.ActionSupport
public String doDefault() throws Exception
The application config (i.e. confluence.cfg.xml) is consulted to see if any of the cluster setup parameters
have already been configured, and if so it populates the action's fields with those parameters, and then redirects
(via xwork.xml) to the execute()
method, where the cluster actually gets bootstrapped. This generally
only happens to support the AWS Quick Start template, where the confluence.cfg.xml is pre-generated with the AWS
cluster discovery parameter.
If the application config is *not* pre-populated (the normal case), then we redirect to the input form.
doDefault
in class ConfluenceActionSupport
Exception
- if something goes wrongpublic String execute() throws Exception
doDefault()
.execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
Exception
public void setSetupClusterType(String setupClusterType)
public String getSetupClusterType()
@Deprecated public boolean isThisNodeClustered()
@Deprecated public SharedConfigurationMap getSharedConfig()
public ClusterInformation getClusterInformation()
public String getClusterName()
public void setClusterName(String clusterName)
public String getClusterHome()
public void setClusterHome(String clusterHome)
public String getNetworkInterface()
public void setNetworkInterface(String networkInterface)
public void setClusterManager(ClusterManager clusterManager)
public ClusterManager getClusterManager()
public ClusterConfigurationHelperInternal getClusterConfigurationHelper()
public void setClusterConfigurationHelper(ClusterConfigurationHelperInternal clusterConfigurationHelper)
public List getClusterableInterfaces()
public String getClusterAddressString()
public void setClusterAddressString(String clusterAddressString)
public String getGenerateClusterAddress()
public void setGenerateClusterAddress(String generateClusterAddress)
public String getGenerateClusterAddressSubmitted()
public void setGenerateClusterAddressSubmitted(String generateClusterAddressSubmitted)
public String getClusterPeersString()
public void setClusterPeersString(String clusterPeersString)
public void setClusterSharedDataManager(SharedDataManager clusterSharedDataManager)
public String getJoinMethod()
public boolean isMulticast()
public boolean isTcpIp()
public boolean isAws()
public boolean isGenerateAddress()
public boolean isServerToDataCenterMigration()
public void setJoinMethod(String joinMethod)
public String getAwsAuthMethod()
public void setAwsAuthMethod(String awsAuthMethod)
public boolean isAwsSecretKeyAuth()
public boolean isAwsIamRoleAuth()
public String getAccessKey()
public void setAccessKey(String accessKey)
public String getSecretKey()
public void setSecretKey(String secretKey)
public String getIamRole()
public void setIamRole(String iamRole)
public String getRegion()
public void setRegion(String region)
public String getHostHeader()
public void setHostHeader(String hostHeader)
public String getSecurityGroupName()
public void setSecurityGroupName(String securityGroupName)
public String getTagKey()
public void setTagKey(String tagKey)
public String getTagValue()
public void setTagValue(String tagValue)
Copyright © 2003–2021 Atlassian. All rights reserved.