Examples of RunnerChecksums


Examples of org.jdesktop.wonderland.runner.RunnerChecksums

    }

    @Override
    protected RunnerChecksums getServerChecksums() throws IOException {
        // get the server checksums
        RunnerChecksums serverChecksums = super.getServerChecksums();

        // now add in the checksums for the modules
        Map<String, RunnerChecksum> checksums = serverChecksums.getChecksums();
        checksums.putAll(getModuleChecksums().getChecksums());
        serverChecksums.setChecksums(checksums);
        return serverChecksums;
    }
View Full Code Here

Examples of org.jdesktop.wonderland.runner.RunnerChecksums

     * valid during the method calls within a single invocation of start()
     */
    protected synchronized RunnerChecksums getModuleChecksums()
        throws IOException
    {
        RunnerChecksums out = moduleChecksums.get();
        if (out == null) {
            // read in the new checksums from the server
            URL checksumURL = new URL(webserverURL + CHECKSUM_URL);
            try {
                Reader in = new InputStreamReader(checksumURL.openStream());
View Full Code Here

Examples of org.jdesktop.wonderland.runner.RunnerChecksums

     */
    @GET
    @Produces("text/plain")
    public Response getModuleChecksums() {

        RunnerChecksums checksums = RunnerChecksums.generate(
                Collections.singletonList("runner"), uriInfo.getBaseUriBuilder());

        /* Write the XML encoding to a writer and return it */
        StringWriter sw = new StringWriter();
        try {
            checksums.encode(sw);
            ResponseBuilder rb = Response.ok(sw.toString());
            return rb.build();
        } catch (javax.xml.bind.JAXBException excp) {
            /* Log an error and return an error response */
            logger.log(Level.WARNING, "[ASSET] Unable to encode checksums", excp);
View Full Code Here

Examples of org.jdesktop.wonderland.runner.RunnerChecksums

    public Response getModuleChecksums() {
        List<String> types = new ArrayList<String>();
        types.add("server");
        types.add("common");

        RunnerChecksums checksums = RunnerChecksums.generate(types,
                                                   uriInfo.getBaseUriBuilder());

        /* Write the XML encoding to a writer and return it */
        StringWriter sw = new StringWriter();
        try {
            checksums.encode(sw);
            ResponseBuilder rb = Response.ok(sw.toString());
            return rb.build();
        } catch (javax.xml.bind.JAXBException excp) {
            /* Log an error and return an error response */
            logger.log(Level.WARNING, "[ASSET] Unable to encode checksums", excp);
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.