Codota Logo
rocks.inspectit.server.ci
Code IndexAdd Codota to your IDE (free)

How to use rocks.inspectit.server.ci

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public Environment getEnvironment(String id) throws BusinessException {
  return ciManager.getEnvironment(id);
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public AlertingDefinition getAlertingDefinition(String id) throws BusinessException {
  return ciManager.getAlertingDefinition(id);
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public AgentMappings getAgentMappings() {
  return ciManager.getAgentMappings();
}
origin: inspectIT/inspectIT

/**
 * Initialize.
 */
@PostConstruct
public void init() {
  // WARNING loading must be done in this order
  loadExistingProfiles();
  loadExistingEnvironments();
  loadAgentMappings();
  loadBusinessContextDefinition();
  loadExistingAlertingDefinitions();
}
origin: inspectIT/inspectIT

/**
 * Save the given {@link AlertingDefinition}.
 *
 * @param alertingDefinition
 *            the {@link AlertingDefinition} to save
 * @throws IOException
 *             if {@link IOException} occurs
 * @throws JAXBException
 *             if {@link JAXBException} occurs. If saving fails
 */
private void saveAlertingDefinition(AlertingDefinition alertingDefinition) throws JAXBException, IOException {
  transformator.marshall(pathResolver.getAlertingDefinitionFilePath(alertingDefinition), alertingDefinition, getRelativeToSchemaPath(pathResolver.getDefaultCiPath()).toString(),
      ISchemaVersionAware.ConfigurationInterface.SCHEMA_VERSION);
}
origin: inspectIT/inspectIT

/**
 * Saves agent mapping.
 *
 * @param agentMappings
 *            To save
 * @throws IOException
 *             If {@link IOException} occurs.
 * @throws JAXBException
 *             If {@link JAXBException} occurs. If saving fails.
 */
private void saveAgentMapping(AgentMappings agentMappings) throws JAXBException, IOException {
  transformator.marshall(pathResolver.getAgentMappingFilePath(), agentMappings, getRelativeToSchemaPath(pathResolver.getDefaultCiPath()).toString(),
      ISchemaVersionAware.ConfigurationInterface.SCHEMA_VERSION);
}
origin: inspectIT/inspectIT

/**
 * Saves {@link Environment} to the disk.
 *
 * @param environment
 *            {@link Environment} to save.
 * @throws IOException
 *             If {@link IOException} occurs.
 * @throws JAXBException
 *             If {@link JAXBException} occurs. If saving fails.
 */
private void saveEnvironment(Environment environment) throws JAXBException, IOException {
  transformator.marshall(pathResolver.getEnvironmentFilePath(environment), environment, getRelativeToSchemaPath(pathResolver.getEnvironmentPath()).toString(),
      ISchemaVersionAware.ConfigurationInterface.SCHEMA_VERSION);
}
origin: inspectIT/inspectIT

/**
 * Returns path pointing to the business context file.
 *
 * @return Path to the file.
 */
public Path getBusinessContextFilePath() {
  return getDefaultCiPath().resolve(BUSINESS_CONTEXT_CONFIG_FILE);
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public Profile getProfile(String id) throws BusinessException {
  return ciManager.getProfile(id);
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public List<Profile> getAllProfiles() {
  return ciManager.getAllProfiles();
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public Collection<Environment> getAllEnvironments() {
  return ciManager.getAllEnvironments();
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public List<AlertingDefinition> getAlertingDefinitions() {
  return ciManager.getAlertingDefinitions();
}
origin: inspectIT/inspectIT

/**
 * Returns given path relative to schema part.
 *
 * @param path
 *            path to relativize
 * @return path relative to schema part
 * @see #getSchemaPath()
 */
private Path getRelativeToSchemaPath(Path path) {
  return path.relativize(pathResolver.getSchemaPath());
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public synchronized ApplicationDefinition getApplicationDefinition(int id) throws BusinessException {
  if (id == ApplicationDefinition.DEFAULT_ID) {
    return ApplicationDefinition.DEFAULT_APPLICATION_DEFINITION;
  } else {
    return ciManager.getBusinessconContextDefinition().getApplicationDefinition(id);
  }
}
origin: inspectIT/inspectIT

/**
 * Returns the directory where alert thresholds are saved.
 *
 * @return Path to the folder of the alert thresholds.
 */
public Path getAlertingDefinitionsPath() {
  return getDefaultCiPath().resolve(ALERTING_DEFINITIONS_FOLDER);
}
origin: inspectIT/inspectIT

  @Test(expectedExceptions = BusinessException.class)
  public void getNotExisting() throws Exception {
    Environment result = manager.getEnvironment("someId");
  }
}
origin: inspectIT/inspectIT

  @Test(expectedExceptions = BusinessException.class)
  public void getNotExisting() throws Exception {
    Profile result = manager.getProfile("someId");
  }
}
origin: inspectIT/inspectIT

/**
 * Returns path pointing to the agent mapping file.
 *
 * @return Path to the file.
 */
public Path getAgentMappingFilePath() {
  return getDefaultCiPath().resolve(AGENT_MAPPING_FILE);
}
origin: inspectIT/inspectIT

/**
 * Returns the schema path.
 *
 * @return Returns the schema path.
 */
public Path getSchemaPath() {
  return getDefaultCiPath().resolve(SCHEMA_FOLDER).resolve(SCHEMA_FILE);
}
origin: inspectIT/inspectIT

/**
 * Returns the schema path.
 *
 * @return Returns the schema path.
 */
public Path getMigrationPath() {
  return getDefaultCiPath().resolve(SCHEMA_FOLDER).resolve(MIGRATION_FOLDER);
}
rocks.inspectit.server.ci

Most used classes

  • ConfigurationInterfaceManager
    Manages all configuration interface operations.
  • ConfigurationInterfacePathResolver
    Class that knows how to resolve paths related to the configuration interface.
  • AbstractAlertingDefinitionEvent$AlertingDefinitionCreatedEvent
    Create event type.
  • AbstractAlertingDefinitionEvent$AlertingDefinitionDeletedEvent
    Delete event type.
  • AbstractAlertingDefinitionEvent$AlertingDefinitionLoadedEvent
    Loaded event type.
  • ClassInstrumentationChangedEvent,
  • EnvironmentUpdateEvent,
  • ProfileUpdateEvent,
  • AbstractAlertingDefinitionEvent,
  • AgentMappingsUpdateEvent,
  • BusinessContextDefinitionUpdateEvent
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now