Class SetupClusterAction
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.setup.actions.AbstractSetupAction
com.atlassian.confluence.setup.actions.SetupClusterAction
- All Implemented Interfaces:
WebInterface,MessageHolderAware,Serializable,org.apache.struts2.action.Action,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.locale.LocaleProvider,org.apache.struts2.text.TextProvider,org.apache.struts2.Validateable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.atlassian.confluence.setup.actions.AbstractSetupAction
bootstrapSidManager, SETUP_CONTENT_BLANK, SETUP_CONTENT_DEMO, SETUP_CONTENT_IMPORT, SETUP_CUSTOM, SETUP_DB_CLUSTER_CONN_TYPE, SETUP_DB_CONN_TYPE, SETUP_DB_DATASOURCE, SETUP_QUICK, SETUP_SESSION_ID_KEY, SETUP_SKIP_TO_NEXT_STEP, SETUP_SKIP_TO_NEXT_STEP_CLUSTER, SETUP_USER_INTERNALFields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, PREVIEW, request, response, spacePermissionManager, strutsHelper, systemInformationService, userAccessor, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method acts as the initial entry point for cluster config during the setup wizard flow.execute()This method performs the actual cluster bootstrap.booleanisAws()booleanbooleanbooleanbooleanbooleanbooleanisTcpIp()voidsetAccessKey(String accessKey) voidsetAwsAuthMethod(String awsAuthMethod) voidsetClusterAddressString(String clusterAddressString) voidsetClusterConfigurationHelper(ClusterConfigurationHelperInternal clusterConfigurationHelper) voidsetClusterHome(String clusterHome) voidsetClusterManager(ClusterManager clusterManager) voidsetClusterName(String clusterName) voidsetClusterPeersString(String clusterPeersString) voidsetGenerateClusterAddress(String generateClusterAddress) voidsetGenerateClusterAddressSubmitted(String generateClusterAddressSubmitted) voidsetHostHeader(String hostHeader) voidsetIamRole(String iamRole) voidsetJoinMethod(String joinMethod) voidsetNetworkInterface(String networkInterface) voidvoidsetSecretKey(String secretKey) voidsetSecurityGroupName(String securityGroupName) voidsetSetupClusterType(String setupClusterType) voidvoidsetTagValue(String tagValue) voidvalidate()This method is called by XWork to validate the cluster setup parameters that are entered into the wizard form.Methods inherited from class com.atlassian.confluence.setup.actions.AbstractSetupAction
bootstrapConfigurer, getBootstrapManager, getCurrentSetupStep, getLocale, getServerId, getSetupPersister, getSetupSessionId, getSupportEntitlementNumber, getXsrfTokenGenerator, isPermitted, performEarlyStartup, performLateStartup, setBootstrapConfigurer, setBootstrapSidManager, setLicenseService, setXsrfTokenGeneratorMethods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, getActionErrors, getActionMessages, getActionName, getActiveRequest, getActiveResponse, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getDateFormatter, getDefaultTimeZone, getFieldErrors, getGlobalSettings, getHelper, getI18n, getMessageHolder, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getTimeZone, getUserByName, getUserInterfaceState, getWebInterfaceContext, isAnonymousUser, isEmailVisible, setAccessModeService, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManagerMethods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrictMethods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getContainer, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale
-
Constructor Details
-
SetupClusterAction
public SetupClusterAction()
-
-
Method Details
-
validate
public void validate()This method is called by XWork to validate the cluster setup parameters that are entered into the wizard form.- Specified by:
validatein interfaceMessageHolderAware- Specified by:
validatein interfaceorg.apache.struts2.Validateable- Overrides:
validatein classorg.apache.struts2.ActionSupport
-
doDefault
This method acts as the initial entry point for cluster config during the setup wizard flow.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 struts.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.
- Overrides:
doDefaultin classConfluenceActionSupport- Throws:
Exception
-
execute
This method performs the actual cluster bootstrap. The config parameters will have been provided either via the wizard form, or via pre-configured app config parameters viadoDefault().- Specified by:
executein interfaceorg.apache.struts2.action.Action- Overrides:
executein classorg.apache.struts2.ActionSupport- Throws:
Exception
-
setSetupClusterType
-
getSetupClusterType
-
getClusterInformation
-
getClusterName
-
setClusterName
-
getClusterHome
-
setClusterHome
-
getNetworkInterface
-
setNetworkInterface
-
setClusterManager
-
getClusterManager
-
getClusterConfigurationHelper
-
setClusterConfigurationHelper
public void setClusterConfigurationHelper(ClusterConfigurationHelperInternal clusterConfigurationHelper) -
getClusterableInterfaces
-
getClusterAddressString
-
setClusterAddressString
-
getGenerateClusterAddress
-
setGenerateClusterAddress
-
getGenerateClusterAddressSubmitted
-
setGenerateClusterAddressSubmitted
-
getClusterPeersString
-
setClusterPeersString
-
getJoinMethod
-
isMulticast
public boolean isMulticast() -
isTcpIp
public boolean isTcpIp() -
isAws
public boolean isAws() -
isGenerateAddress
public boolean isGenerateAddress() -
isServerToDataCenterMigration
public boolean isServerToDataCenterMigration() -
setJoinMethod
-
getAwsAuthMethod
-
setAwsAuthMethod
-
isAwsSecretKeyAuth
public boolean isAwsSecretKeyAuth() -
isAwsIamRoleAuth
public boolean isAwsIamRoleAuth() -
getAccessKey
-
setAccessKey
-
getSecretKey
-
setSecretKey
-
getIamRole
-
setIamRole
-
getRegion
-
setRegion
-
getHostHeader
-
setHostHeader
-
getSecurityGroupName
-
setSecurityGroupName
-
getTagKey
-
setTagKey
-
getTagValue
-
setTagValue
-