Java Code Examples for org.sonatype.nexus.orient.DatabaseInstanceNames#CONFIG

The following examples show how to use org.sonatype.nexus.orient.DatabaseInstanceNames#CONFIG . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConfigDatabaseUpgrade_1_2.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public ConfigDatabaseUpgrade_1_2(
    @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
    @Named(DatabaseInstanceNames.COMPONENT) final Provider<DatabaseInstance> componentDatabaseInstance)
{
  this.configDatabaseInstance = checkNotNull(databaseInstance);
  this.componentDatabaseInstance = checkNotNull(componentDatabaseInstance);
}
 
Example 2
Source File: JobStoreImpl.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public JobStoreImpl(@Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
                    final JobDetailEntityAdapter jobDetailEntityAdapter,
                    final TriggerEntityAdapter triggerEntityAdapter,
                    final CalendarEntityAdapter calendarEntityAdapter,
                    final NodeAccess nodeAccess,
                    @Named("${nexus.quartz.jobStore.acquireRetryDelay:-15s}") final Time acquireRetryDelay)
{
  this.databaseInstance = checkNotNull(databaseInstance);
  this.jobDetailEntityAdapter = checkNotNull(jobDetailEntityAdapter);
  this.triggerEntityAdapter = checkNotNull(triggerEntityAdapter);
  this.calendarEntityAdapter = checkNotNull(calendarEntityAdapter);
  this.nodeAccess = checkNotNull(nodeAccess);
  this.acquireRetryDelay = acquireRetryDelay;
}
 
Example 3
Source File: ModelVersionStore.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public ModelVersionStore(final UpgradeManager upgradeManager,
                         @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
                         final ClusteredModelVersionsEntityAdapter entityAdapter,
                         final ApplicationDirectories applicationDirectories)
{
  this.upgradeManager = checkNotNull(upgradeManager);
  this.databaseInstance = checkNotNull(databaseInstance);
  this.entityAdapter = checkNotNull(entityAdapter);
  localModelVersions = new PropertiesFile(new File(applicationDirectories.getWorkDirectory("db"), MODEL_PROPERTIES));
}
 
Example 4
Source File: OrientBlobStoreConfigurationStore.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public OrientBlobStoreConfigurationStore(@Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
                                         final OrientBlobStoreConfigurationEntityAdapter entityAdapter)
{
  this.databaseInstance = databaseInstance;
  this.entityAdapter = entityAdapter;
}
 
Example 5
Source File: OrientSelectorConfigurationStore.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public OrientSelectorConfigurationStore(@Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
                                        final OrientSelectorConfigurationEntityAdapter entityAdapter)
{
  this.databaseInstance = databaseInstance;
  this.entityAdapter = entityAdapter;
}
 
Example 6
Source File: OrientHttpClientConfigurationStore.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public OrientHttpClientConfigurationStore(@Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
                                          final OrientHttpClientConfigurationEntityAdapter entityAdapter)
{
  this.databaseInstance = checkNotNull(databaseInstance);
  this.entityAdapter = checkNotNull(entityAdapter);
}
 
Example 7
Source File: OrientEmailConfigurationStore.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public OrientEmailConfigurationStore(@Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
                                     final OrientEmailConfigurationEntityAdapter entityAdapter)
{
  this.databaseInstance = checkNotNull(databaseInstance);
  this.entityAdapter = checkNotNull(entityAdapter);
}
 
Example 8
Source File: ComponentDatabaseUpgrade_1_9.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public ComponentDatabaseUpgrade_1_9(
    @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> configDatabaseInstance,
    @Named(DatabaseInstanceNames.COMPONENT) final Provider<DatabaseInstance> componentDatabaseInstance)
{
  this.configDatabaseInstance = checkNotNull(configDatabaseInstance);
  this.componentDatabaseInstance = checkNotNull(componentDatabaseInstance);
}
 
Example 9
Source File: ComponentDatabaseUpgrade_1_1.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public ComponentDatabaseUpgrade_1_1(
    @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> configDatabaseInstance,
    @Named(DatabaseInstanceNames.COMPONENT) final Provider<DatabaseInstance> componentDatabaseInstance)
{
  this.configDatabaseInstance = checkNotNull(configDatabaseInstance);
  this.componentDatabaseInstance = checkNotNull(componentDatabaseInstance);
}
 
