Class SimpleIngestManager.Builder

  • Enclosing class:
    SimpleIngestManager

    public static class SimpleIngestManager.Builder
    extends Object
    This Builder allows someone to configure a SimpleIngestManager prior to instantiating the manager
    Author:
    obabarinsa
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • getAccount

        public String getAccount()
        getAccount - returns the name of the account this builder will inject into the IngestManager
        Returns:
        account name
      • setAccount

        public SimpleIngestManager.Builder setAccount​(String account)
        setAccount - set the account for the ingest manager and return this builder
        Parameters:
        account - the account which will be loading into this table
        Returns:
        this builder object
      • getUser

        public String getUser()
        getUser - get the user who will be loading using the ingest service
        Returns:
        the user name
      • setUser

        public SimpleIngestManager.Builder setUser​(String user)
        setUser - sets the user who will be loading with the ingest manager
        Parameters:
        user - the user who will be loading
        Returns:
        the current builder with the user set
      • getPipe

        public String getPipe()
        getPipe - get the pipe for the ingest manager this builder will create
        Returns:
        the target pipe for this ingest manager
      • setPipe

        public SimpleIngestManager.Builder setPipe​(String pipe)
        setTable - sets the pipe which the SimpleIngestManager will be using
        Parameters:
        pipe - the target pipe for the ingest manager
        Returns:
        the current builder with the target pipe
      • getKeypair

        public KeyPair getKeypair()
        getKeyPair - returns the key-pair we're using for authentication
        Returns:
        the RSA 2048 key-pair we use to sign tokens
      • setKeypair

        public SimpleIngestManager.Builder setKeypair​(KeyPair keypair)
        setKeypair - sets the RSA 2048 bit keypair we'll be using for token signing
        Parameters:
        keypair - the keypair we'll be using for auth
        Returns:
        the current builder with the key set
      • getUserAgentSuffix

        public String getUserAgentSuffix()
        Get the set user agent suffix. (This is in additional to the default one.)

        It can be null or empty.

      • getHostName

        public String getHostName()
      • build

        public SimpleIngestManager build()
        build - returns a new instance of SimpleIngestManager using the information set in this builder object