Class Swiftlet

java.lang.Object
com.swiftmq.swiftlet.Swiftlet
Direct Known Subclasses:
AuthenticationSwiftlet, DeploySwiftlet, JNDISwiftlet, LogSwiftlet, MgmtSwiftlet, NetworkSwiftlet, QueueManager, RoutingSwiftlet, SchedulerSwiftlet, StoreSwiftlet, ThreadpoolSwiftlet, TimerSwiftlet, TopicManager, TraceSwiftlet, XAResourceManagerSwiftlet

public abstract class Swiftlet extends Object
Swiftlets are components of a SwiftMQ router and are under control of the SwiftletManager.

Implementing classes overwrite the startup and shutdown method.

A Swiftlet is instantiated from the SwiftletManager. All Kernel Swiftlets are sharing one class loader, and every Extension Swiftlet has his own class loader.
Author:
IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
See Also:
  • Field Details

  • Constructor Details

    • Swiftlet

      public Swiftlet()
  • Method Details

    • getName

      public String getName()
      Returns the name of the Swiftlet
      Returns:
      swiftlet name
    • getState

      public int getState()
      Returns the current swiftlet state
      Returns:
      current state
    • getStartupTime

      public long getStartupTime()
      Returns the Swiftlet startup time
      Returns:
      startup time.
    • setStartupTime

      protected void setStartupTime(long startupTime)
      Set the startup time. Called from the SwiftletManager.
      Parameters:
      startupTime - startup time.
    • isSnapshotAvailable

      public boolean isSnapshotAvailable()
      Returns whether this Swiftlet provides Snapshots
      Returns:
      snapshot available.
    • startup

      protected abstract void startup(Configuration config) throws SwiftletException
      Start this Swiftlet. Called from the SwiftletManager during router start. The Swiftlet configuration is passed as parameter.
      Parameters:
      config - Swiftlet configuration.
      Throws:
      SwiftletException - on error during startup.
    • standby

      protected void standby(Configuration config) throws SwiftletException
      Start this Swiftlet in standby mode. This method must be implemented from Kernel Swiftlets only.
      Parameters:
      config - Swiftlet configuration.
      Throws:
      SwiftletException - on error during startup.
    • resume

      protected void resume() throws SwiftletException
      Resume this Swiftlet after it has been in standby mode. The Swiftlet changes to active. This method must be implemented from Kernel Swiftlets only.
      Throws:
      SwiftletException - on error during startup.
    • shutdown

      protected abstract void shutdown() throws SwiftletException
      Stop this Swiftlet. Called from the SwiftletManager during router shutdown.
      Throws:
      SwiftletException - on error during shutdown.