Examples of includeDefaults()


Examples of org.rhq.modules.plugins.jbossas7.json.ReadAttribute.includeDefaults()

     *
     * @return name current host within EAP domain or null if we failed to read it
     */
    public static String findASDomainHostName(ASConnection connection) {
        ReadAttribute op = new ReadAttribute(new Address(), "local-host-name");
        op.includeDefaults(true);
        Result result = connection.execute(op);
        if (result.isSuccess()) {
            return result.getResult().toString();
        }
        return null;
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.ReadResource.includeDefaults()

        /*
         * Make the operation return minimum information. We just want to make sure we can read the resource. There's no
         * need to read the children names, evaluate defaults, and retrieve runtime attributes.
         */
        readResourceOperation.attributesOnly(true);
        readResourceOperation.includeDefaults(false);
        readResourceOperation.includeRuntime(false);

        Result res = getASConnection().execute(readResourceOperation, AVAIL_OP_TIMEOUT_SECONDS);
        if (res != null && res.isSuccess()) {
            return AvailabilityType.UP;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.