Class PayaraRestApiHandlers


  • public class PayaraRestApiHandlers
    extends Object
    A class containing Payara specific handler methods for the REST API
    Author:
    Andrew Pielage
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addSelectedInstancesToDeploymentGroup​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      Add selected Instances to Deployment Groups
      static void createDeploymentGroupInstances​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      Create Deployment Group with Instances
      static void getHazelcastClusterMembers​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      Gets information about the instances current registered to the Hazelcast cluster.
      static void getHistoricHealthcheckMessages​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)  
      static void getRequestTracingMessages​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)  
      static void getRestEndpoints​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      Gets the REST endpoints from a given app name and optional component name
      static void getVirtualServersAttributes​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      Gets the context roots of all deployed applications on the domain.
      static void hasRestEndpoints​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      Gets a map of components and if they are a jersey application
      static void isCDIDevMode​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      Gets a map of components with CDI dev mode status
      static void prepareSuccessfulCommandMsg​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      Sets the successful command message to be displayed
      static void sendAsadminCommandToSelectedInstances​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      Sends the asadmin command with the parameters provided to the instances selected in the table
      static void sortDeploymentGroupSelectedInstancesStatus​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)
      Sort selected and disabled Instances
      static void sortHealthcheckEnabledNotifierStatus​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)  
      static void sortInstanceSelectedDeploymentGroupStatus​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)
      Sort enabled and disabled Deployment Groups
      static void sortRequestTracingEnabledNotifierStatus​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)  
      static void updateDeploymentGroups​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      Updates the Deployment Groups to be enabled or disabled
    • Constructor Detail

      • PayaraRestApiHandlers

        public PayaraRestApiHandlers()
    • Method Detail

      • getHazelcastClusterMembers

        public static void getHazelcastClusterMembers​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
        Gets information about the instances current registered to the Hazelcast cluster.
        Parameters:
        handlerCtx -
      • sendAsadminCommandToSelectedInstances

        public static void sendAsadminCommandToSelectedInstances​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
        Sends the asadmin command with the parameters provided to the instances selected in the table
        Parameters:
        handlerCtx -
      • getRestEndpoints

        public static void getRestEndpoints​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
        Gets the REST endpoints from a given app name and optional component name
        Parameters:
        handlerCtx -
      • hasRestEndpoints

        public static void hasRestEndpoints​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
        Gets a map of components and if they are a jersey application
        Parameters:
        handlerCtx -
      • isCDIDevMode

        public static void isCDIDevMode​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
        Gets a map of components with CDI dev mode status
        Parameters:
        handlerCtx -
      • prepareSuccessfulCommandMsg

        public static void prepareSuccessfulCommandMsg​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
        Sets the successful command message to be displayed
        Parameters:
        handlerCtx -
      • sortRequestTracingEnabledNotifierStatus

        public static void sortRequestTracingEnabledNotifierStatus​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)
      • sortInstanceSelectedDeploymentGroupStatus

        public static void sortInstanceSelectedDeploymentGroupStatus​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)
        Sort enabled and disabled Deployment Groups
        Parameters:
        handlerctx -
      • updateDeploymentGroups

        public static void updateDeploymentGroups​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
        Updates the Deployment Groups to be enabled or disabled
        Parameters:
        handlerCtx -
      • sortDeploymentGroupSelectedInstancesStatus

        public static void sortDeploymentGroupSelectedInstancesStatus​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)
        Sort selected and disabled Instances
        Parameters:
        handlerctx -
      • addSelectedInstancesToDeploymentGroup

        public static void addSelectedInstancesToDeploymentGroup​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
        Add selected Instances to Deployment Groups
        Parameters:
        handlerCtx -
      • sortHealthcheckEnabledNotifierStatus

        public static void sortHealthcheckEnabledNotifierStatus​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)
      • getHistoricHealthcheckMessages

        public static void getHistoricHealthcheckMessages​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      • getRequestTracingMessages

        public static void getRequestTracingMessages​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      • getVirtualServersAttributes

        public static void getVirtualServersAttributes​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
        Gets the context roots of all deployed applications on the domain. This is outputted as List> for usage within the Virtual-Servers page.
        Parameters:
        handlerCtx -
      • createDeploymentGroupInstances

        public static void createDeploymentGroupInstances​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
        Create Deployment Group with Instances
        Parameters:
        handlerCtx -