Class SetupClusterAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- 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
public class SetupClusterAction extends AbstractSetupAction
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SetupClusterAction.ClusterableInterface
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.setup.actions.AbstractSetupAction
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
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description SetupClusterAction()
-
Method Summary
-
Methods inherited from class com.atlassian.confluence.setup.actions.AbstractSetupAction
bootstrapConfigurer, getBootstrapManager, getContainerManager, getLocale, getServerId, getSetupPersister, getSetupSessionId, getSingletonFromMainContext, getSupportEntitlementNumber, getXsrfToken, getXsrfTokenGenerator, isPermitted, performEarlyStartup, performLateStartup, retrieveSingletonFromMainContext, setBootstrapConfigurer, setBootstrapSidManager, setContainerManager, setLicenseService, setSetupPersister, setXsrfTokenGenerator, transitionFromColdToTenantedState, transitionFromColdToVacantState, transitionFromVacantToTenantedState
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContentUiSupport, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocBean, 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, 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, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors
-
-
-
-
Method Detail
-
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
public String doDefault() throws Exception
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
public String execute() throws Exception
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
public void setSetupClusterType(String setupClusterType)
-
getSetupClusterType
public String getSetupClusterType()
-
isThisNodeClustered
@Deprecated public boolean isThisNodeClustered()
Deprecated.since 5.9
-
getSharedConfig
@Deprecated public SharedConfigurationMap getSharedConfig()
Deprecated.since 5.9
-
getClusterInformation
public ClusterInformation getClusterInformation()
-
getClusterName
public String getClusterName()
-
setClusterName
public void setClusterName(String clusterName)
-
getClusterHome
public String getClusterHome()
-
setClusterHome
public void setClusterHome(String clusterHome)
-
getNetworkInterface
public String getNetworkInterface()
-
setNetworkInterface
public void setNetworkInterface(String networkInterface)
-
setClusterManager
public void setClusterManager(ClusterManager clusterManager)
-
getClusterManager
public ClusterManager getClusterManager()
-
getClusterConfigurationHelper
public ClusterConfigurationHelperInternal getClusterConfigurationHelper()
-
setClusterConfigurationHelper
public void setClusterConfigurationHelper(ClusterConfigurationHelperInternal clusterConfigurationHelper)
-
getClusterableInterfaces
public List getClusterableInterfaces()
-
getClusterAddressString
public String getClusterAddressString()
-
setClusterAddressString
public void setClusterAddressString(String clusterAddressString)
-
getGenerateClusterAddress
public String getGenerateClusterAddress()
-
setGenerateClusterAddress
public void setGenerateClusterAddress(String generateClusterAddress)
-
getGenerateClusterAddressSubmitted
public String getGenerateClusterAddressSubmitted()
-
setGenerateClusterAddressSubmitted
public void setGenerateClusterAddressSubmitted(String generateClusterAddressSubmitted)
-
getClusterPeersString
public String getClusterPeersString()
-
setClusterPeersString
public void setClusterPeersString(String clusterPeersString)
-
setClusterSharedDataManager
public void setClusterSharedDataManager(SharedDataManager clusterSharedDataManager)
-
getJoinMethod
public String getJoinMethod()
-
isMulticast
public boolean isMulticast()
-
isTcpIp
public boolean isTcpIp()
-
isAws
public boolean isAws()
-
isGenerateAddress
public boolean isGenerateAddress()
-
isServerToDataCenterMigration
public boolean isServerToDataCenterMigration()
-
setJoinMethod
public void setJoinMethod(String joinMethod)
-
getAwsAuthMethod
public String getAwsAuthMethod()
-
setAwsAuthMethod
public void setAwsAuthMethod(String awsAuthMethod)
-
isAwsSecretKeyAuth
public boolean isAwsSecretKeyAuth()
-
isAwsIamRoleAuth
public boolean isAwsIamRoleAuth()
-
getAccessKey
public String getAccessKey()
-
setAccessKey
public void setAccessKey(String accessKey)
-
getSecretKey
public String getSecretKey()
-
setSecretKey
public void setSecretKey(String secretKey)
-
getIamRole
public String getIamRole()
-
setIamRole
public void setIamRole(String iamRole)
-
getRegion
public String getRegion()
-
setRegion
public void setRegion(String region)
-
getHostHeader
public String getHostHeader()
-
setHostHeader
public void setHostHeader(String hostHeader)
-
getSecurityGroupName
public String getSecurityGroupName()
-
setSecurityGroupName
public void setSecurityGroupName(String securityGroupName)
-
getTagKey
public String getTagKey()
-
setTagKey
public void setTagKey(String tagKey)
-
getTagValue
public String getTagValue()
-
setTagValue
public void setTagValue(String tagValue)
-
-