core/src/main/java/org/commonjava/indy/core/change/StoreEnablementManager.java
@Measure( timers = @MetricNamed( DEFAULT ) )
    public void onStoreEnablementChange( @Observes ArtifactStoreEnablementEvent event )
    {
        if ( event.isPreprocessing() )
        {
            return;
        }

        for ( ArtifactStore store : event )
        {
            if ( ! event.isDisabling() )
            {
                try
                {
                    cancelReEnablementTimeout( store.getKey() );
                }
                catch ( IndySchedulerException e )
                {
                    Logger logger = LoggerFactory.getLogger( getClass() );
                    logger.error( String.format( "Failed to delete re-enablement job for %s.", store.getKey() ), e );
                }
            }
        }
    }
@Measure( timers = @MetricNamed( DEFAULT ) )
    public void onStoreEnablementChange( @Observes ArtifactStoreEnablementEvent event )
    {
        if ( event.isPreprocessing() )
        {
            return;
        }

        for ( ArtifactStore store : event )
        {
            if ( ! event.isDisabling() )
            {
                try
                {
                    cancelReEnablementTimeout( store.getKey() );
                }
                catch ( IndySchedulerException e )
                {
                    Logger logger = LoggerFactory.getLogger( getClass() );
                    logger.error( String.format( "Failed to delete re-enablement job for %s.", store.getKey() ), e );
                }
            }
        }
    }
@ Measure ( timers = @ MetricNamed ( DEFAULT ) ) public void onStoreEnablementChange ( @ Observes ArtifactStoreEnablementEvent event ) { if ( event . isPreprocessing ( ) ) { return ; } for ( ArtifactStore store : event ) { if ( ! event . isDisabling ( ) ) { try { cancelReEnablementTimeout ( store . getKey ( ) ) ; } catch ( IndySchedulerException e ) { Logger logger = LoggerFactory . getLogger ( getClass ( ) ) ; logger . error ( String . format ( "Failed to delete re-enablement job for %s." , store . getKey ( ) ) , e ) ; } } } }
FIXME: Convert to using ArtifactStoreEnablementEvent.
FIXME : Convert to using ArtifactStoreEnablementEvent .