• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java RepositoryEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.sonatype.aether.RepositoryEvent的典型用法代码示例。如果您正苦于以下问题:Java RepositoryEvent类的具体用法?Java RepositoryEvent怎么用?Java RepositoryEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



RepositoryEvent类属于org.sonatype.aether包,在下文中一共展示了RepositoryEvent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: metadataResolved

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void metadataResolved( RepositoryEvent event )
{
    Exception e = event.getException();
    if ( e != null )
    {
        if ( e instanceof MetadataNotFoundException )
        {
            logger.debug( e.getMessage() );
        }
        else if ( logger.isDebugEnabled() )
        {
            logger.warn( e.getMessage(), e );
        }
        else
        {
            logger.warn( e.getMessage() );
        }
    }
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:21,代码来源:LoggingRepositoryListener.java


示例2: artifactDescriptorInvalid

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void artifactDescriptorInvalid( RepositoryEvent event )
{
    StringBuilder buffer = new StringBuilder( 256 );
    buffer.append( "The POM for " );
    buffer.append( event.getArtifact() );
    buffer.append( " is invalid, transitive dependencies (if any) will not be available" );

    if ( logger.isDebugEnabled() )
    {
        logger.warn( buffer + ": " + event.getException().getMessage() );
    }
    else
    {
        logger.warn( buffer + ", enable debug logging for more details" );
    }
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:18,代码来源:LoggingRepositoryListener.java


示例3: artifactDownloading

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * @param event {@inheritDoc}
 */
@Override
public void artifactDownloading(RepositoryEvent event) {
  super.artifactDownloading(event);
  Artifact artifact = event.getArtifact();
  String key = artifactAsString(artifact);
  startTimes.put(key, System.nanoTime());
}
 
开发者ID:zulily,项目名称:dropship,代码行数:12,代码来源:LoggingRepositoryListener.java


示例4: artifactDownloaded

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * @param event {@inheritDoc}
 */
@Override
public void artifactDownloaded(RepositoryEvent event) {
  super.artifactDownloaded(event);
  Artifact artifact = event.getArtifact();
  String key = artifactAsString(artifact);
  long downloadTimeNanos = System.nanoTime() - startTimes.remove(key);
  double downloadTimeMs = TimeUnit.NANOSECONDS.toMillis(downloadTimeNanos);
  long size = artifact.getFile().length();
  double sizeKb = (1D / 1024D) * size;
  double downloadRateKBytesPerMs = sizeKb / downloadTimeMs;
  logger.info("Downloaded %s (%d bytes) in %gms (%g KBytes/sec)", key, size, downloadTimeMs, downloadRateKBytesPerMs * 1000);
}
 
开发者ID:zulily,项目名称:dropship,代码行数:17,代码来源:LoggingRepositoryListener.java


示例5: metadataInvalid

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void metadataInvalid( RepositoryEvent event )
{
    Exception exception = event.getException();

    StringBuilder buffer = new StringBuilder( 256 );
    buffer.append( "The metadata " );
    if ( event.getMetadata().getFile() != null )
    {
        buffer.append( event.getMetadata().getFile() );
    }
    else
    {
        buffer.append( event.getMetadata() );
    }

    if ( exception instanceof FileNotFoundException )
    {
        buffer.append( " is inaccessible" );
    }
    else
    {
        buffer.append( " is invalid" );
    }

    if ( exception != null )
    {
        buffer.append( ": " );
        buffer.append( exception.getMessage() );
    }

    if ( logger.isDebugEnabled() )
    {
        logger.warn( buffer.toString(), exception );
    }
    else
    {
        logger.warn( buffer.toString() );
    }
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:41,代码来源:LoggingRepositoryListener.java


示例6: artifactDeployed

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void artifactDeployed(RepositoryEvent event) {
  logger.info("Deployed " + event.getArtifact() + " to " + event.getRepository());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例7: artifactDeploying

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void artifactDeploying(RepositoryEvent event) {
  logger.info("Deploying " + event.getArtifact() + " to " + event.getRepository());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例8: artifactDescriptorInvalid

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void artifactDescriptorInvalid(RepositoryEvent event) {
  logger.info("Invalid artifact descriptor for " + event.getArtifact() + ": "
                                                 + event.getException().getMessage());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:6,代码来源:RepositoryListener.java


示例9: artifactDescriptorMissing

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void artifactDescriptorMissing(RepositoryEvent event) {
  logger.info("Missing artifact descriptor for " + event.getArtifact());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例10: artifactInstalled

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void artifactInstalled(RepositoryEvent event) {
  logger.info("Installed " + event.getArtifact() + " to " + event.getFile());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例11: artifactInstalling

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void artifactInstalling(RepositoryEvent event) {
  logger.info("Installing " + event.getArtifact() + " to " + event.getFile());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例12: artifactResolved

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void artifactResolved(RepositoryEvent event) {
  logger.info("Resolved artifact " + event.getArtifact() + " from " + event.getRepository());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例13: artifactDownloading

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void artifactDownloading(RepositoryEvent event) {
  logger.info("Downloading artifact " + event.getArtifact() + " from " + event.getRepository());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例14: artifactDownloaded

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void artifactDownloaded(RepositoryEvent event) {
  logger.info("Downloaded artifact " + event.getArtifact() + " from " + event.getRepository());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例15: artifactResolving

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void artifactResolving(RepositoryEvent event) {
  logger.info("Resolving artifact " + event.getArtifact());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例16: metadataDeployed

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void metadataDeployed(RepositoryEvent event) {
  logger.info("Deployed " + event.getMetadata() + " to " + event.getRepository());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例17: metadataDeploying

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void metadataDeploying(RepositoryEvent event) {
  logger.info("Deploying " + event.getMetadata() + " to " + event.getRepository());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例18: metadataInstalled

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void metadataInstalled(RepositoryEvent event) {
  logger.info("Installed " + event.getMetadata() + " to " + event.getFile());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例19: metadataInstalling

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void metadataInstalling(RepositoryEvent event) {
  logger.info("Installing " + event.getMetadata() + " to " + event.getFile());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java


示例20: metadataInvalid

import org.sonatype.aether.RepositoryEvent; //导入依赖的package包/类
@Override
public void metadataInvalid(RepositoryEvent event) {
  logger.info("Invalid metadata " + event.getMetadata());
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:5,代码来源:RepositoryListener.java



注:本文中的org.sonatype.aether.RepositoryEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Item类代码示例发布时间:2022-05-22
下一篇:
Java DeletionService类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap