<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Adding Tom Wells to the CC. Can you guys please keep him and his team in the loop as this will be very useful in the Admin &amp; Config guide eventually.<div><br></div><div>Thanks,</div><div>Misty</div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-family: monospace; background-color: rgb(255, 255, 255); display: inline !important; float: none; ">Misty Stanley-Jones, RHCE</span><br style="color: rgb(0, 0, 0); font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: medium; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: medium; display: inline !important; float: none; ">Supervisor, Engineering Content Services</span></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: medium; display: inline !important; float: none; ">Red Hat Brisbane (GMT+10)</span><br style="color: rgb(0, 0, 0); font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: medium; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: medium; display: inline !important; float: none; ">☺: misty (IRC) ✉:&nbsp;</span><span class="Object" id="OBJ_PREFIX_DWT625_com_zimbra_email" style="color: rgb(0, 0, 139); text-decoration: none; cursor: pointer; font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: medium; "><span class="Object" id="OBJ_PREFIX_DWT627_com_zimbra_email" style="color: rgb(0, 0, 139); text-decoration: none; cursor: pointer; "><a href="mailto:misty@redhat.com">misty@redhat.com</a></span></span><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: medium; display: inline !important; float: none; ">&nbsp;</span><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: medium; display: inline !important; float: none; ">☏: +</span><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: medium; display: inline !important; float: none; ">&nbsp;</span><span class="Object" id="OBJ_PREFIX_DWT626_com_zimbra_ymaps" style="color: rgb(0, 0, 139); text-decoration: none; cursor: pointer; font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: medium; "><span class="Object" id="OBJ_PREFIX_DWT628_com_zimbra_ymaps" style="color: rgb(0, 0, 139); text-decoration: none; cursor: pointer; ">61 7 3514 8105</span></span></div></div></span></div></span></span>
</div>
<br><div><div>On Aug 16, 2012, at 8:22 AM, Brian Stansberry &lt;<a href="mailto:brian.stansberry@redhat.com">brian.stansberry@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On 8/15/12 3:16 PM, Kabir Khan wrote:<br><blockquote type="cite"><br>On 15 Aug 2012, at 17:38, John O'Hara wrote:<br><br><blockquote type="cite">I have an initial attempt at pulling this together;<br><br><a href="https://github.com/johnaoahra80/jboss-as/commits/launchCommand">https://github.com/johnaoahra80/jboss-as/commits/launchCommand</a><br><br></blockquote></blockquote><br>Great!<br><br><blockquote type="cite"><blockquote type="cite">A couple of things that I would be grateful for some guidance on is;<br><br>1 - I have created a PREFIX attribute for the Host Server model in the<br></blockquote></blockquote><br>Please use launch-command-prefix as the attribute name. When users read <br>the resource using the CLI, that name is more self-explanatory.<br><br><blockquote type="cite"><blockquote type="cite">host controller. The xml parser populates this attribute with any<br>commands defined in &lt;launch-command prefix="numactl --membind 1<br>--cpubind 1"/&gt;. Is this an acceptable/standard way of modifying the<br>model for a host server?<br><br></blockquote></blockquote><br>Instead of using the write-attribute operation, the parser should modify <br>the "add" operation for the server-config and add a <br>launch-command-prefix parameter.<br><br><blockquote type="cite">In your DescriptionProvider, since the write attribute handler validator allows null and expressions (which was my advice, whether expressions are needed is up for discussion), you would need to add<br>root.get(ATTRIBUTES, PREFIX, EXPRESSIONS_ALLOWED).set(true);<br>root.get(ATTRIBUTES, PREFIX, NILLABLE).set(true);<br><br>In the parser, again if expressions are needed you should use parsePossibleExpression()<br><br></blockquote><br>We are converting most of the coding of the resources in our management <br>model to use the ResourceDefinition and AttributeDefinition interfaces. <br>I'll try tomorrow to get a patch done that converts this SERVER_CONFIG <br>resource to using those interfaces. That will make doing all of this <br>simpler.<br><br><blockquote type="cite"><blockquote type="cite">2 - I have imported<br>org.jboss.as.host.controller.HostControllerLogger.ROOT_LOGGER into<br>ModelCombiner.java so that I can log an INFO message if a launch command<br>prefix has been defined. Is there a better place to log the message?<br></blockquote><br></blockquote><br>No, ROOT_LOGGER is the one to use; it logs all the other messages <br>related to the HC's activities controlling the lifecycle of servers.<br><br><blockquote type="cite"><blockquote type="cite"><br>3 - I have created a new info message in ModelCombiner.java,<br>serverLaunchCommandPrefix, with id = 11990. This is an arbitrary id, are<br>there any standards for assigning id's to messages?<br></blockquote><br>The message id should be sequential from the previous one<br><br></blockquote><br>The class javadoc for HostControllerLogger explains things a bit more.<br><br><blockquote type="cite"><blockquote type="cite"><br>John<br><br>On 08/14/2012 07:14 PM, Brian Stansberry wrote:<br><blockquote type="cite">Then how about this:<br><br>&lt;launch-command prefix="numactl --membind 1 --cpubind 1"/&gt;<br><br>If we ever find a use case for a suffix, we just add the attribute.<br><br>On 8/14/12 12:28 PM, John O'Hara wrote:<br><blockquote type="cite">I think the launch-command-prefix is probably more suitable, as<br>ModelCombiner already does a good job at defining which java command to run.<br><br>atm I can not think of a use case for a launch-command-suffix element<br><br>re [1] - I noticed this up after I sent the email<br><br>On 08/14/2012 06:03 PM, Brian Stansberry wrote:<br><blockquote type="cite">That's along the lines of what I was thinking for the "different user<br>account" case.<br><br>Something to think about is whether "java" should be in the<br>launch-command[1] value (with a default value of just "java".) If not<br>it's really a launch-command-prefix, and then is there a use case for<br>launch-command-suffix?<br><br>I think using a separate child element for this instead of an attribute<br>is better.<br><br>Another question is whether it makes sense to allow this to be<br>configured at the server-group level, with servers by default inheriting<br>that config. My vote is "no." KISS. If there is demand for doing it at<br>the server-group level, we'll here about it and can add it later.<br><br>As for validation, I doubt we can do much there. I think this would be<br>an advanced feature where users are going to have to be careful and test<br>things.<br><br>[1] Note our schema uses lower case names with "-" as a separator, not<br>camel case. So "launch-command" not "launchCommand".<br><br>On 8/14/12 11:49 AM, John O'Hara wrote:<br></blockquote><br></blockquote><br></blockquote><br><br>_______________________________________________<br>jboss-as7-dev mailing list<br><a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/jboss-as7-dev<br></blockquote><br><br>_______________________________________________<br>jboss-as7-dev mailing list<br><a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/jboss-as7-dev<br><br></blockquote><br><br>-- <br>Brian Stansberry<br>Principal Software Engineer<br>JBoss by Red Hat<br>_______________________________________________<br>jboss-as7-dev mailing list<br><a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/jboss-as7-dev<br></blockquote></div><br></div></body></html>