Package org.rhq.core.domain.resource.composite

Examples of org.rhq.core.domain.resource.composite.ResourceAvailabilitySummary


    }

    @Override
    public ResourceAvailabilitySummary getResourceAvailabilitySummary(int resourceId) throws RuntimeException {
        try {
            ResourceAvailabilitySummary result;
            result = resourceManager.getAvailabilitySummary(getSessionSubject(), resourceId);
            return result;
        } catch (Throwable t) {
            throw getExceptionToThrowToClient(t);
        }
View Full Code Here


        Query query = entityManager.createNamedQuery(Availability.FIND_BY_RESOURCE);
        query.setParameter("resourceId", resourceId);

        List<Availability> availabilities = query.getResultList();

        return new ResourceAvailabilitySummary(availabilities);
    }
View Full Code Here

    public Response getAvailabilitySummary(
        @ApiParam("Id of the resource to query") @PathParam("id") int resourceId,
        @Context HttpHeaders headers) {

        fetchResource(resourceId);
        ResourceAvailabilitySummary summary = resMgr.getAvailabilitySummary(caller,resourceId);
        AvailabilitySummary as = new AvailabilitySummary(resourceId,summary);

        Response.ResponseBuilder builder = Response.ok(as);

        MediaType type = headers.getAcceptableMediaTypes().get(0);
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.resource.composite.ResourceAvailabilitySummary

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.