Examples of ChangeSetWriter


Examples of org.rhq.common.drift.ChangeSetWriter

        File confDir = mkdir(resourceDir, "conf");
        File server1Conf = createRandomFile(confDir, "server-1.conf");
        String server1Hash = sha256(server1Conf);

        ChangeSetWriter writer = changeSetMgr.getChangeSetWriter(resourceId(), createHeaders(def, COVERAGE));
        writer.write(addedFileEntry("conf/server-1.conf", server1Hash, -1L, -1L));
        writer.close();

        scheduleQueue.addSchedule(new DriftDetectionSchedule(resourceId(), def));
        detector.run();

        // verify that no drift change set was generated
View Full Code Here

Examples of org.rhq.common.drift.ChangeSetWriter

        File server1Conf = createRandomFile(confDir, "server-1.conf");
        String server1Hash = sha256(server1Conf);
        File server2Conf = createRandomFile(confDir, "server-2.conf");
        String server2Hash = sha256(server2Conf);

        ChangeSetWriter writer = changeSetMgr.getChangeSetWriter(resourceId(), createHeaders(def, COVERAGE));
        writer.write(addedFileEntry("conf/server-1.conf", server1Hash, -1L, -1L));
        writer.write(addedFileEntry("conf/server-2.conf", server2Hash, -1L, -1L));
        writer.close();

        // create some drift
        server1Conf.delete();
        confDir.delete();
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.