Interface MCMPRequestFactory

    • Method Detail

      • createConfigRequest

        MCMPRequest createConfigRequest​(Engine engine,
                                        NodeConfiguration nodeConfig,
                                        BalancerConfiguration balancerConfig)
        Creates a CONFIG MCMP request for the specified engine.
        Parameters:
        engine - the servlet engine to be configured
        nodeConfig - the node configuration
        balancerConfig - the balancer configuration
        Returns:
        an MCMP request
      • createEnableRequest

        MCMPRequest createEnableRequest​(Context context)
        Creates an ENABLE-APP MCMP request for the specified context.
        Parameters:
        context - a web application context
        Returns:
        an MCMP request
      • createDisableRequest

        MCMPRequest createDisableRequest​(Context context)
        Creates an DISABLE-APP MCMP request for the specified context.
        Parameters:
        context - a web application context
        Returns:
        an MCMP request
      • createStopRequest

        MCMPRequest createStopRequest​(Context context)
        Creates an STOP-APP MCMP request for the specified context.
        Parameters:
        context - a web application context
        Returns:
        an MCMP request
      • createRemoveRequest

        MCMPRequest createRemoveRequest​(Context context)
        Creates an REMOVE-APP MCMP request for the specified context.
        Parameters:
        context - a web application context
        Returns:
        an MCMP request
      • createStatusRequest

        MCMPRequest createStatusRequest​(String jvmRoute,
                                        int lbf)
        Creates an STATUS MCMP request using the specified jvmRoute and load balance factor. Used to create a STATUS request for a remote node.
        Parameters:
        jvmRoute - a configured jvm route
        lbf - a load factor
        Returns:
        an MCMP request
      • createEnableRequest

        MCMPRequest createEnableRequest​(Engine engine)
        Creates an ENABLE-APP * MCMP request for the specified engine.
        Parameters:
        engine - a servlet engine
        Returns:
        an MCMP request
      • createDisableRequest

        MCMPRequest createDisableRequest​(Engine engine)
        Creates an DISABLE-APP * MCMP request for the specified engine.
        Parameters:
        engine - a servlet engine
        Returns:
        an MCMP request
      • createStopRequest

        MCMPRequest createStopRequest​(Engine engine)
        Creates an STOP-APP * MCMP request for the specified engine.
        Parameters:
        engine - a servlet engine
        Returns:
        an MCMP request
      • createRemoveRequest

        MCMPRequest createRemoveRequest​(Engine engine)
        Creates an REMOVE-APP * MCMP request for the specified engine.
        Parameters:
        engine - a servlet engine
        Returns:
        an MCMP request
      • createInfoRequest

        MCMPRequest createInfoRequest()
        Creates an INFO MCMP request.
        Returns:
        an MCMP request
      • createDumpRequest

        MCMPRequest createDumpRequest()
        Creates an DUMP MCMP request.
        Returns:
        an MCMP request
      • createPingRequest

        MCMPRequest createPingRequest()
        Creates an PING MCMP request. This is used to ping a proxy,
        Returns:
        an MCMP request
      • createPingRequest

        MCMPRequest createPingRequest​(String jvmRoute)
        Creates an PING MCMP request for the node configured with the specified jvm route. This is used to ping a configured node from a proxy.
        Parameters:
        jvmRoute - a jvm route of the target node
        Returns:
        an MCMP request
      • createPingRequest

        MCMPRequest createPingRequest​(String scheme,
                                      String host,
                                      int port)
        Creates an PING MCMP request for the node with a connector matching the specified protocol, host, and port. This is used to ping an unconfigured node from a proxy.
        Parameters:
        scheme - specifies the protocol of the connector on the target node
        host - specifies the host of the connector on the target node
        port - specifies the port of the connector on the target node
        Returns:
        an MCMP request
      • createRemoveContextRequest

        MCMPRequest createRemoveContextRequest​(String jvmRoute,
                                               Set<String> aliases,
                                               String path)
        Create a REMOVE-APP request using the specified jvm route, aliases, and context path. Used to create REMOVE-APP requests for remote nodes.
        Parameters:
        jvmRoute - a jvm route
        aliases - a set of host aliases
        path - the context path
        Returns:
        an MCMP request
      • createRemoveEngineRequest

        MCMPRequest createRemoveEngineRequest​(String jvmRoute)
        Create a REMOVE-APP * request using the specified jvm route. Used to create REMOVE-APP * requests for remote nodes.
        Parameters:
        jvmRoute - a jvm route
        Returns:
        an MCMP request