Class FlushInstancesConnectionPool

  • All Implemented Interfaces:
    AdminCommand

    @Service(name="flush-connection-pool")
    @PerLookup
    @TargetType({DOMAIN,DAS})
    @ExecuteOn(DAS)
    public class FlushInstancesConnectionPool
    extends Object
    implements AdminCommand
    The command to flush a connection pool.

    This command from 5.193 will poke all known instances and tell them to flush the connection pool. This occurs by sending the _flush-connection-pool command to them. If that command fails on any instance (i.e. because the pool is not initialised/not in use on that instance) that this command will return with a ActionReport.ExitCode.WARNING status code.

    Pre-5.193 functionality occurs in FlushConnectionPoolLocal which previously was only executed against the DAS.
    Since:
    5.193
    Author:
    jonathan coustick
    See Also:
    FlushConnectionPoolLocal
    • Constructor Detail

      • FlushInstancesConnectionPool

        public FlushInstancesConnectionPool()
    • Method Detail

      • execute

        public void execute​(AdminCommandContext context)
        Description copied from interface: AdminCommand
        Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values
        Specified by:
        execute in interface AdminCommand
        Parameters:
        context - information