Class PayaraClientService

    • Method Detail

      • startUp

        public void startUp()
                     throws PayaraClientException
        Start-up the server

        - Get the node addresses list associated with the target - Pull the server instances status form mgm API - In case of cluster tries to fund an instance which has RUNNING status

        Specified by:
        startUp in interface PayaraClient
        Throws:
        PayaraClientException
      • getPayaraVersion

        public Integer getPayaraVersion()
      • doDeploy

        public org.jboss.arquillian.container.spi.client.protocol.metadata.HTTPContext doDeploy​(String name,
                                                                                                PayaraClient.MultiPart form)
        Do deploy an application defined by a multipart form's fileds to a target server or a cluster of GlassFish 3.1
        Specified by:
        doDeploy in interface PayaraClient
        Parameters:
        name - - name of the appliacation form - a form of MediaType.MULTIPART_FORM_DATA_TYPE
        form - - form containing data to be deployed
        Returns:
        subComponents - a map of SubComponents of the application
      • doUndeploy

        public Map<String,​Object> doUndeploy​(String name,
                                                   PayaraClient.MultiPart form)
        Undeploy the component
        Specified by:
        doUndeploy in interface PayaraClient
        Parameters:
        name - - application name form - form that include the target and operation fields
        form - - form containing the data
        Returns:
        resultMap
      • isDASRunning

        public boolean isDASRunning()
        Verify if the DAS is running or not.
        Specified by:
        isDASRunning in interface PayaraClient
        Returns:
        true if the DAS is running, false otherwise
      • getServerInstances

        protected Map<String,​String> getServerInstances​(String target)
        Get the list of server instances of the cluster
        Parameters:
        target - the target
        Returns:
        server instances map
      • getServerAttributes

        protected Map<String,​String> getServerAttributes​(String server)
        Get the serverAttributes map of a server
        Parameters:
        server - of the server
        Returns:
        serverAttributes map nodeRef: - reference to the node object configRef: - reference to the server's configuration object ...
      • getServerSystemProperties

        protected Map<String,​String> getServerSystemProperties​(String server)
      • getClusterAttributes

        protected Map<String,​String> getClusterAttributes​(String cluster)
        Get the clusterAttributes map of a cluster
        Parameters:
        cluster - of the cluster
        Returns:
        serverAttributes map configRef: - reference to the cluster's configuration object ...
      • getHostAddress

        protected String getHostAddress​(Map<String,​String> serverAttributes)
        Get the HOST address (IP or name) of the node associated with the server
        Parameters:
        serverAttributes - name
        Returns:
        nodeAttributes map