psdi.server

Interface Service

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void configure(java.util.Properties configData)
      Configuration information is presented in a Property object.
      void destroy()
      Release system resources.
      java.lang.String getName()
      Get's the name of the Service.
      java.lang.String getURL() 
      void init()
      Initialization should take place.
      boolean isAppService() 
      boolean isSingletonService()
      Is used to setup singleton services, i.e.
      void setURL(java.lang.String url) 
    • Method Detail

      • configure

        void configure(java.util.Properties configData)
        Configuration information is presented in a Property object.
      • init

        void init()
           throws java.lang.Exception
        Initialization should take place. This where long duration tasks and those that throw exceptions should take place, e.g. establishing network connections.
        Throws:
        java.lang.Exception
      • destroy

        void destroy()
        Release system resources. The object should release all system resources. This will be called only once and is called to prepare the object for finalization.
      • getName

        java.lang.String getName()
        Get's the name of the Service.
      • getURL

        java.lang.String getURL()
      • isAppService

        boolean isAppService()
      • setURL

        void setURL(java.lang.String url)
      • isSingletonService

        boolean isSingletonService()
        Is used to setup singleton services, i.e. this service is to be started on only one server. Method needs to be overridden if the service needs to be singleton.