Tabnine Logo
ConfigurationInterfacePathResolver.getProfilesPath
Code IndexAdd Tabnine to your IDE (free)

How to use
getProfilesPath
method
in
rocks.inspectit.server.ci.ConfigurationInterfacePathResolver

Best Java code snippets using rocks.inspectit.server.ci.ConfigurationInterfacePathResolver.getProfilesPath (Showing top 4 results out of 315)

origin: inspectIT/inspectIT

/**
 * Returns path pointing to the profile file.
 *
 * @param profile
 *            {@link Profile}
 * @return Path to the file.
 */
public Path getProfileFilePath(Profile profile) {
  String secureProfileName = removeIllegalFilenameCharacters(profile.getName());
  String fileName = profile.getId() + "-" + secureProfileName + ".xml";
  return getProfilesPath().resolve(fileName);
}
origin: inspectIT/inspectIT

existingProfiles = new ConcurrentHashMap<>(16, 0.75f, 2);
Path path = pathResolver.getProfilesPath();
final Path schemaPath = pathResolver.getSchemaPath();
origin: inspectIT/inspectIT

/**
 * Saves profile and persists it to the list.
 *
 * @param profile
 *            Profile to be saved.
 * @throws IOException
 *             If {@link IOException} occurs during save.
 * @throws JAXBException
 *             If {@link JAXBException} occurs during save.
 * @throws BusinessException
 *             If saving of the common profile is requested.
 */
private void saveProfile(Profile profile) throws BusinessException, JAXBException, IOException {
  if (profile.isCommonProfile()) {
    throw new BusinessException("Save the profile '" + profile.getName() + " to disk.", ConfigurationInterfaceErrorCodeEnum.COMMON_PROFILE_CAN_NOT_BE_ALTERED);
  }
  transformator.marshall(pathResolver.getProfileFilePath(profile), profile, getRelativeToSchemaPath(pathResolver.getProfilesPath()).toString(),
      ISchemaVersionAware.ConfigurationInterface.SCHEMA_VERSION);
}
origin: inspectIT/inspectIT

when(pathResolver.getAgentMappingFilePath()).thenReturn(Paths.get(TEST_FOLDER).resolve(EXT_RESOURCES_PATH.relativize(resolverHelper.getAgentMappingFilePath())));
when(pathResolver.getEnvironmentPath()).thenReturn(Paths.get(TEST_FOLDER).resolve(EXT_RESOURCES_PATH.relativize(resolverHelper.getEnvironmentPath())));
when(pathResolver.getProfilesPath()).thenReturn(Paths.get(TEST_FOLDER).resolve(EXT_RESOURCES_PATH.relativize(resolverHelper.getProfilesPath())));
when(pathResolver.getSchemaPath()).thenReturn(Paths.get(TEST_FOLDER).resolve(EXT_RESOURCES_PATH.relativize(resolverHelper.getSchemaPath())));
when(pathResolver.getBusinessContextFilePath()).thenReturn(Paths.get(TEST_FOLDER).resolve(EXT_RESOURCES_PATH.relativize(resolverHelper.getBusinessContextFilePath())));
rocks.inspectit.server.ciConfigurationInterfacePathResolvergetProfilesPath

Javadoc

Returns the directory where profiles are saved.

Popular methods of ConfigurationInterfacePathResolver

  • getAgentMappingFilePath
    Returns path pointing to the agent mapping file.
  • getAlertingDefinitionFilePath
    Returns path pointing to the alerting definition file.
  • getAlertingDefinitionsPath
    Returns the directory where alert thresholds are saved.
  • getBusinessContextFilePath
    Returns path pointing to the business context file.
  • getDefaultCiPath
    Returns the default CI folder.
  • getEnvironmentFilePath
    Returns path pointing to the environment file.
  • getEnvironmentPath
    Returns the directory where environments are saved.
  • getProfileFilePath
    Returns path pointing to the profile file.
  • getSchemaPath
    Returns the schema path.
  • <init>
  • getMigrationPath
    Returns the schema path.
  • init
    Initializes #configDirFile.
  • getMigrationPath,
  • init,
  • removeIllegalFilenameCharacters

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Top 12 Jupyter Notebook extensions
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