Package org.apache.agila.services

Examples of org.apache.agila.services.InstanceInfo


    }

    public void detail_instance( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException {

        InstanceID instanceID = new InstanceID( Integer.parseInt( request.getParameter( "instanceid" ) ) );
        InstanceInfo info = eiSvc.getInstanceInfoByID(instanceID);
        request.setAttribute( "instance", info );
        request.setAttribute( "graphManager", graphManager );
        request.setAttribute( "pageToDisplay", "/WEB-INF/view/instancedetail.jsp" );
        doRender( request, response );
    }
View Full Code Here


    public List listInstanceInfo() {
        List list = getHibernateTemplate().loadAll(InstanceImpl.class);
        List answer = new ArrayList(list.size());
        for (Iterator iter = list.iterator(); iter.hasNext();) {
            InstanceImpl instance = (InstanceImpl) iter.next();
            InstanceInfo info = new InstanceInfo(instance);
            answer.add(info);
        }
        return answer;
    }
View Full Code Here

            while( result.next() ) {
                Instance instance = getInstanceByID(
                    new InstanceID( result.getInt( "instanceid" ) ) );

                InstanceInfo ii = new InstanceInfo(instance);

                retVal.add(ii);
            }

            result.close();
View Full Code Here

        while(it.hasNext()) {

            InstanceImpl impl = (InstanceImpl) it.next();

            data.add(new InstanceInfo(impl));
        }

        return data;
    }
View Full Code Here

TOP

Related Classes of org.apache.agila.services.InstanceInfo

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.