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

📄 resin-tags.xtp

📁 RESIN 3.2 最新源码
💻 XTP
📖 第 1 页 / 共 2 页
字号:
}</def><example title="Example: enabling security-manager">&lt;resin xmlns="http://caucho.com/ns/resin">  ...  &lt;security-manager/&gt;  ...</example></defun><defun title="&lt;security-provider>"><p>&lt;security-provider> adds one or more security providers.  Each entryspecifies the name of a security provider class.  The name is usedto instantiate an instance of theobject, which is then passed to <a href="javadoc|java.security.Security|addProvider">Security.addProvider</a>.</p><def title="&lt;security-provider> schema">element security-provider {  string}</def><example title="Example: adding custom security providers">&lt;resin xmlns="http://caucho.com/ns/resin"       xmlns:resin="http://caucho.com/ns/resin/core"&gt;  ...  &lt;security-provider&gt;    com.sun.net.ssl.internal.ssl.Provider  &lt;/security-provider&gt;  &lt;security-provider&gt;    example.MyProvider  &lt;/security-provider&gt;  ...</example></defun> <!-- security-provider --><defun title="Variables"><s2 title="java"><deftable title="java properties"><tr>  <th>Property</th>  <th>Description</th></tr><tr>  <td>version</td>  <td>Returns the JDK version from the java.version property</td></tr></deftable></s2><s2 title="resin"><deftable title="resin properties"><tr>  <th>Property</th>  <th>Description</th></tr><tr>  <td>address</td>  <td>The machine's address as returned by InetAddress</td></tr><tr>  <td>conf</td>  <td>The path to the resin.xml</td></tr><tr>  <td>home</td>  <td>The --resin-home value, i.e. the location of the Resin installation</td></tr><tr>  <td>homeName</td>  <td>The local hostname as returned by InetAddress</td></tr><tr>  <td>id</td>  <td>The --serverId command line value (see serverId)</td></tr><tr>  <td>isProfessional()</td>  <td>True if Resin professional is installed and licensed</td></tr><tr>  <td>root</td>  <td>The --resin-root value, i.e. the site's deployment directory</td></tr><tr>  <td>serverId</td>  <td>The --serverId command line value</td></tr><tr>  <td>version</td>  <td>The Resin version</td></tr><tr>  <td>versionDate</td>  <td>The compilation date of Resin</td></tr></deftable></s2><defun title="&lt;stat-service>"><p>&lt;stat-service> periodically checks the status of the server,and reports errors as necessary.</p><deftable title="&lt;stat-service> Attributes"><tr>  <th>Attribute</th>  <th>Description</th>  <th>Default</th></tr><tr>  <td>cpu-load-exit-threshold</td>  <td>CPU load triggering a Resin exit (and restart)</td>  <td>100.0</td></tr><tr>  <td>cpu-load-log-info-threshold</td>  <td>CPU load triggering a log message at the info level</td>  <td>1.0</td></tr><tr>  <td>cpu-load-log-warning-threshold</td>  <td>CPU load triggering a log message at the warning level</td>  <td>5.0</td></tr><tr>  <td>cpu-load-log-thread-dump-threshold</td>  <td>CPU load triggering thread dump to the log</td>  <td>5.0</td></tr><tr>  <td>sample-period</td>  <td>how often to sample the statistics</td>  <td>60s</td></tr><tr>  <td>thread-dump-interval</td>  <td>minimum time between thread dumps</td>  <td>15m</td></tr></deftable><def title="&lt;stat-service> schema">element stat-service {  cpu-load-exit-threshold?  &amp; cpu-load-log-info-threshold?  &amp; cpu-load-log-warning-threshold?  &amp; cpu-load-thread-dump-threshold?  &amp; sample-period?  &amp; thread-dump-interval?}</def></defun><s2 title="system"><p>The ${system} variable return the <code>System.getProperties()</code>value.</p><example title="Example: returning -Dfoo=bar">&lt;resin xmlns="http://caucho.com/ns/resin"      xmlns:resin="http://caucho.com/ns/resin/core">  &lt;resin:message>${system['foo']}&lt;/resin:message>  ...&lt;/resin></example></s2></defun><defun title="watchdog"><p>The &lt;watchdog> tag is used in ISP-styleconfigurations where the &lt;watchdog-manager> is configured separatelyfrom the resin.xml instances, and where the configuration file is generallynot readable by the instance users.</p><p>The &lt;watchdog> tag corresponds to the &lt;server> tag in standardresin.xml configurations, and specifies the resin.xml, the root directoryand resin-user.</p><deftable title="&lt;watchdog> Attributes"><tr>  <th>Attribute</th>  <th>Description</th>  <th>Default</th></tr><tr>  <td>chroot</td>  <td>calls chroot before starting the Resin process</td>  <td></td></tr><tr>  <td>group-name</td>  <td>setgid value for unix systems</td>  <td></td></tr><tr>  <td>java-exe</td>  <td>java executable to use for the Resin instance</td>  <td>java</td></tr><tr>  <td>java-home</td>  <td>JAVA_HOME value for the Resin instance</td>  <td></td></tr><tr>  <td>open-port</td>  <td>list of ports the watchdog should open for the Resin instance, e.g.for ports that require root access</td>  <td></td></tr><tr>  <td>resin.xml</td>  <td>Path to the resin.xml file for the Resin instance</td>  <td>same as for watchdog</td></tr><tr>  <td>resin-root</td>  <td>Root directory for the Resin instance</td>  <td>same as for watchdog</td></tr></deftable><def title="&lt;watchdog> schema">element watchdog {  attribute id { string }  &amp; chroot?  &amp; group-name?  &amp; java-exe?  &amp; java-home?  &amp; jvm-arg*  &amp; resin.xml?  &amp; resin-root?  &amp; open-port { address &amp; port }*  &amp; user-name?}</def></defun><defun title="watchdog-manager"><p>For ISP configurations, &lt;watchdog-manager> is used for a separateresin.xml just to configure the watchdog-manager itself.  The&lt;watchdog-manager> selects the &lt;user-name>, &lt;resin.xml>,ports, and Resin home directories before giving access to the user'sResin instance.</p><deftable title="&lt;watchdog-manager> Attributes"><tr>  <th>Attribute</th>  <th>Description</th>  <th>Default</th></tr><tr>  <td>watchdog</td>  <td>Watchdog configuration for a Resin instance, corresponding to a &lt;server> in the resin.xml</td>  <td></td></tr><tr>  <td>watchdog-address</td>  <td>The TCP address the watchdog-manager listens for start, stop, status</td>  <td>127.0.0.1</td></tr><tr>  <td>watchdog-default</td>  <td>Defaults applied to all watchdog instances</td>  <td></td></tr><tr>  <td>watchdog-jvm-arg</td>  <td>JVM arguments for the watchdog-manager when launched</td>  <td></td></tr><tr>  <td>watchdog-port</td>  <td>The TCP port the watchdog-manager listens for start, stop, status</td>  <td>6700</td></tr></deftable><def title="&lt;watchdog-manager> schema">element watchdog-manager {  watchdog*  &amp; watchdog-address?  &amp; watchdog-default*  &amp; watchdog-jvm-arg*  &amp; watchdog-port?}</def></defun><defun title="xa-log-service"><p>&lt;xa-log-service> enables the transaction-manager logging.  The XA logenables Resin to recover from server crashes and complete XA commits.</p><def title="&lt;xa-log-service> schema">element xa-log-service {  enable?}</def></defun></body></document>

⌨️ 快捷键说明

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