Examples of CannotConnectToAgentException


Examples of org.rhq.core.domain.resource.CannotConnectToAgentException

            AgentClient agentClient = this.agentManager.getAgentClient(parentResource.getAgent());
            DiscoveryAgentService discoveryAgentService = agentClient.getDiscoveryAgentService();
            mergeResourceResponse = discoveryAgentService.manuallyAddResource(resourceType, parentResourceId,
                importResourceRequest.getPluginConfiguration(), subject.getId());
        } catch (CannotConnectException e) {
            throw new CannotConnectToAgentException("Error adding [" + resourceType + "] Resource to inventory as "
                + "a child of " + parentResource + " - cause: " + e.getMessage(), e);
        } catch (RuntimeException e) {
            throw new RuntimeException("Error adding [" + resourceType + "] Resource to inventory as a child of "
                + parentResource + " - cause: " + e, e);
        }
View Full Code Here

Examples of org.rhq.core.domain.resource.CannotConnectToAgentException

            String errorMessage = ThrowableUtil.getAllMessages(e);
            CreateResourceResponse response = new CreateResourceResponse(persistedHistory.getId(), null, null,
                CreateResourceStatus.FAILURE, errorMessage, null);
            resourceFactoryManager.completeCreateResource(response);

            throw new CannotConnectToAgentException("Error while sending create resource request to agent service", e);
        } catch (Exception e) {
            LOG.error("Error while sending create resource request to agent service", e);

            // Submit the error as a failure response
            String errorMessage = ThrowableUtil.getAllMessages(e);
View Full Code Here

Examples of org.rhq.core.domain.resource.CannotConnectToAgentException

            String errorMessage = ThrowableUtil.getAllMessages(e);
            DeleteResourceResponse response = new DeleteResourceResponse(persistedHistory.getId(),
                DeleteResourceStatus.FAILURE, errorMessage);
            resourceFactoryManager.completeDeleteResourceRequest(response);

            throw new CannotConnectToAgentException("Error while sending delete resource request to agent service", e);
        } catch (Exception e) {
            LOG.error("Error while sending delete resource request to agent service", e);

            // Submit the error as a failure response
            String errorMessage = ThrowableUtil.getAllMessages(e);
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.