Package org.jboss.as.protocol.mgmt

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


    /** {@inheritDoc} */
    public List<ModelUpdateResponse<List<ServerIdentity>>> updateDomainModel(final List<AbstractDomainModelUpdate<?>> updates) {
        try {
            return new UpdateDomainModelRequest(updates).executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to update domain model", e);
        }
    }
View Full Code Here


    public List<UpdateResultHandlerResponse<?>> updateServerModel(final String serverName, final List<AbstractServerModelUpdate<?>> updates, final boolean allowOverallRollback) {
        try {
            return new UpdateServerModelRequest(updates, serverName, allowOverallRollback).executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to update domain model", e);
        }
    }
View Full Code Here

    @Override
    public DomainModel getDomainModel() {
        try {
            return new GetDomainOperation().executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to get domain model.", e);
        }
    }
View Full Code Here

    @Override
    public List<DomainUpdateResult<?>> applyUpdates(final List<AbstractDomainModelUpdate<?>> updates) {
        try {
            return new ApplyUpdatesOperation(updates).executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to apply domain updates", e);
        }
    }
View Full Code Here

    @Override
    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

    @Override
    public List<HostUpdateResult<?>> applyHostUpdates(String hostName, List<AbstractHostModelUpdate<?>> updates) {
        try {
            return new ApplyHostUpdatesOperation(hostName, updates).executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to apply host updates", e);
        }
    }
View Full Code Here

    @Override
    public HostModel getHostModel(String serverManagerName) {
        try {
            return new GetHostModelOperation(serverManagerName).executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to get host model", e);
        }
    }
View Full Code Here

    @Override
    public List<String> getServerManagerNames() {
        try {
            return new GetServerManagerNamesOperation().executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to get server manager names", e);
        }
    }
View Full Code Here

    @Override
    public ServerModel getServerModel(String serverManagerName, String serverName) {
        try {
            return new GetServerModelOperation(serverManagerName, serverName).executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to get server model", e);
        }
    }
View Full Code Here

    @Override
    public Map<ServerIdentity, ServerStatus> getServerStatuses() {
        try {
            return new GetServerStatusesOperation().executeForResult(getConnectionStrategy());
        } catch (Exception e) {
            throw new ManagementException("Failed to get server statuses", 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.