Tabnine Logo
CRepository.setNotFoundCacheActive
Code IndexAdd Tabnine to your IDE (free)

How to use
setNotFoundCacheActive
method
in
org.sonatype.nexus.configuration.model.CRepository

Best Java code snippets using org.sonatype.nexus.configuration.model.CRepository.setNotFoundCacheActive (Showing top 12 results out of 315)

origin: org.sonatype.nexus/nexus-proxy

public void setNotFoundCacheActive( boolean notFoundCacheActive )
{
  getCurrentConfiguration( true ).setNotFoundCacheActive( notFoundCacheActive );
}
origin: org.sonatype.nexus/nexus-app

  protected void undoForceNfcSetting( final Configuration configuration )
  {
    getLogger().info(
      "Undoing NFC overrides: every repository present in system will have NFC activated (system property override present)." );

    // just undo, set true on all repositories in system
    for ( CRepository repository : configuration.getRepositories() )
    {
      repository.setNotFoundCacheActive( true );
    }
  }
}
origin: org.sonatype.nexus/nexus-app

protected void doForceNfcSetting( final Configuration configuration )
{
  getLogger().info(
    "Enforcing proper NFC use: every non-proxy repository present in system will have NFC deactivated (system property override present)." );
  // conservatively shut down NFC on any non-proxy repository
  for ( CRepository repository : configuration.getRepositories() )
  {
    final boolean isProxyRepository =
      repository.getRemoteStorage() != null && repository.getRemoteStorage().getUrl() != null;
    repository.setNotFoundCacheActive( isProxyRepository );
  }
}
origin: org.sonatype.nexus/nexus-configuration-model

value.setNotFoundCacheActive( cRepository.isNotFoundCacheActive() );
origin: org.sonatype.nexus.plugins/nexus-p2-repository-plugin

repo.setNotFoundCacheActive(true);
repo.setNotFoundCacheTTL(1440);
origin: org.sonatype.nexus.plugins/nexus-p2-repository-plugin

repo.setNotFoundCacheActive(true);
repo.setNotFoundCacheTTL(1440);
origin: org.sonatype.nexus.plugins/nexus-ruby-plugin

repo.setNotFoundCacheActive(true);
repo.setNotFoundCacheTTL(1440);
origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

appModel.setNotFoundCacheActive(true);
origin: org.sonatype.nexus/nexus-rest-api

if ( remoteStorage != null )
  appModel.setNotFoundCacheActive( true );
origin: org.sonatype.nexus/nexus-app

repo.setNotFoundCacheActive( true );
repo.setNotFoundCacheTTL( 1440 );
origin: org.sonatype.nexus/nexus-app

repo.setNotFoundCacheActive( true );
repo.setNotFoundCacheTTL( 1440 );
origin: org.sonatype.nexus/nexus-configuration-model

cRepository.setNotFoundCacheActive( getBooleanValue( getTrimmedValue( parser.nextText() ), "notFoundCacheActive", parser, "false" ) );
org.sonatype.nexus.configuration.modelCRepositorysetNotFoundCacheActive

Javadoc

Set if true, NFC will be used. If false, no miss caching will happen.

Popular methods of CRepository

  • getExternalConfiguration
    Get repository implementation's own configuration.
  • getRemoteStorage
    Get the remote storage definition of repository.
  • setExternalConfiguration
    Set repository implementation's own configuration.
  • setId
    Set repository ID. It should uniquely identify this repository across Nexus.
  • setIndexable
    Set if true, repository will get indexed. If false, the files and artifacts from repository will NOT
  • setName
    Set human readable Repository name.
  • setNotFoundCacheTTL
    Set notFoundCache, the neg-cache records time to live in minutes. How long will misses be cached.
  • setRemoteStorage
    Set the remote storage definition of repository.
  • setWritePolicy
    Set the policy of the repositories write capability, i.e. (ALLOW_WRITE, ALLOW_WRITE_ONCE, READ_ONLY)
  • setProviderHint
    Set the implementation of repository.
  • setProviderRole
    Set the type of repository.
  • getId
    Get repository ID. It should uniquely identify this repository across Nexus.
  • setProviderRole,
  • getId,
  • getLocalStorage,
  • getName,
  • setSearchable,
  • getLocalStatus,
  • getProviderHint,
  • getNotFoundCacheTTL,
  • setBrowseable

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JComboBox (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now