Examples of updateProgress()


Examples of net.sf.jftp.net.ConnectionListener.updateProgress()

                                            DataConnection.PUTDIR + ":" +
                                            fileCount, bytes);
                }
                else
                {
                    listener.updateProgress(baseFile,
                                            DataConnection.GETDIR + ":" +
                                            fileCount, bytes);
                }
            }
            else
View Full Code Here

Examples of net.sf.jftp.net.ConnectionListener.updateProgress()

                                            fileCount, bytes);
                }
            }
            else
            {
                listener.updateProgress(file, type, bytes);
            }
        }
    }

    public void fireActionFinished(SftpConnection con)
View Full Code Here

Examples of org.apache.cassandra.streaming.SessionInfo.updateProgress()

                return ProgressInfoCompositeData.fromCompositeData(input);
            }
        };
        for (ProgressInfo progress : fromArrayOfCompositeData((CompositeData[]) values[5], toProgressInfo))
        {
            info.updateProgress(progress);
        }
        for (ProgressInfo progress : fromArrayOfCompositeData((CompositeData[]) values[6], toProgressInfo))
        {
            info.updateProgress(progress);
        }
View Full Code Here

Examples of org.apache.cassandra.streaming.SessionInfo.updateProgress()

        {
            info.updateProgress(progress);
        }
        for (ProgressInfo progress : fromArrayOfCompositeData((CompositeData[]) values[6], toProgressInfo))
        {
            info.updateProgress(progress);
        }
        return info;
    }

    private static <T> Collection<T> fromArrayOfCompositeData(CompositeData[] cds, Function<CompositeData, T> func)
View Full Code Here

Examples of org.apache.cassandra.streaming.SessionInfo.updateProgress()

                return ProgressInfoCompositeData.fromCompositeData(input);
            }
        };
        for (ProgressInfo progress : fromArrayOfCompositeData((CompositeData[]) values[6], toProgressInfo))
        {
            info.updateProgress(progress);
        }
        for (ProgressInfo progress : fromArrayOfCompositeData((CompositeData[]) values[7], toProgressInfo))
        {
            info.updateProgress(progress);
        }
View Full Code Here

Examples of org.apache.flex.utilities.converter.retrievers.utils.ProgressBar.updateProgress()

                System.out.println("Expected size: " + (expectedSize / 1024 ) + "KB");
            }
            final ProgressBar progressBar = new ProgressBar(expectedSize);
            while (transferedSize < expectedSize) {
                transferedSize += fos.getChannel().transferFrom(rbc, transferedSize, 1 << 20);
                progressBar.updateProgress(transferedSize);
            }
            fos.close();
            System.out.println();
            System.out.println("Finished downloading.");
            System.out.println("===========================================================");
View Full Code Here

Examples of org.apache.flex.utilities.converter.retrievers.utils.ProgressBar.updateProgress()

                        dest = new BufferedOutputStream(fos, BUFFER_MAX);

                        int count;
                        while ((count = archiveInputStream.read(data, 0, BUFFER_MAX)) != -1) {
                            dest.write(data, 0, count);
                            progressBar.updateProgress(inputStream.getBytesRead());
                        }
                    } finally {
                        if(dest != null) {
                            dest.flush();
                            dest.close();
View Full Code Here

Examples of org.apache.flex.utilities.converter.retrievers.utils.ProgressBar.updateProgress()

                            dest.close();
                        }
                    }
                }

                progressBar.updateProgress(inputStream.getBytesRead());
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.task.Task.updateProgress()

             
              if (StandardWatchEventKinds.ENTRY_CREATE.equals(event.kind())) {
                if (file.isDirectory()) {
                  //recursive registration of sub-directories
                  register(Paths.get(dir.toString(), item.toString()), watcher, StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE);
                  task.updateProgress(++count);
                } else {
                  URI context = getTargetContext(file);
                  log.debug("Importing '{}'...", file.getAbsolutePath());
                  task.updateMessage("importing...");
                  task.updateDetailMessage(TASK_DETAIL_PATH, file.getAbsolutePath());
View Full Code Here

Examples of org.jets3t.gui.ProgressPanel.updateProgress()

        final ProgressPanel progressPanel = (ProgressPanel) progressPanelMap.get(operationId);
       
        if (progressPanel != null) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    progressPanel.updateProgress(statusMessage, currentCount);                   
                }
             });
        }
    }
   
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.