📄 resin-tags.xtp
字号:
}</def><example title="Example: enabling security-manager"><resin xmlns="http://caucho.com/ns/resin"> ... <security-manager/> ...</example></defun><defun title="<security-provider>"><p><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="<security-provider> schema">element security-provider { string}</def><example title="Example: adding custom security providers"><resin xmlns="http://caucho.com/ns/resin" xmlns:resin="http://caucho.com/ns/resin/core"> ... <security-provider> com.sun.net.ssl.internal.ssl.Provider </security-provider> <security-provider> example.MyProvider </security-provider> ...</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="<stat-service>"><p><stat-service> periodically checks the status of the server,and reports errors as necessary.</p><deftable title="<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="<stat-service> schema">element stat-service { cpu-load-exit-threshold? & cpu-load-log-info-threshold? & cpu-load-log-warning-threshold? & cpu-load-thread-dump-threshold? & sample-period? & 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"><resin xmlns="http://caucho.com/ns/resin" xmlns:resin="http://caucho.com/ns/resin/core"> <resin:message>${system['foo']}</resin:message> ...</resin></example></s2></defun><defun title="watchdog"><p>The <watchdog> tag is used in ISP-styleconfigurations where the <watchdog-manager> is configured separatelyfrom the resin.xml instances, and where the configuration file is generallynot readable by the instance users.</p><p>The <watchdog> tag corresponds to the <server> tag in standardresin.xml configurations, and specifies the resin.xml, the root directoryand resin-user.</p><deftable title="<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="<watchdog> schema">element watchdog { attribute id { string } & chroot? & group-name? & java-exe? & java-home? & jvm-arg* & resin.xml? & resin-root? & open-port { address & port }* & user-name?}</def></defun><defun title="watchdog-manager"><p>For ISP configurations, <watchdog-manager> is used for a separateresin.xml just to configure the watchdog-manager itself. The<watchdog-manager> selects the <user-name>, <resin.xml>,ports, and Resin home directories before giving access to the user'sResin instance.</p><deftable title="<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 <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="<watchdog-manager> schema">element watchdog-manager { watchdog* & watchdog-address? & watchdog-default* & watchdog-jvm-arg* & watchdog-port?}</def></defun><defun title="xa-log-service"><p><xa-log-service> enables the transaction-manager logging. The XA logenables Resin to recover from server crashes and complete XA commits.</p><def title="<xa-log-service> schema">element xa-log-service { enable?}</def></defun></body></document>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -