Package fish.payara.admingui.extras.rest
Class PayaraRestApiHandlers
- java.lang.Object
-
- fish.payara.admingui.extras.rest.PayaraRestApiHandlers
-
public class PayaraRestApiHandlers extends Object
A class containing Payara specific handler methods for the REST API- Author:
- Andrew Pielage
-
-
Constructor Summary
Constructors Constructor Description PayaraRestApiHandlers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddSelectedInstancesToDeploymentGroup(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)Add selected Instances to Deployment Groupsstatic voidcreateDeploymentGroupInstances(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)Create Deployment Group with Instancesstatic voidgetHazelcastClusterMembers(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)Gets information about the instances current registered to the Hazelcast cluster.static voidgetHistoricHealthcheckMessages(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)static voidgetRequestTracingMessages(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)static voidgetRestEndpoints(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)Gets the REST endpoints from a given app name and optional component namestatic voidgetVirtualServersAttributes(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)Gets the context roots of all deployed applications on the domain.static voidhasRestEndpoints(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)Gets a map of components and if they are a jersey applicationstatic voidisCDIDevMode(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)Gets a map of components with CDI dev mode statusstatic voidprepareSuccessfulCommandMsg(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)Sets the successful command message to be displayedstatic voidsendAsadminCommandToSelectedInstances(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)Sends the asadmin command with the parameters provided to the instances selected in the tablestatic voidsortDeploymentGroupSelectedInstancesStatus(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)Sort selected and disabled Instancesstatic voidsortHealthcheckEnabledNotifierStatus(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)static voidsortInstanceSelectedDeploymentGroupStatus(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)Sort enabled and disabled Deployment Groupsstatic voidsortRequestTracingEnabledNotifierStatus(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)static voidupdateDeploymentGroups(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)Updates the Deployment Groups to be enabled or disabled
-
-
-
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- Parameters:
handlerCtx-
-
createDeploymentGroupInstances
public static void createDeploymentGroupInstances(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
Create Deployment Group with Instances- Parameters:
handlerCtx-
-
-