Object LoadOptionDefaults

  • All Implemented Interfaces:

    
    public class LoadOptionDefaults
    
                        

    The default load options, be careful if you have to change the default behaviour.

    • Constructor Detail

    • Method Detail

      • reset

         final Unit reset()

        Reset all the options to default.

      • getEXPIRES

         final Duration getEXPIRES()

        The default expiry time, some time we may need expire all pages by default, for example, in test mode

      • getBROWSER

         final BrowserType getBROWSER()

        The default browser is chrome with pulsar implemented web driver.

      • getExpires

         final Duration getExpires()

        The default expiry time, some time we may need expire all pages by default, for example, in test mode

      • setExpires

         final Unit setExpires(Duration expires)

        The default expiry time, some time we may need expire all pages by default, for example, in test mode

      • getParse

         final Boolean getParse()

        Trigger the parse phase or not.

        Do not parse by default, since there are may ways to trigger a webpage parsing:

        • use session.parse()

        • add a -parse option

        • use a ai.platon.pulsar.crawl.common.url.ParsableHyperlink

      • setParse

         final Unit setParse(Boolean parse)

        Trigger the parse phase or not.

        Do not parse by default, since there are may ways to trigger a webpage parsing:

        • use session.parse()

        • add a -parse option

        • use a ai.platon.pulsar.crawl.common.url.ParsableHyperlink

      • getStoreContent

         final Boolean getStoreContent()

        Store webpage content or not.

        Store webpage content by default. If we are running a public cloud, this option might be changed to false.

      • setStoreContent

         final Unit setStoreContent(Boolean storeContent)

        Store webpage content or not.

        Store webpage content by default. If we are running a public cloud, this option might be changed to false.

      • getNJitRetry

         final Integer getNJitRetry()

        There are several cases to enable jit retry. For example, in a test environment.

      • setNJitRetry

         final Unit setNJitRetry(Integer nJitRetry)

        There are several cases to enable jit retry. For example, in a test environment.

      • getBrowser

         final BrowserType getBrowser()

        The default browser is chrome with pulsar implemented web driver.

      • setBrowser

         final Unit setBrowser(BrowserType browser)

        The default browser is chrome with pulsar implemented web driver.

      • getTest

         final Integer getTest()

        Set to be 0 if we are doing unit test or other test. We will talk more, log more and trace more in test mode.

      • setTest

         final Unit setTest(Integer test)

        Set to be 0 if we are doing unit test or other test. We will talk more, log more and trace more in test mode.