⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cocoon.xconf

📁 Hippo CMS是一个以信息为中心的开源内容管理系统。Hippo CMS目标是供中,大型企业来管理其发布在互连网
💻 XCONF
📖 第 1 页 / 共 5 页
字号:
        | name:                  required name of the pool.        | priority:              optional priority all threads of the pool will         |                        have (the ThreadFactory will be set to this         |                        priority).The possible values  are:         |                          MIN:  corresponds to Thread#MIN_PRIORITY        |                          NORM: corresponds to Thread#NORM_PRIORITY (default)        |                          MAX:  corresponds to Thread#MAX_PRIORITY        | daemon:                whether newly created Threads should run in         |                        daemon mode or not. Default to false.        | queue-size:            optional size of a queue to hold Runnables if the         |                        pool is full. Possible values are:        |                          less than 0:    unbounded (default)        |                          equal to 0:     no queue at all        |                          greater than 0: size of the queue        | max-pool-size:         optional maximum number of threads in the pool.         |                        Defaults to 5.         |                        NOTE: if a queue is specified (queue-sie != 0)         |                              this value will be ignored.        | min-pool-size:         optional minimum number of threads in the pool.         |                        Defaults to 5.         |                        NOTE: if a queue has been specified (queue-sie != 0)        |                              this value will be used as the maximum of        |                              thread running concurrently.        | keep-alive-time-ms:    The time in ms an idle thread should keep alive         |                        before it might get garbage collected. This         |                        defaults to 60000 ms.        | block-policy;          The policy to be used if all resources (thread in        |                        the pool and slots in the queue) are exhausted.        |                        Possible values are:        |                          ABORT:         Throw a RuntimeException        |                          DISCARD:       Throw away the current request         |                                         and return.        |                          DISCARDOLDEST: Throw away the oldest request         |                                         and return.        |                          RUN (default): The thread making the execute         |                                         request runs the task itself.         |                                         This policy helps guard against         |                                         lockup.        |                          WAIT:          Wait until a thread becomes         |                                         available. This policy should, in         |                                         general, not be used if the         |                                         minimum number of threads is zero,         |                                         in which case a thread may never         |                                         become available.        | shutdown-graceful:     Terminate thread pool after processing all         |                        Runnables currently in queue. Any Runnable entered         |                        after this point will be discarded. A shut down         |                        pool cannot be restarted. This also means that a         |                        pool will need keep-alive-time-ms to terminate.         |                        The default value not to shutdown graceful.        | shutdown-wait-time-ms: The time in ms to wait before issuing an         |                        immediate shutdown after a graceful shutdown         |                        has been requested.        +-->
    <thread-factory>org.apache.cocoon.components.thread.DefaultThreadFactory</thread-factory>
    <thread-pools>
      <!--+          | This is the default thread pool. It's use fits best for short           | running background tasks.          +-->
      <thread-pool>  
        <name>default</name>
        <priority>NORM</priority>
        <daemon>false</daemon>
        <queue-size>-1</queue-size>
        <max-pool-size>5</max-pool-size>
        <min-pool-size>5</min-pool-size>
        <keep-alive-time-ms>60000</keep-alive-time-ms>
        <block-policy>RUN</block-policy>
        <shutdown-graceful>false</shutdown-graceful>
        <shutdown-wait-time-ms>-1</shutdown-wait-time-ms>
      </thread-pool> 
      <!--+          | This thread pool should be used for daemons (permanently running           | threads).          +-->
      <thread-pool>  
        <name>daemon</name>
        <priority>NORM</priority>
        <daemon>true</daemon>
        <queue-size>0</queue-size>
        <max-pool-size>-1</max-pool-size>
        <min-pool-size>1</min-pool-size>
        <keep-alive-time-ms>60000</keep-alive-time-ms>
        <block-policy>ABORT</block-policy>
        <shutdown-graceful>false</shutdown-graceful>
        <shutdown-wait-time-ms>-1</shutdown-wait-time-ms>
      </thread-pool> 
    </thread-pools>
  </runnable-manager>

  <!--+      | The Monitor keeps track on changes to a Resource.      +-->
  <monitor logger="core.monitor">
    <thread frequency="10000" priority="5"/>
  </monitor>

  <!-- Site configuration manager --> 
  <site-manager logger="core.sites">
    <file src="context://WEB-INF/sites.xconf"/>
  
  <!-- depth not implemented yet, just recurses through dir structure -->
  <files base="${maven.cocoon.servermanager.configurationlocation}" depth="2">
    <!-- each include-file element describes one _exact_ filename which to include in the configuration -->
    <include-file>sites.xconf</include-file>
  </files>

  </site-manager>

  <!-- Repository configuration manager --> 
  <repository-manager logger="core.repository">
    <file src="context://WEB-INF/repositories.xconf"/>
  
  <!-- depth not implemented yet, just recurses through dir structure -->
  <files base="${maven.cocoon.servermanager.configurationlocation}" depth="2">
    <!-- each include-file element describes one _exact_ filename which to include in the configuration -->
    <include-file>repositories.xconf</include-file>
  </files>

  </repository-manager>
 
  
  <eventaware-manager logger="core.eventaware-manager">
      <lookup role="org.apache.cocoon.caching.Cache/EventAwareRepositoryBinary"/>
      <lookup role="org.apache.cocoon.caching.Cache/EventAwareRepositoryDoc"/>
      <lookup role="org.apache.cocoon.caching.Cache/EventAware"/>
  </eventaware-manager>
    
  <transient-eventregistry logger="core.transient-eventregistry"/>
    
  <eventaware-store logger="core.eventaware-store">
      <parameter name="maxobjects" value="15000"/>
  </eventaware-store>
  
  <!-- Event cache configuration -->
  <eventcache logger="core.eventcache">
      <parameter name="store" value="org.apache.excalibur.store.Store"/>
      <parameter name="eventregistry" value="org.apache.cocoon.caching.EventRegistry"/>
  </eventcache>
  
  <eventcache-repository-doc logger="core.eventcache.RepositoryDoc">
      <parameter name="store" value="org.apache.excalibur.store.Store/RepositoryDoc"/>
      <parameter name="eventregistry" value="org.apache.cocoon.caching.EventRegistry/repositoryDoc"/>
  </eventcache-repository-doc>
  
  <eventcache-repository-binary logger="core.eventcache.repositoryBinary">
      <parameter name="store" value="org.apache.excalibur.store.Store/RepositoryBinary"/>
      <parameter name="eventregistry" value="org.apache.cocoon.caching.EventRegistry/repositoryBinary"/>
  </eventcache-repository-binary>
  
  <eventregistry logger="core.eventcache.registry"/>
  
  <eventregistry-repository-binary logger="core.eventcache.registry"/>
  
  <eventregistry-repository-doc logger="core.eventcache.registry"/>
  
  <!-- +    | Configuration of a set JMS Connections.     | Three types of connections can be configured:     | - general <connection>s: created by a call to ConnectionFactory.createConnection()    | - <topic-connection>s: created by a call to TopicConnectionFactory.createTopicConnection()    | - <queue-connection>s: created by a call to QeueuConnectionFactory.createQueueConnection()    |     | Each connection must have a unique name. This is the name other components    | use to retrieve it.    |     | All connection types support the same set of parameters:    | - javax.naming.*: properties used to create the initial JNDI context.    |   JNDI parameters must be specified with their literal values here.    |   For example, javax.naming.Context.INITIAL_CONTEXT_FACTORY is     |   equivalent to "java.naming.factory.initial".    | - connection-factory: the JNDI lookup name of the javax.jms.ConnectionFactory service.    | - username / password: optional connection credentials    + -->
  <jms-connection-manager logger="core.jms">
  

    <topic-connection name="local">
      <parameter name="java.naming.factory.initial" value="org.exolab.jms.jndi.InitialContextFactory"/>
      <parameter name="java.naming.provider.url" value="tcp://localhost:3035/"/>
      <parameter name="connection-factory" value="TCPTopicConnectionFactory"/>
      <!--      <parameter name="username" value="user"/>      <parameter name="password" value="secret"/>      -->
      <parameter name="auto-reconnect" value="true"/>
      <!-- every 10 sec is enough -->
      <parameter name="auto-reconnect-delay" value="10000"/>
    </topic-connection>

