Class Swiftlet

    • Constructor Summary

      Constructors 
      Constructor Description
      Swiftlet()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns the name of the Swiftlet
      long getStartupTime()
      Returns the Swiftlet startup time
      int getState()
      Returns the current swiftlet state
      boolean isSnapshotAvailable()
      Returns whether this Swiftlet provides Snapshots
      protected void resume()
      Resume this Swiftlet after it has been in standby mode.
      protected void setStartupTime​(long startupTime)
      Set the startup time.
      protected abstract void shutdown()
      Stop this Swiftlet.
      protected void standby​(Configuration config)
      Start this Swiftlet in standby mode.
      protected abstract void startup​(Configuration config)
      Start this Swiftlet.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Swiftlet

        public Swiftlet()
    • Method Detail

      • getName

        public java.lang.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.