All Implemented Interfaces:
Runnable
Enclosing class:
PluginStarter

private static class PluginStarter.TrackedDelayedClientextends LoadClientAppsJob.DelayedRunClient
Simple override to track whether a plugin's client is delayed and queued.
  • Field Details

    • _pluginName

      private final String _pluginName
      The plugin that started the client.
  • Constructor Details

    • TrackedDelayedClient

      public TrackedDelayedClient(String pluginName, SimpleTimer2 pool, RouterContext enclosingContext, String className, String clientName, String[] args, ThreadGroup threadGroup, ClassLoader cl)
      Builds a delayed client tracked to its plugin.
      Parameters:
      pluginName - the plugin that started the client
      pool - the timer pool to schedule on
      enclosingContext - the router context
      className - the client class to run
      clientName - the name of the client
      args - the arguments for the client
      threadGroup - the group for the client's threads
      cl - the plugin's class loader
  • Method Details

    • cancel

      public boolean cancel()
      Deregisters this client from the plugin when the timer is cancelled.
      Overrides:
      cancel in class SimpleTimer2.TimedEvent
      Returns:
      true if the event will not execute, false if already idle/cancelled
    • timeReached

      public void timeReached()
      Deregisters this client from the plugin when the timer fires.
      Overrides:
      timeReached in class LoadClientAppsJob.DelayedRunClient