Example 10
Source File: P2Upgrade_1_1.java    From nexus-repository-p2 with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public P2Upgrade_1_1(
    @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> configDatabaseInstance,
    @Named(DatabaseInstanceNames.COMPONENT) final Provider<DatabaseInstance> componentDatabaseInstance)
{
  this.configDatabaseInstance = checkNotNull(configDatabaseInstance);
  this.componentDatabaseInstance = checkNotNull(componentDatabaseInstance);
}
 
Example 11
Source File: ComponentDatabaseUpgrade_1_10.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public ComponentDatabaseUpgrade_1_10(
    @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> configDatabaseInstance,
    @Named(DatabaseInstanceNames.COMPONENT) final Provider<DatabaseInstance> componentDatabaseInstance)
{
  this.configDatabaseInstance = checkNotNull(configDatabaseInstance);
  this.componentDatabaseInstance = checkNotNull(componentDatabaseInstance);
}
 
Example 12
Source File: ComponentDatabaseUpgrade_1_11.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public ComponentDatabaseUpgrade_1_11(
    @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> configDatabaseInstance,
    @Named(DatabaseInstanceNames.COMPONENT) final Provider<DatabaseInstance> componentDatabaseInstance)
{
  this.configDatabaseInstance = checkNotNull(configDatabaseInstance);
  this.componentDatabaseInstance = checkNotNull(componentDatabaseInstance);
}
 
Example 13
Source File: OrientCleanupPolicyStorage.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public OrientCleanupPolicyStorage(
    @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
    final OrientCleanupPolicyEntityAdapter entityAdapter)
{
  this.databaseInstance = databaseInstance;
  this.entityAdapter = entityAdapter;
}
 
Example 14
Source File: MavenUpgrade_1_1.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public MavenUpgrade_1_1(
    @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> configDatabaseInstance,
    @Named(DatabaseInstanceNames.COMPONENT) final Provider<DatabaseInstance> componentDatabaseInstance)
{
  this.configDatabaseInstance = checkNotNull(configDatabaseInstance);
  this.componentDatabaseInstance = checkNotNull(componentDatabaseInstance);
}
 
Example 15
Source File: OrientKeyStoreStorageManager.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public OrientKeyStoreStorageManager(@Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
                                  final OrientKeyStoreDataEntityAdapter entityAdapter,
                                  final EventManager eventManager)
{
  this.databaseInstance = checkNotNull(databaseInstance);
  this.entityAdapter = checkNotNull(entityAdapter);
  this.eventManager = checkNotNull(eventManager);
}
 
Example 16
Source File: PypiUpgrade_1_1.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public PypiUpgrade_1_1(
    @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> configDatabaseInstance,
    @Named(DatabaseInstanceNames.COMPONENT) final Provider<DatabaseInstance> componentDatabaseInstance)
{
  this.configDatabaseInstance = checkNotNull(configDatabaseInstance);
  this.componentDatabaseInstance = checkNotNull(componentDatabaseInstance);
}
 
Example 17
Source File: OrientScriptStore.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public OrientScriptStore(@Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
                         final OrientScriptEntityAdapter entityAdapter)
{
  this.databaseInstance = checkNotNull(databaseInstance);
  this.entityAdapter = checkNotNull(entityAdapter);
}
 
Example 18
Source File: ConanUpgrade_1_1.java    From nexus-repository-conan with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public ConanUpgrade_1_1(
    @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> configDatabaseInstance,
    @Named(DatabaseInstanceNames.COMPONENT) final Provider<DatabaseInstance> componentDatabaseInstance)
{
  this.configDatabaseInstance = checkNotNull(configDatabaseInstance);
  this.componentDatabaseInstance = checkNotNull(componentDatabaseInstance);
}
 
Example 19
Source File: ConfigDatabaseUpgrade_1_7.java    From nexus-public with Eclipse Public License 1.0 4 votes vote down vote up
@Inject
public ConfigDatabaseUpgrade_1_7(@Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> configDatabaseInstance) {
  this.configDatabaseInstance = checkNotNull(configDatabaseInstance);
}
 
Example 20
Source File: ConfigOrientConnectionProvider.java    From nexus-public with Eclipse Public License 1.0 4 votes vote down vote up
@Inject
public ConfigOrientConnectionProvider(
    @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance)
{
  this.databaseInstance = checkNotNull(databaseInstance);
}