Class XeSla

  • All Implemented Interfaces:
    XeSource

    public final class XeSla
    extends XeWrap
    Xembly source to create SLA attribute with server load average.

    Add this Xembly source to your page like this:

     new RsXembly(
       new XsStylesheet("/xsl/home.xsl"),
       new XsAppend(
         "page",
         new XsSLA()
       )
     )

    And expect this attribute in the XML:

    <?xml version="1.0"?>
     <?xml-stylesheet href="/xsl/home.xsl" type="text/xsl"?>
     <page sla="1.908"/>
     

    The class is immutable and thread-safe.

    Since:
    0.3
    • Constructor Detail

      • XeSla

        public XeSla()
        Ctor.
      • XeSla

        public XeSla​(CharSequence attr)
        Ctor.
        Parameters:
        attr - Attribute name