org.codehaus.cargo.util.log.Logger.info()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(9.3k)|赞(0)|评价(0)|浏览(179)

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

Logger.info介绍

[英]Logger informational messages.
[中]记录器信息消息。

代码示例

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-jetty

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void activateLogging(LocalContainer container)
  6. {
  7. getLogger().info("Jetty8x log configuration not implemented", this.getClass().getName());
  8. }

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-jetty

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void activateLogging(LocalContainer container)
  6. {
  7. getLogger().info("Jetty6x log configuration not implemented", this.getClass().getName());
  8. }

代码示例来源:origin: codehaus-cargo/cargo

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void activateLogging(LocalContainer container)
  6. {
  7. getLogger().info("Jetty8x log configuration not implemented", this.getClass().getName());
  8. }

代码示例来源:origin: codehaus-cargo/cargo

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void activateLogging(LocalContainer container)
  6. {
  7. getLogger().info("Jetty7x log configuration not implemented", this.getClass().getName());
  8. }

代码示例来源:origin: codehaus-cargo/cargo

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void activateLogging(LocalContainer container)
  6. {
  7. getLogger().info("Jetty9x log configuration not implemented", this.getClass().getName());
  8. }

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-jetty

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void activateLogging(LocalContainer container)
  6. {
  7. getLogger().info("Jetty9x log configuration not implemented", this.getClass().getName());
  8. }

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-jetty

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void activateLogging(LocalContainer container)
  6. {
  7. getLogger().info("Jetty7x log configuration not implemented", this.getClass().getName());
  8. }

代码示例来源:origin: codehaus-cargo/cargo

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void activateLogging(LocalContainer container)
  6. {
  7. getLogger().info("Jetty6x log configuration not implemented", this.getClass().getName());
  8. }

代码示例来源:origin: codehaus-cargo/cargo

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public void redeploy(Deployable deployable)
  6. {
  7. try
  8. {
  9. undeploy(deployable);
  10. }
  11. catch (Throwable t)
  12. {
  13. getLogger().info("The undeployment phase of the redeploy action has failed: "
  14. + t.toString(), this.getClass().getName());
  15. }
  16. deploy(deployable);
  17. }
  18. }

代码示例来源:origin: codehaus-cargo/cargo

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public void restart()
  6. {
  7. try
  8. {
  9. stop();
  10. }
  11. catch (Throwable t)
  12. {
  13. getLogger().info("The stop phase of the restart action has failed: " + t.toString(),
  14. this.getClass().getName());
  15. }
  16. start();
  17. }

代码示例来源:origin: codehaus-cargo/cargo

  1. /**
  2. * Unpacks the zip file containing the container files.
  3. * @throws IOException If the ZIP file is broken
  4. */
  5. private void unpack() throws IOException
  6. {
  7. File targetDir = new File(getExtractDir());
  8. File sourceFile = new File(getDownloadDir(), getSourceFileName());
  9. getLogger().info(
  10. "Installing container [" + sourceFile + "] in [" + targetDir.getPath() + "]",
  11. getClass().getName());
  12. Expand expandTask = createExpandTask();
  13. expandTask.setSrc(sourceFile);
  14. expandTask.setDest(targetDir);
  15. expandTask.execute();
  16. if (!targetDir.isDirectory())
  17. {
  18. throw new IOException("The file [" + sourceFile + "] is broken");
  19. }
  20. }

代码示例来源:origin: codehaus-cargo/cargo

  1. /**
  2. * Adds deployments on startup arg line. Only available in the Hollow Swarm mode.
  3. * */
  4. protected void addDeployables()
  5. {
  6. if (isHollowSwarm() && !getConfiguration().getDeployables().isEmpty())
  7. {
  8. getLogger().info("Deploying to Hollow Swarm.", getClass().getCanonicalName());
  9. for (Deployable deployable : getConfiguration().getDeployables())
  10. {
  11. swarmJvmLauncher.addAppArgument(new File(deployable.getFile()));
  12. }
  13. }
  14. }

代码示例来源:origin: codehaus-cargo/cargo

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public void deploy(Deployable deployable)
  6. {
  7. String file = deployable.getFile();
  8. getLogger().info("Deploying [" + file + "]", this.getClass().getName());
  9. try
  10. {
  11. getTomcatManager().deploy(getPath(deployable), getVersion(deployable),
  12. new FileInputStream(file), false, null);
  13. }
  14. catch (IOException|TomcatManagerException exception)
  15. {
  16. throw new ContainerException("Failed to deploy [" + file + "]", exception);
  17. }
  18. }

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-weblogic

  1. /**
  2. * {@inheritDoc} deploys files by sending WLST script to WebLogic server.
  3. *
  4. * @see org.codehaus.cargo.container.spi.deployer.AbstractDeployer#deploy(org.codehaus.cargo.container.deployable.Deployable)
  5. */
  6. @Override
  7. public void deploy(Deployable deployable)
  8. {
  9. WebLogicWlstConfiguration configuration =
  10. (WebLogicWlstConfiguration) weblogicContainer.getConfiguration();
  11. // script for deploying deployable to WebLogic using WLST
  12. List<ScriptCommand> configurationScript = new ArrayList<ScriptCommand>();
  13. configurationScript.add(configuration.getConfigurationFactory().readDomainOnlineScript());
  14. configurationScript.add(configuration.getConfigurationFactory().
  15. deployDeployableOnlineScript(deployable));
  16. configurationScript.add(configuration.getConfigurationFactory().
  17. updateDomainOnlineScript());
  18. getLogger().info("Deploying application " + deployable.getName()
  19. + " to WebLogic domain.", this.getClass().getName());
  20. weblogicContainer.executeScript(configurationScript);
  21. }

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-tomcat

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public void deploy(Deployable deployable)
  6. {
  7. String file = deployable.getFile();
  8. getLogger().info("Deploying [" + file + "]", this.getClass().getName());
  9. try
  10. {
  11. getTomcatManager().deploy(getPath(deployable), getVersion(deployable),
  12. new FileInputStream(file), false, null);
  13. }
  14. catch (IOException|TomcatManagerException exception)
  15. {
  16. throw new ContainerException("Failed to deploy [" + file + "]", exception);
  17. }
  18. }

代码示例来源:origin: codehaus-cargo/cargo

  1. /**
  2. * {@inheritDoc} undeploys files by sending WLST script to WebLogic server.
  3. *
  4. * @see org.codehaus.cargo.container.spi.deployer.AbstractDeployer#undeploy(org.codehaus.cargo.container.deployable.Deployable)
  5. */
  6. @Override
  7. public void undeploy(Deployable deployable)
  8. {
  9. WebLogicWlstConfiguration configuration =
  10. (WebLogicWlstConfiguration) weblogicContainer.getConfiguration();
  11. List<ScriptCommand> configurationScript = new ArrayList<ScriptCommand>();
  12. configurationScript.add(configuration.getConfigurationFactory().readDomainOnlineScript());
  13. configurationScript.add(configuration.getConfigurationFactory().
  14. undeployDeployableOnlineScript(deployable));
  15. configurationScript.add(configuration.getConfigurationFactory().
  16. updateDomainOnlineScript());
  17. getLogger().info("Undeploying application " + deployable.getName()
  18. + " from WebLogic domain.", this.getClass().getName());
  19. weblogicContainer.executeScript(configurationScript);
  20. }
  21. }

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-weblogic

  1. /**
  2. * {@inheritDoc} undeploys files by sending WLST script to WebLogic server.
  3. *
  4. * @see org.codehaus.cargo.container.spi.deployer.AbstractDeployer#undeploy(org.codehaus.cargo.container.deployable.Deployable)
  5. */
  6. @Override
  7. public void undeploy(Deployable deployable)
  8. {
  9. WebLogicWlstConfiguration configuration =
  10. (WebLogicWlstConfiguration) weblogicContainer.getConfiguration();
  11. List<ScriptCommand> configurationScript = new ArrayList<ScriptCommand>();
  12. configurationScript.add(configuration.getConfigurationFactory().readDomainOnlineScript());
  13. configurationScript.add(configuration.getConfigurationFactory().
  14. undeployDeployableOnlineScript(deployable));
  15. configurationScript.add(configuration.getConfigurationFactory().
  16. updateDomainOnlineScript());
  17. getLogger().info("Undeploying application " + deployable.getName()
  18. + " from WebLogic domain.", this.getClass().getName());
  19. weblogicContainer.executeScript(configurationScript);
  20. }
  21. }

代码示例来源:origin: com.atlassian.sdk/ap3-api

  1. @Override
  2. public void run()
  3. {
  4. try
  5. {
  6. if (container != null && (org.codehaus.cargo.container.State.STARTED == container.getState() || org.codehaus.cargo.container.State.STARTING == container.getState()))
  7. {
  8. log.info("Stopping container...","");
  9. container.stop();
  10. }
  11. }
  12. catch (Exception e)
  13. {
  14. log.warn("Failed stopping the container", "");
  15. }
  16. }
  17. });

代码示例来源:origin: codehaus-cargo/cargo

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void setUp() throws Exception
  6. {
  7. getLogger().info("Starting test [" + getName() + "]", this.getClass().getName());
  8. // Set up the thread context classloader for embedded containers. We're doing this here
  9. // instead of in the constructor as this needs to be set for each single test as otherwise
  10. // the different embedded containers will conflict with each other.
  11. if (getTestData().containerType == ContainerType.EMBEDDED)
  12. {
  13. EmbeddedContainerClasspathResolver resolver = new EmbeddedContainerClasspathResolver();
  14. this.classLoader =
  15. resolver.resolveDependencies(testData.containerId, installContainer());
  16. if (this.classLoader != null)
  17. {
  18. Thread.currentThread().setContextClassLoader(this.classLoader);
  19. }
  20. }
  21. }

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-jboss

  1. /**
  2. * {@inheritDoc}. For JBoss container the target is the <code>deployments</code> directory.
  3. */
  4. @Override
  5. public String getDeployableDir(Deployable deployable)
  6. {
  7. String altDeployDir = getContainer().getConfiguration().
  8. getPropertyValue(JBossPropertySet.ALTERNATIVE_DEPLOYMENT_DIR);
  9. if (altDeployDir != null && !"".equals(altDeployDir))
  10. {
  11. getContainer().getLogger().info("Using non-default deployment target directory "
  12. + altDeployDir, this.getClass().getName());
  13. return getFileHandler().append(getContainer().getConfiguration().getHome(),
  14. altDeployDir);
  15. }
  16. else
  17. {
  18. return getFileHandler().append(getContainer().
  19. getConfiguration().getHome(), "deployments");
  20. }
  21. }

相关文章