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 void
addSelectedInstancesToDeploymentGroup(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
Add selected Instances to Deployment Groupsstatic void
createDeploymentGroupInstances(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
Create Deployment Group with Instancesstatic 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 namestatic 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 applicationstatic void
isCDIDevMode(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
Gets a map of components with CDI dev mode statusstatic void
prepareSuccessfulCommandMsg(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
Sets the successful command message to be displayedstatic void
sendAsadminCommandToSelectedInstances(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
Sends the asadmin command with the parameters provided to the instances selected in the tablestatic void
sortDeploymentGroupSelectedInstancesStatus(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerctx)
Sort selected and disabled Instancesstatic 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 Groupsstatic 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
-
-
-
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
-
-
-