Class StartupInfo

java.lang.Object
de.uni_hildesheim.sse.easy.loader.StartupInfo

public class StartupInfo extends Object
Stores startup information about a certain class.
Author:
Holger Eichelberger
  • Field Details

  • Constructor Details

    • StartupInfo

      StartupInfo(InitType type, String className)
      Creates a startup information object.
      Parameters:
      type - the startup / shutdown type
      className - the class to be started / stopped
  • Method Details

    • getType

      public InitType getType()
      Returns the type of the startup unit.
      Returns:
      the type
    • getClassName

      public String getClassName()
      Returns the qualified class name of the startup unit.
      Returns:
      the class name
    • start

      public boolean start(boolean verbose, ClassLoader loader)
      Starts up the associated class according to the startup type.
      Parameters:
      verbose - true for verbose output, false else
      loader - the class loader to use
      Returns:
      true in case of success, false else
    • stop

      public boolean stop(boolean verbose, ClassLoader loader)
      Stops the associated class according to the shutdown type.
      Parameters:
      verbose - true for verbose output, false else
      loader - the class loader to use
      Returns:
      true in case of success, false else
    • toString

      public String toString()
      Overrides:
      toString in class Object