</jms-connection-manager>
  

    <avalon-spring-bridge/>


  <broken-link-checker>
    <parameter name="enabled" value="false"/>
    <parameter name="role-of-this-component" value="BrokenLinkChecker"/>
    <parameter name="job-name" value="BrokenLinksCheckerJob"/>
    <parameter name="cron-expression" value="0 0 4 * * ?"/>
    <parameter name="document-tree-to-check-root-url" value="http://localhost:60000/default/files/default.preview/content"/>
    <parameter name="documents-base-url" value="/default/files/default.preview"/>
    <parameter name="internal-url-prefixes-to-ignore" value="/assets/binaries/ /binaries/"/>
    <parameter name="internal-links-base-url" value="http://localhost:60000/default/files/default.preview"/>
    <parameter name="repository-username" value="root"/>
    <parameter name="repository-password" value="password"/>
    <parameter name="result-document-url" value="http://localhost:60000/default/files/default.preview/configuration/brokenlinks/brokenlinks.xml"/>
    <parameter name="document-batch-size" value="100"/>
    <parameter name="number-of-link-checking-threads" value="10"/>
    <parameter name="link-check-timeout-seconds" value="10"/>
  </broken-link-checker>

  
  <content-model-repository logger="cms.contentmodel">
    <parameter name="lockTimeout" value="-1"/>
  </content-model-repository>



    <component class="org.apache.cocoon.components.cron.QuartzJobScheduler" logger="cron" role="org.apache.cocoon.components.cron.JobScheduler">
        <store type="ram"/>
        <!-- Definitions for a thread pool used to schedule jobs -->
        <thread-pool>
            <!-- Should we queue up execution requests if the pool is busy? Defaults to false -->
            <use-queueing>false</use-queueing>
            <!-- How big should the queue be. Defaults to unlimited size (<0 == default) -->
            <queue-size>-1</queue-size>
            <!-- The maximum size of the pool. Defaults to Integer.MAX_VALUE (<0 == default) -->
            <max-pool-size>-1</max-pool-size>
            <!-- The minimum size of the pool.Defaults to 1 (<0 == default) -->
            <min-pool-size>1</min-pool-size>
            <!-- How long will an idle thread be kept before it will be discarded.                  Defaults to 60000ms (<0 == default) -->
            <keep-alive-time-ms>60000</keep-alive-time-ms>
            <!-- Which blocking policy should be used if the maximum pool size and queue size is bounded:                 Run:           (default) The thread making the execute request runs the task itself.                                 This policy helps guard against lockup.                  Wait:          Wait until a thread becomes available.                  Abort:         Throw a RuntimeException                  Discard:       Throw away the current request and return.                  DiscardOldest: Throw away the oldest request and return. -->
            <block-policy>RUN</block-policy>
            <!-- Should queued and running jobs be given a chance to finished on system shutdown. Defaults to true -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -