Package org.jboss.as.protocol.mgmt

Examples of org.jboss.as.protocol.mgmt.ManagementException


            controller.executeUpdates();
            try {
                latch.await();
            } catch(Exception e) {
                throw new ManagementException("failed to execute updates", e);
            }

            final Marshaller marshaller = getMarshaller();
            marshaller.start(createByteOutput(output));
            marshaller.writeByte(StandaloneClientProtocol.PARAM_APPLY_UPDATES_RESULT_COUNT);
View Full Code Here


            marshaller.start(createByteOutput(output));
            marshaller.writeByte(StandaloneClientProtocol.PARAM_DEPLOYMENT_PLAN_RESULT);
            try {
                marshaller.writeObject(result.get());
            } catch (Exception e) {
                throw new ManagementException("Failed get deployment plan result.", e);
            }
            marshaller.finish();
        }
View Full Code Here

        log.debugf("Executed %s updates", updates.size());
        try {
            latch.await();
        } catch(InterruptedException e) {
            Thread.currentThread().interrupt();
            throw new ManagementException("failed to execute updates", e);
        }

        return results;
    }
View Full Code Here

    /** {@inheritDoc} */
    public DomainModel register() {
        try {
            return new RegisterOperation(localManagementAddress, localManagementPort, this).executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to register with the domain controller", e);
        }
    }
View Full Code Here

    /** {@inheritDoc} */
    public void unregister() {
        try {
            new UnregisterOperation(this).execute(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to register with the domain controller", e);
        }
    }
View Full Code Here

    /** {@inheritDoc} */
    public ServerModel getServerModel() {
        try {
            return new GetServerModel().executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to get server model.", e);
        }
    }
View Full Code Here

    /** {@inheritDoc} */
    public List<StandaloneUpdateResult<?>> applyUpdates(List<AbstractServerModelUpdate<?>> updates) {
        try {
            return new ApplyUpdatesOperation(updates).executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to apply server module updates.", e);
        }
    }
View Full Code Here

    /** {@inheritDoc} */
    public byte[] addDeploymentContent(String name, String runtimeName, InputStream stream) {
        try {
            return new AddDeploymentContentOperation(name, runtimeName, stream).executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to add deployment content.", e);
        }
    }
View Full Code Here

    boolean isDeploymentNameUnique(String name) {
        try {
            return new CheckUnitDeploymentNameOperation(name).executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to check deployment name uniqueness.", e);
        }
    }
View Full Code Here

    /** {@inheritDoc} */
    public List<HostUpdateResult<?>> updateHostModel(final List<AbstractHostModelUpdate<?>> updates) {
        try {
            return new UpdateHostModelRequest(updates).executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to update host model", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.protocol.mgmt.ManagementException

Copyright © 2018 www.massapicom. 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.