com.enioka.jqm.model.Node.getTmpDirectory()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(244)

本文整理了Java中com.enioka.jqm.model.Node.getTmpDirectory()方法的一些代码示例,展示了Node.getTmpDirectory()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getTmpDirectory()方法的具体详情如下:
包路径:com.enioka.jqm.model.Node
类名称:Node
方法名:getTmpDirectory

Node.getTmpDirectory介绍

[英]The root directory inside which temporary files will be created (see JobManager.getWorkDir).
[中]将在其中创建临时文件的根目录(请参阅JobManager.getWorkDir)。

代码示例

代码示例来源:origin: com.enioka.jqm/jqm-engine

  1. @Override
  2. public File getWorkDir()
  3. {
  4. File f = new File(FilenameUtils.concat(ji.getNode().getTmpDirectory(), Integer.toString(this.ji.getId())));
  5. if (!f.isDirectory())
  6. {
  7. try
  8. {
  9. FileUtils.forceMkdir(f);
  10. }
  11. catch (Exception e)
  12. {
  13. throw new JqmRuntimeException("Could not create work directory", e);
  14. }
  15. }
  16. return f;
  17. }

代码示例来源:origin: enioka/jqm

  1. @Override
  2. public File getWorkDir()
  3. {
  4. File f = new File(FilenameUtils.concat(ji.getNode().getTmpDirectory(), Integer.toString(this.ji.getId())));
  5. if (!f.isDirectory())
  6. {
  7. try
  8. {
  9. FileUtils.forceMkdir(f);
  10. }
  11. catch (Exception e)
  12. {
  13. throw new JqmRuntimeException("Could not create work directory", e);
  14. }
  15. }
  16. return f;
  17. }

代码示例来源:origin: com.enioka.jqm/jqm-engine

  1. jqmlogger.info("\tlooks for payloads inside: " + n.getRepo());
  2. jqmlogger.info("\tlog level: " + n.getRootLogLevel());
  3. jqmlogger.info("\ttemp files will be created inside: " + n.getTmpDirectory());
  4. jqmlogger.info("\tJMX registry port: " + n.getJmxRegistryPort());
  5. jqmlogger.info("\tJMX server port: " + n.getJmxServerPort());

代码示例来源:origin: enioka/jqm

  1. jqmlogger.info("\tlooks for payloads inside: " + n.getRepo());
  2. jqmlogger.info("\tlog level: " + n.getRootLogLevel());
  3. jqmlogger.info("\ttemp files will be created inside: " + n.getTmpDirectory());
  4. jqmlogger.info("\tJMX registry port: " + n.getJmxRegistryPort());
  5. jqmlogger.info("\tJMX server port: " + n.getJmxServerPort());

代码示例来源:origin: com.enioka.jqm/jqm-engine

  1. File tmpDir = new File(FilenameUtils.concat(this.ji.getNode().getTmpDirectory(), "" + this.ji.getId()));
  2. if (tmpDir.isDirectory())

代码示例来源:origin: enioka/jqm

  1. File tmpDir = new File(FilenameUtils.concat(this.ji.getNode().getTmpDirectory(), "" + this.ji.getId()));
  2. if (tmpDir.isDirectory())

代码示例来源:origin: enioka/jqm

  1. /**
  2. * Temp dir should be removed after run
  3. */
  4. @Test
  5. public void testTempDir() throws Exception
  6. {
  7. int i = JqmSimpleTest.create(cnx, "pyl.EngineApiTmpDir").run(this);
  8. File tmpDir = new File(FilenameUtils.concat(TestHelpers.node.getTmpDirectory(), "" + i));
  9. Assert.assertFalse(tmpDir.isDirectory());
  10. }

代码示例来源:origin: com.enioka.jqm/jqm-engine

  1. if (!StringUtils.hasText(nn.getDlRepo()) || !StringUtils.hasText(nn.getRepo()) || !StringUtils.hasText(nn.getTmpDirectory()))

代码示例来源:origin: enioka/jqm

  1. if (!StringUtils.hasText(nn.getDlRepo()) || !StringUtils.hasText(nn.getRepo()) || !StringUtils.hasText(nn.getTmpDirectory()))

相关文章