Package com.sun.enterprise.ee.synchronization

Examples of com.sun.enterprise.ee.synchronization.SynchronizationResponse


     * @throws  IOException  if an i/o error
     */
    public SynchronizationResponse writeZip(InputStream in, String resEntry)
            throws IOException, ClassNotFoundException {
               
        SynchronizationResponse response = null;
        ZipInputStream zin               = null;
        CheckedInputStream cis           = null;
        ZipEntry entry                   = null;
        ObjectInputStream oin            = null;

View Full Code Here


            // get repository content list from DAS
            MBeanServerConnectionInfo connInfo =
                new MBeanServerConnectionInfo(dasProperties);
            AuditGetCommand aCommand = new AuditGetCommand(_requests, connInfo);
            aCommand.execute();
            SynchronizationResponse response =
                (SynchronizationResponse) aCommand.getResult();

            List auditList = response.getFileList();

            // audit response
            RequestAuditor ra = new RequestAuditor(response);
            ra.audit();
View Full Code Here

            _out.close();
            _out = null;
        }

        // synchronization response
        _response = new SynchronizationResponse(zipBytes, results,
                    checksum, _ctx.getStartTime(), System.currentTimeMillis());
    }
View Full Code Here

     */
    void postProcess(long zipSize, SynchronizationRequest[] results)
            throws IOException {

        // synchronization response
        _response = new SynchronizationResponse(null, results,
                    0, _ctx.getStartTime(), System.currentTimeMillis());

        _response.setFileList(_list);
    }
View Full Code Here

     */
    void postProcess(long zipSize, SynchronizationRequest[] results)
            throws IOException {

        // synchronization response
        _response = new SynchronizationResponse(null, results,
                    0, _ctx.getStartTime(), System.currentTimeMillis());

        // add this response as a zip entry
        addResponseToZip(_response);

View Full Code Here

            _out.close();
            _out = null;
        }

        // synchronization response
        _response = new SynchronizationResponse(null, results,
                    checksum, _ctx.getStartTime(), System.currentTimeMillis());

        if (_zipFile.exists()) {
            // sets the zip file location in DAS for download
            _response.setZipLocation(_zipFile.getCanonicalPath());
View Full Code Here

        pruners = new DirPruner[mReqs.length];
       
        for (int i=0; i<pruners.length; i++) {

            SynchronizationResponse res = mReqs[i].getResponse();
            SynchronizationRequest[] reqs = res.getReply();
            if (reqs[0] != null) {
                String baseDir   = reqs[0].getBaseDirectory();
                String targetDir = reqs[0].getTargetDirectory();
                File reqDir = new File(baseDir + File.separator + targetDir);
View Full Code Here

        // synchronization request
        requests[0] = new SynchronizationRequest(
            fileName, ".", file.lastModified(),
            SynchronizationRequest.TIMESTAMP_MODIFICATION_TIME, null);           
        // synchronization response
        SynchronizationResponse res =
            new SynchronizationResponse(null, requests, 0, 0, 0);

        return res;
    }
View Full Code Here

     */
    private void testSaveRollback(boolean dir) {

        try {
            // synchronization memento
            SynchronizationResponse res = getResponseObj(dir, null);
            SynchronizationMemento m = new SynchronizationMemento(res);
            SynchronizationRequest[] req = res.getReply();
            SynchronizationRequest r = req[0];

            // synchronized file
            File f = new File( r.getFileName() );

View Full Code Here

        try {
            File tmpFile = new File(tmpName);
            tmpFile.mkdirs();

            // synchronization memento
            SynchronizationResponse res = getResponseObj(true, tmpName);
            SynchronizationMemento m = new SynchronizationMemento(res);

            // populate the dir
            RandomDirTree tree = new RandomDirTree(tmpName);
            tree.populate(true);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ee.synchronization.SynchronizationResponse

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.