Package at.tuwien.minimee.migration

Examples of at.tuwien.minimee.migration.MigrationService


        return null;
    }

    public MigrationResult migrate(PreservationActionDefinition action,
            SampleObject sampleObject) throws PlatoServiceException {
        MigrationService service = new MigrationService();
        long start = System.nanoTime();
        String settings = "";
        if (action.isExecute()) {
            settings = action.getParamByName("settings");
        }
        MigrationResult result = service.migrate(sampleObject.getData().getData(),
                        action.getUrl(),
                        settings);
        // provide a nice name for the resulting object
        setResultName(result, sampleObject);
        long duration = (System.nanoTime()-start)/(1000000);
        service.addExperience(result.getFeedbackKey(), action.getUrl(),
                new Measurement("roundtripTimeMS",new Double(duration)));
        return result;
    }
View Full Code Here


        return null;
    }

    public MigrationResult migrate(PreservationActionDefinition action,
            DigitalObject digitalObject) throws PlatoException {
        MigrationService service = new MigrationService();
        long start = System.nanoTime();
        String settings = "";
        if (action.isExecute()) {
            settings = action.getParamByName("settings");
        }
        MigrationResult result = service.migrate(digitalObject.getData().getData(),
                        action.getUrl(),
                        settings);
        // provide a nice name for the resulting object
        setResultName(result, digitalObject);
        long duration = (System.nanoTime()-start)/(1000000);
        service.addExperience(result.getFeedbackKey(), action.getUrl(),
                new Measurement("roundtripTimeMS",new Double(duration)));
        return result;
    }
View Full Code Here

TOP

Related Classes of at.tuwien.minimee.migration.MigrationService

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.