Package net.sourceforge.processdash.util

Examples of net.sourceforge.processdash.util.ProfTimer.click()


        List filesToDownload = new ArrayList();
        filesToDownload.addAll(diff.getOnlyInB());
        filesToDownload.addAll(diff.getDiffering());
        downloadFilesNamed(filesToDownload);

        pt.click("Copied down changes");
        return true;
    }

    /**
     * Apply changes to the collection on the server to make it match the
View Full Code Here


        ProfTimer pt = new ProfTimer(logger, "ResourceBridgeClient.syncUp["
                + remoteUrl + "]");
        ResourceCollectionDiff diff = getDiff();
        applySyncFilter(diff, filter);
        pt.click("Computed local-vs-remote diff");
        if (diff == null || diff.noDifferencesFound()) {
            logger.finer("no changes to sync up");
            return false;
        }
View Full Code Here

                    params.add(resourceName);
                }
            }
            if (!params.isEmpty()) {
                doPostRequest(DELETE_ACTION, (Object[]) params.toArray());
                pt.click("Deleted remote resources");
                madeChange = true;
            }
        }

        // upload files that need to be created or updated in the remote
View Full Code Here

                    madeChange = true;
                }
            }
            if (!params.isEmpty()) {
                doPostRequest(UPLOAD_ACTION, (Object[]) params.toArray());
                pt.click("Uploaded new/modified resources");
                madeChange = true;
            }
        }
       
        if (!filesToDownload.isEmpty()) {
View Full Code Here

    public synchronized URL doBackup(String qualifier) throws IOException {
        ProfTimer pt = new ProfTimer(logger, "ResourceBridgeClient.doBackup["
                + remoteUrl + "]");
        try {
            doPostRequest(BACKUP_ACTION, BACKUP_QUALIFIER_PARAM, qualifier);
            pt.click("backup finished, qualifer = " + qualifier);
        } catch (LockFailureException e) {
            // shouldn't happen
            logger.log(Level.SEVERE, "Received unexpected exception", e);
            pt.click("backup failed");
        }
View Full Code Here

            doPostRequest(BACKUP_ACTION, BACKUP_QUALIFIER_PARAM, qualifier);
            pt.click("backup finished, qualifer = " + qualifier);
        } catch (LockFailureException e) {
            // shouldn't happen
            logger.log(Level.SEVERE, "Received unexpected exception", e);
            pt.click("backup failed");
        }
        StringBuffer result = new StringBuffer(remoteUrl);
        HTMLUtils.appendQuery(result, VERSION_PARAM, CLIENT_VERSION);
        HTMLUtils.appendQuery(result, ACTION_PARAM, GET_BACKUP_ACTION);
        return new URL(result.toString());
View Full Code Here

        ProfTimer pt = new ProfTimer(logger, "ResourceBridgeClient.acquireLock["
                + remoteUrl + "]");
        try {
            this.userName = userName;
            doLockPostRequest(ACQUIRE_LOCK_ACTION);
            pt.click("Acquired bridged lock");
        } catch (LockFailureException lfe) {
            this.userName = null;
            throw lfe;
        } catch (Exception e) {
            this.userName = null;
View Full Code Here

        ProfTimer pt = new ProfTimer(logger,
                "ResourceBridgeClient.resumeOfflineLock[" + remoteUrl + "]");
        try {
            this.userName = userName;
            doLockPostRequest(ASSERT_LOCK_ACTION);
            pt.click("Resumed offline bridged lock");
        } catch (LockFailureException lfe) {
            this.userName = null;
            throw lfe;
        } catch (Exception e) {
            // when operating in offline mode, it is not unusual for the server
View Full Code Here

        ProfTimer pt = new ProfTimer(logger, "ResourceBridgeClient.pingLock["
                + remoteUrl + "]");
        try {
            doLockPostRequest(PING_LOCK_ACTION);
            pt.click("Pinged bridged lock");
        } catch (LockFailureException lfe) {
            throw lfe;
        } catch (Exception e) {
            throw new LockUncertainException(e);
        }
View Full Code Here

        ProfTimer pt = new ProfTimer(logger, "ResourceBridgeClient." + action
                + "[" + remoteUrl + "]");
        try {
            doLockPostRequest(action);
            pt.click("Asserted bridged lock");
        } catch (LockFailureException lfe) {
            throw lfe;
        } catch (Exception e) {
            throw new LockUncertainException(e);
        }
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.