Interface EntryPointBuilder


public interface EntryPointBuilder
Builder of EntryPoint.
  • Method Summary

    Modifier and Type Method Description
    EntryPoint build()
    Build a EntryPoint.
    EntryPointBuilder config​(java.lang.String configFileName)
    Specify the path of the configuration file (service-config.xml).
    EntryPointBuilder crypt​(java.lang.String configCryptFileName)
    To encrypt service-config.xml, specify the path of the encryption configuration file (crypt.properties).
    EntryPointBuilder loader​(java.lang.String loaderClassName)
    Specify the ConfigLoader class name to load the configuration file.
    EntryPointBuilder property​(java.lang.String name, java.lang.String value)
    Set the iPLAss Bootstrap property.
    EntryPointBuilder serverEnvFile​(java.lang.String serverEnvFile)
    Specify the path of the property file where the iPLAss Bootstrap property is specified.
    EntryPointBuilder serverId​(java.lang.String serverId)
    Specify the serverId of this iPLAsss instance.
    EntryPointBuilder serverRole​(java.lang.String... serverRole)
    Specify the serverRole of this iPLAsss instance as needed.
  • Method Details

    • build

      EntryPoint build()
      Build a EntryPoint. If there is an EntryPoint that has already been initialized, an AlreadyInitializedException is thrown.
      Returns:
      EntryPoint instance
      Throws:
      AlreadyInitializedException - When EntryPoint has already been initialized
    • serverEnvFile

      EntryPointBuilder serverEnvFile​(java.lang.String serverEnvFile)
      Specify the path of the property file where the iPLAss Bootstrap property is specified. If serverEnvFile is not specified, system properties are used as Bootstrap properties.
      Parameters:
      serverEnvFile -
      Returns:
    • serverId

      EntryPointBuilder serverId​(java.lang.String serverId)
      Specify the serverId of this iPLAsss instance. If not specified, the Host name will be serverId.
      Parameters:
      serverId -
      Returns:
    • serverRole

      EntryPointBuilder serverRole​(java.lang.String... serverRole)
      Specify the serverRole of this iPLAsss instance as needed.
      Parameters:
      serverRole -
      Returns:
    • config

      EntryPointBuilder config​(java.lang.String configFileName)
      Specify the path of the configuration file (service-config.xml). If not specified, the default value is "/mtp-service-config.xml".
      Parameters:
      configFileName -
      Returns:
    • crypt

      EntryPointBuilder crypt​(java.lang.String configCryptFileName)
      To encrypt service-config.xml, specify the path of the encryption configuration file (crypt.properties).
      Parameters:
      configCryptFileName -
      Returns:
    • loader

      EntryPointBuilder loader​(java.lang.String loaderClassName)
      Specify the ConfigLoader class name to load the configuration file. If not specified, the default loader will be used.
      Parameters:
      loaderClassName -
      Returns:
    • property

      EntryPointBuilder property​(java.lang.String name, java.lang.String value)
      Set the iPLAss Bootstrap property.
      Parameters:
      name -
      value -
      Returns: