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

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

本文整理了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

/**
 * {@inheritDoc}
 */
@Override
protected void activateLogging(LocalContainer container)
{
  getLogger().info("Jetty8x log configuration not implemented", this.getClass().getName());
}

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

/**
 * {@inheritDoc}
 */
@Override
protected void activateLogging(LocalContainer container)
{
  getLogger().info("Jetty6x log configuration not implemented", this.getClass().getName());
}

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

/**
 * {@inheritDoc}
 */
@Override
protected void activateLogging(LocalContainer container)
{
  getLogger().info("Jetty8x log configuration not implemented", this.getClass().getName());
}

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

/**
 * {@inheritDoc}
 */
@Override
protected void activateLogging(LocalContainer container)
{
  getLogger().info("Jetty7x log configuration not implemented", this.getClass().getName());
}

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

/**
 * {@inheritDoc}
 */
@Override
protected void activateLogging(LocalContainer container)
{
  getLogger().info("Jetty9x log configuration not implemented", this.getClass().getName());
}

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

/**
 * {@inheritDoc}
 */
@Override
protected void activateLogging(LocalContainer container)
{
  getLogger().info("Jetty9x log configuration not implemented", this.getClass().getName());
}

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

/**
 * {@inheritDoc}
 */
@Override
protected void activateLogging(LocalContainer container)
{
  getLogger().info("Jetty7x log configuration not implemented", this.getClass().getName());
}

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

/**
 * {@inheritDoc}
 */
@Override
protected void activateLogging(LocalContainer container)
{
  getLogger().info("Jetty6x log configuration not implemented", this.getClass().getName());
}

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

/**
   * {@inheritDoc}
   */
  @Override
  public void redeploy(Deployable deployable)
  {
    try
    {
      undeploy(deployable);
    }
    catch (Throwable t)
    {
      getLogger().info("The undeployment phase of the redeploy action has failed: "
        + t.toString(), this.getClass().getName());
    }

    deploy(deployable);
  }
}

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

/**
 * {@inheritDoc}
 */
@Override
public void restart()
{
  try
  {
    stop();
  }
  catch (Throwable t)
  {
    getLogger().info("The stop phase of the restart action has failed: " + t.toString(),
      this.getClass().getName());
  }
  start();
}

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

/**
 * Unpacks the zip file containing the container files.
 * @throws IOException If the ZIP file is broken
 */
private void unpack() throws IOException
{
  File targetDir = new File(getExtractDir());
  File sourceFile = new File(getDownloadDir(), getSourceFileName());
  getLogger().info(
    "Installing container [" + sourceFile + "] in [" + targetDir.getPath() + "]",
      getClass().getName());
  Expand expandTask = createExpandTask();
  expandTask.setSrc(sourceFile);
  expandTask.setDest(targetDir);
  expandTask.execute();
  if (!targetDir.isDirectory())
  {
    throw new IOException("The file [" + sourceFile + "] is broken");
  }
}

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

/**
 * Adds deployments on startup arg line. Only available in the Hollow Swarm mode.
 * */
protected void addDeployables()
{
  if (isHollowSwarm() && !getConfiguration().getDeployables().isEmpty())
  {
    getLogger().info("Deploying to Hollow Swarm.", getClass().getCanonicalName());
    for (Deployable deployable : getConfiguration().getDeployables())
    {
      swarmJvmLauncher.addAppArgument(new File(deployable.getFile()));
    }
  }
}

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

/**
 * {@inheritDoc}
 */
@Override
public void deploy(Deployable deployable)
{
  String file = deployable.getFile();
  getLogger().info("Deploying [" + file + "]", this.getClass().getName());
  try
  {
    getTomcatManager().deploy(getPath(deployable), getVersion(deployable),
      new FileInputStream(file), false, null);
  }
  catch (IOException|TomcatManagerException exception)
  {
    throw new ContainerException("Failed to deploy [" + file + "]", exception);
  }
}

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

/**
 * {@inheritDoc} deploys files by sending WLST script to WebLogic server.
 *
 * @see org.codehaus.cargo.container.spi.deployer.AbstractDeployer#deploy(org.codehaus.cargo.container.deployable.Deployable)
 */
@Override
public void deploy(Deployable deployable)
{
  WebLogicWlstConfiguration configuration =
    (WebLogicWlstConfiguration) weblogicContainer.getConfiguration();
  // script for deploying deployable to WebLogic using WLST
  List<ScriptCommand> configurationScript = new ArrayList<ScriptCommand>();
  configurationScript.add(configuration.getConfigurationFactory().readDomainOnlineScript());
  configurationScript.add(configuration.getConfigurationFactory().
      deployDeployableOnlineScript(deployable));
  configurationScript.add(configuration.getConfigurationFactory().
      updateDomainOnlineScript());
  getLogger().info("Deploying application " + deployable.getName()
      + " to WebLogic domain.", this.getClass().getName());
  weblogicContainer.executeScript(configurationScript);
}

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

/**
 * {@inheritDoc}
 */
@Override
public void deploy(Deployable deployable)
{
  String file = deployable.getFile();
  getLogger().info("Deploying [" + file + "]", this.getClass().getName());
  try
  {
    getTomcatManager().deploy(getPath(deployable), getVersion(deployable),
      new FileInputStream(file), false, null);
  }
  catch (IOException|TomcatManagerException exception)
  {
    throw new ContainerException("Failed to deploy [" + file + "]", exception);
  }
}

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

/**
   * {@inheritDoc} undeploys files by sending WLST script to WebLogic server.
   *
   * @see org.codehaus.cargo.container.spi.deployer.AbstractDeployer#undeploy(org.codehaus.cargo.container.deployable.Deployable)
   */
  @Override
  public void undeploy(Deployable deployable)
  {
    WebLogicWlstConfiguration configuration =
      (WebLogicWlstConfiguration) weblogicContainer.getConfiguration();

    List<ScriptCommand> configurationScript = new ArrayList<ScriptCommand>();

    configurationScript.add(configuration.getConfigurationFactory().readDomainOnlineScript());
    configurationScript.add(configuration.getConfigurationFactory().
        undeployDeployableOnlineScript(deployable));
    configurationScript.add(configuration.getConfigurationFactory().
        updateDomainOnlineScript());

    getLogger().info("Undeploying application " + deployable.getName()
      + " from WebLogic domain.", this.getClass().getName());
    weblogicContainer.executeScript(configurationScript);
  }
}

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

/**
   * {@inheritDoc} undeploys files by sending WLST script to WebLogic server.
   *
   * @see org.codehaus.cargo.container.spi.deployer.AbstractDeployer#undeploy(org.codehaus.cargo.container.deployable.Deployable)
   */
  @Override
  public void undeploy(Deployable deployable)
  {
    WebLogicWlstConfiguration configuration =
      (WebLogicWlstConfiguration) weblogicContainer.getConfiguration();

    List<ScriptCommand> configurationScript = new ArrayList<ScriptCommand>();

    configurationScript.add(configuration.getConfigurationFactory().readDomainOnlineScript());
    configurationScript.add(configuration.getConfigurationFactory().
        undeployDeployableOnlineScript(deployable));
    configurationScript.add(configuration.getConfigurationFactory().
        updateDomainOnlineScript());

    getLogger().info("Undeploying application " + deployable.getName()
      + " from WebLogic domain.", this.getClass().getName());
    weblogicContainer.executeScript(configurationScript);
  }
}

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

@Override
  public void run()
  {
    try
    {
      if (container != null && (org.codehaus.cargo.container.State.STARTED == container.getState() || org.codehaus.cargo.container.State.STARTING == container.getState()))
      {
        log.info("Stopping container...","");
        container.stop();
      }
    }
    catch (Exception e)
    {
      log.warn("Failed stopping the container", "");
    }
  }
});

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

/**
 * {@inheritDoc}
 */
@Override
protected void setUp() throws Exception
{
  getLogger().info("Starting test [" + getName() + "]", this.getClass().getName());
  // Set up the thread context classloader for embedded containers. We're doing this here
  // instead of in the constructor as this needs to be set for each single test as otherwise
  // the different embedded containers will conflict with each other.
  if (getTestData().containerType == ContainerType.EMBEDDED)
  {
    EmbeddedContainerClasspathResolver resolver = new EmbeddedContainerClasspathResolver();
    this.classLoader =
      resolver.resolveDependencies(testData.containerId, installContainer());
    if (this.classLoader != null)
    {
      Thread.currentThread().setContextClassLoader(this.classLoader);
    }
  }
}

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

/**
 * {@inheritDoc}. For JBoss container the target is the <code>deployments</code> directory.
 */
@Override
public String getDeployableDir(Deployable deployable)
{
  String altDeployDir = getContainer().getConfiguration().
  getPropertyValue(JBossPropertySet.ALTERNATIVE_DEPLOYMENT_DIR);
  if (altDeployDir != null && !"".equals(altDeployDir))
  {
    getContainer().getLogger().info("Using non-default deployment target directory "
      + altDeployDir, this.getClass().getName());
    return getFileHandler().append(getContainer().getConfiguration().getHome(),
      altDeployDir);
  }
  else
  {
    return getFileHandler().append(getContainer().
      getConfiguration().getHome(), "deployments");
  }
}

相关文章

微信公众号

最新文章

更多