Permalink
Browse files

NEXUS-5639: Rename thread names

From "wl" to "ar" as Auto routing...
  • Loading branch information...
cstamas committed Mar 28, 2013
1 parent 5802609 commit 14c8f20cc52a02a696234bac1b3e1c81582333fd
@@ -158,7 +158,7 @@ public ManagerImpl( final EventBus eventBus, final ApplicationStatusSource appli
this.remoteContentDiscoverer = checkNotNull( remoteContentDiscoverer );
this.quickRemoteStrategy = checkNotNull( quickRemoteStrategy );
this.executor =
- new ScheduledThreadPoolExecutor( 5, new NexusThreadFactory( "wl", "WL-Updater" ),
+ new ScheduledThreadPoolExecutor( 5, new NexusThreadFactory( "ar", "AR-Updater" ),
new ThreadPoolExecutor.AbortPolicy() );
this.constrainedExecutor = new ConstrainedExecutorImpl( executor );
// register event dispatcher
@@ -24,7 +24,7 @@
import com.google.common.base.Throwables;
/**
- * Job that performs WL update and publishing of one single {@link MavenRepository}.
+ * Job that performs prefix file updates and publishing of one single {@link MavenRepository}.
*
* @author cstamas
* @since 2.4
@@ -34,7 +34,7 @@
{
private final ApplicationStatusSource applicationStatusSource;
- private final ManagerImpl wlManager;
+ private final ManagerImpl manager;
private final MavenRepository mavenRepository;
@@ -43,16 +43,16 @@
*
* @param progressListener
* @param applicationStatusSource
- * @param wlManager
+ * @param manager
* @param mavenRepository
*/
public UpdateRepositoryRunnable( final ProgressListener progressListener,
final ApplicationStatusSource applicationStatusSource,
- final ManagerImpl wlManager, final MavenRepository mavenRepository )
+ final ManagerImpl manager, final MavenRepository mavenRepository )
{
- super( progressListener, mavenRepository.getId() + " WL-updater" );
+ super( progressListener, mavenRepository.getId() + " AR-Updater" );
this.applicationStatusSource = checkNotNull( applicationStatusSource );
- this.wlManager = checkNotNull( wlManager );
+ this.manager = checkNotNull( manager );
this.mavenRepository = checkNotNull( mavenRepository );
}
@@ -61,18 +61,18 @@ protected void doRun()
{
if ( !applicationStatusSource.getSystemStatus().isNexusStarted() )
{
- getLogger().warn( "Nexus stopped during background WL updates, bailing out." );
+ getLogger().warn( "Nexus stopped during background prefix file updates, bailing out." );
return;
}
try
{
- wlManager.updateAndPublishPrefixFile( mavenRepository, true );
+ manager.updateAndPublishPrefixFile( mavenRepository, true );
}
catch ( Exception e )
{
try
{
- wlManager.unpublish( mavenRepository );
+ manager.unpublish( mavenRepository );
}
catch ( IOException ioe )
{

0 comments on commit 14c8f20

Please sign in to comment.