Examples of generateFileName()


Examples of com.linkedin.camus.etl.kafka.partitioner.DefaultPartitioner.generateFileName()

        String actualResult = testPartitioner.generatePartitionedPath(testJob, "testTopic", "1406777693000");
        String expectedResult = "testTopic/hourly/2014/07/30/20";
       
        assertTrue(actualResult.equals(expectedResult));
       
        actualResult = testPartitioner.generateFileName(testJob, "testTopic", "testBrokerId", 123, 100, 500, "1406777693000");
        expectedResult = "testTopic.testBrokerId.123.100.500.1406777693000";
       
        assertTrue(actualResult.equals(expectedResult));
    }
View Full Code Here

Examples of com.zycus.dotproject.bo.BOFile.generateFileName()

    BOFile newTaskFile = fe.getFile();
    File realFile = fe.getRealFile();
    newTaskFile.setTaskID(taskFile.getTaskID());

    newTaskFile.setProject((BOProject) lstProjects.getSelectedValue());
    newTaskFile.setFileName(newTaskFile.generateFileName());
    newTaskFile.setFileVersion(taskFile.getFileVersion() + 1);
    newTaskFile.setFileDate(new Date());
    try {
      fileManager.checkInFile(taskFile, newTaskFile, realFile, ApplicationContext.getCurrentUser());
      fileTableModel.updateFileList(fileManager.getAllFile((BOProject) lstProjects.getSelectedValue(), ApplicationContext.getCurrentUser()));
View Full Code Here

Examples of com.zycus.dotproject.bo.BOFile.generateFileName()

    }
    BOFile file = fe.getFile();
    File f = fe.getRealFile();

    file.setProject((BOProject) lstProjects.getSelectedValue());
    file.setFileName(file.generateFileName());
    try {
      fileManager.addFile(file, f);
      fileTableModel.updateFileList(fileManager.getAllFile((BOProject) lstProjects.getSelectedValue(), ApplicationContext.getCurrentUser()));
    } catch (Throwable a_th) {
      a_th.printStackTrace();
View Full Code Here

Examples of com.zycus.dotproject.bo.BOFile.generateFileName()

    BOFile newTaskFile = fe.getFile();
    File realFile = fe.getRealFile();
    newTaskFile.setTaskID(taskFile.getTaskID());

    newTaskFile.setProject((BOProject) lstProjects.getSelectedValue());
    newTaskFile.setFileName(newTaskFile.generateFileName());
    newTaskFile.setFileVersion(taskFile.getFileVersion() + 1);
    newTaskFile.setFileDate(new Date());
    try {
      fileManager.checkInFile(taskFile, newTaskFile, realFile, ApplicationContext.getCurrentUser());
      fileTableModel.updateFileList(fileManager.getAllFile((BOProject) lstProjects.getSelectedValue(), ApplicationContext.getCurrentUser()));
View Full Code Here

Examples of com.zycus.dotproject.bo.BOFile.generateFileName()

    }
    BOFile file = fe.getFile();
    File f = fe.getRealFile();

    file.setProject((BOProject) lstProjects.getSelectedValue());
    file.setFileName(file.generateFileName());
    try {
      fileManager.addFile(file, f);
      fileTableModel.updateFileList(fileManager.getAllFile((BOProject) lstProjects.getSelectedValue(), ApplicationContext.getCurrentUser()));
    } catch (Throwable a_th) {
      a_th.printStackTrace();
View Full Code Here

Examples of com.zycus.dotproject.bo.BOFile.generateFileName()

    }
    BOFile file = fe.getFile();
    File f = fe.getRealFile();
    file.setTaskID(task.getTaskID());
    file.setProject(task.getProject());
    file.setFileName(file.generateFileName());
    try {
      fileManager.addFile(file, f);
      fileTableModel.updateFileList(fileManager.getFiles(task.getTaskID(), ApplicationContext.getCurrentUser()));
    } catch (Throwable a_th) {
      a_th.printStackTrace();
View Full Code Here

Examples of com.zycus.dotproject.bo.BOFile.generateFileName()

    }
    BOFile file = fe.getFile();
    File f = fe.getRealFile();
    file.setTaskID(task.getTaskID());
    file.setProject(task.getProject());
    file.setFileName(file.generateFileName());
    try {
      fileManager.addFile(file, f);
      fileTableModel.updateFileList(fileManager.getFiles(task.getTaskID(), ApplicationContext.getCurrentUser()));
    } catch (Throwable a_th) {
      a_th.printStackTrace();
View Full Code Here

Examples of com.zycus.dotproject.bo.BOFile.generateFileName()

    BOFile newTaskFile = fe.getFile();
    File realFile = fe.getRealFile();

    newTaskFile.setTaskID(task.getTaskID());
    newTaskFile.setProject(task.getProject());
    newTaskFile.setFileName(newTaskFile.generateFileName());
    newTaskFile.setFileVersion(taskFile.getFileVersion() + 1);
    newTaskFile.setFileDate(new Date());
    try {
      fileManager.checkInFile(taskFile, newTaskFile, realFile, ApplicationContext.getCurrentUser());
      fileTableModel.updateFileList(fileManager.getFiles(task.getTaskID(), ApplicationContext.getCurrentUser()));
View Full Code Here

Examples of org.openstreetmap.osmosis.replication.v0_6.impl.ChangesetFileNameFormatter.generateFileName()

     
      // Calculate the end of the next time interval.
      nextTime = new Date(currentTime.getTime() + configuration.getIntervalLength());
     
      // Generate the filename to be retrieved from the server.
      downloadFileName = fileNameFormatter.generateFileName(currentTime, nextTime);
     
      // Download the changeset from the server.
      tmpFileList.add(downloadChangesetFile(downloadFileName, baseUrl));
     
      // Move the current time to the next interval.
View Full Code Here

Examples of org.pdfsam.console.utils.perfix.PrefixParser.generateFileName()

            pdfStamper.setMoreInfo(meta);
            pdfStamper.setEncryption(encType, inputCommand.getUserPwd(), inputCommand.getOwnerPwd(), inputCommand.getPermissions());
            pdfStamper.close();
            pdfReader.close();
            File outFile = new File(inputCommand.getOutputFile(), prefixParser.generateFileName());
            FileUtility.renameTemporaryFile(tmpFile, outFile, inputCommand.isOverwrite());
            LOG.debug("Encrypted file " + outFile.getCanonicalPath() + " created.");
            setPercentageOfWorkDone(((i + 1) * WorkDoneDataModel.MAX_PERGENTAGE) / fileList.length);
          } catch (Exception e) {
            LOG.error("Error encrypting file " + fileList[i].getFile().getName(), 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.