Package com.tailf.ncs

Interface ApplicationComponent

All Superinterfaces:
Runnable

public interface ApplicationComponent extends Runnable
User defined Applications should implement this interface that extends Runnable, hence also the run() method has to be implemented. These applications are registered as components of type "application" in a Ncs packages. Ncs Java VM will start this application in a separate thread. The init() method is called before the thread is started. The finish() method is expected to stop the thread. Hence stopping the thread is user responsibility
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is called by the Ncs Java vm when the thread should be stopped.
    void
    This method is called by the Ncs Java vm before the thread is started.

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • init

      void init() throws Exception
      This method is called by the Ncs Java vm before the thread is started.
      Throws:
      Exception
    • finish

      void finish() throws Exception
      This method is called by the Ncs Java vm when the thread should be stopped. Stopping the thread is the responsibility of this method.
      Throws:
      Exception