Class SetupClusterAction
java.lang.Object
com.opensymphony.xwork2.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
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
- See Also:
-
Nested Class Summary
-
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_INTERNAL, SETUP_USER_JAACS
Fields 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, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
Fields inherited from class com.opensymphony.xwork2.ActionSupport
container
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
-
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.Deprecated.since 5.9boolean
isAws()
boolean
boolean
boolean
boolean
boolean
boolean
isTcpIp()
boolean
Deprecated.since 5.9void
setAccessKey
(String accessKey) void
setAwsAuthMethod
(String awsAuthMethod) void
setClusterAddressString
(String clusterAddressString) void
setClusterConfigurationHelper
(ClusterConfigurationHelperInternal clusterConfigurationHelper) void
setClusterHome
(String clusterHome) void
setClusterManager
(ClusterManager clusterManager) void
setClusterName
(String clusterName) void
setClusterPeersString
(String clusterPeersString) void
setClusterSharedDataManager
(SharedDataManager clusterSharedDataManager) void
setGenerateClusterAddress
(String generateClusterAddress) void
setGenerateClusterAddressSubmitted
(String generateClusterAddressSubmitted) void
setHostHeader
(String hostHeader) void
setIamRole
(String iamRole) void
setJoinMethod
(String joinMethod) void
setNetworkInterface
(String networkInterface) void
void
setSecretKey
(String secretKey) void
setSecurityGroupName
(String securityGroupName) void
setSetupClusterType
(String setupClusterType) void
void
setTagValue
(String tagValue) void
validate()
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, setXsrfTokenGenerator
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, getActionErrors, getActionMessages, getActionName, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getCurrentRequest, 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, setSkipIsPermitted, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, shouldSkipIsPermitted
Methods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrict
Methods inherited from class com.opensymphony.xwork2.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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
isValidLocale, isValidLocaleString, 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:
validate
in interfaceMessageHolderAware
- Specified by:
validate
in interfacecom.opensymphony.xwork2.Validateable
- Overrides:
validate
in classcom.opensymphony.xwork2.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:
doDefault
in 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:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Throws:
Exception
-
setSetupClusterType
-
getSetupClusterType
-
isThisNodeClustered
Deprecated.since 5.9 -
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
-