src/main/java/org/jboss/loom/utils/as7/AS7CliUtils.java
public static boolean exists( final ModelNode resource, ModelControllerClient client ) throws IOException {
        ModelNode query = new ModelNode();
        // Read operation.
        query.get(ClientConstants.OP).set(ClientConstants.READ_RESOURCE_OPERATION);
        // Copy the address.
        query.get(ClientConstants.OP_ADDR).set( resource.get(ClientConstants.OP_ADDR) );
        ModelNode res = client.execute( query );
        return wasSuccess( res );
    }
/**
     *  Queries the AS 7 if given resource exists.
     */
Queries the AS 7 if given resource exists.
Queries the AS 7 if given resource exists .
public static boolean exists( final ModelNode resource, ModelControllerClient client ) throws IOException {
        ModelNode query = new ModelNode();
        query.get(ClientConstants.OP).set(ClientConstants.READ_RESOURCE_OPERATION);
        query.get(ClientConstants.OP_ADDR).set( resource.get(ClientConstants.OP_ADDR) );
        ModelNode res = client.execute( query );
        return wasSuccess( res );
    }
public static boolean exists ( final ModelNode resource , ModelControllerClient client ) throws IOException { ModelNode query = new ModelNode ( ) ; query . get ( ClientConstants . OP ) . set ( ClientConstants . READ_RESOURCE_OPERATION ) ; query . get ( ClientConstants . OP_ADDR ) . set ( resource . get ( ClientConstants . OP_ADDR ) ) ; ModelNode res = client . execute ( query ) ; return wasSuccess ( res ) ; }
Queries the AS 7 if given resource exists.
Queries the AS 7 if given resource exists .
// Read operation. // Copy the address.