Class SetupClusterAction

    • Constructor Detail

      • SetupClusterAction

        public SetupClusterAction()
    • 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 interface MessageHolderAware
        Specified by:
        validate in interface com.opensymphony.xwork2.Validateable
        Overrides:
        validate in class com.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 class ConfluenceActionSupport
        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 via doDefault().
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
        Throws:
        Exception
      • setSetupClusterType

        public void setSetupClusterType​(String setupClusterType)
      • getSetupClusterType

        public String getSetupClusterType()
      • isThisNodeClustered

        @Deprecated
        public boolean isThisNodeClustered()
        Deprecated.
        since 5.9
      • 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)
      • 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)