Tabnine Logo
ProfileUpdateEvent.isProfileActivated
Code IndexAdd Tabnine to your IDE (free)

How to use
isProfileActivated
method
in
rocks.inspectit.server.ci.event.ProfileUpdateEvent

Best Java code snippets using rocks.inspectit.server.ci.event.ProfileUpdateEvent.isProfileActivated (Showing top 5 results out of 315)

origin: inspectIT/inspectIT

/**
 * Returns all {@link AbstractClassSensorAssignment} that are "added" as result of this update.
 * If profile was activated then it means that all assignments after the update are considered
 * for adding.
 *
 * @return Returns all {@link AbstractClassSensorAssignment} that are "removed".
 */
public Collection<AbstractClassSensorAssignment<?>> getAddedSensorAssignments() {
  if (isProfileDeactivated()) {
    // if it was deactivated then nothing is for adding
    return Collections.emptyList();
  } else if (isProfileActivated()) {
    // if activated then we consider all new assignment to be for adding
    return getAllSensorAssignments(after);
  } else {
    // otherwise find the difference
    return getAssignmentsDifference(after, before);
  }
}
origin: inspectIT/inspectIT

/**
 * Returns all {@link AbstractClassSensorAssignment} that are "removed" as result of this
 * update. If profile was deactivated then it means that all assignments before the update are
 * considered for removal.
 *
 * @return Returns all {@link AbstractClassSensorAssignment} that are "removed".
 */
public Collection<AbstractClassSensorAssignment<?>> getRemovedSensorAssignments() {
  if (isProfileDeactivated()) {
    // if deactivated then we consider all old assignment to be for removal
    return getAllSensorAssignments(before);
  } else if (isProfileActivated()) {
    // if it was activated then nothing is for removal
    return Collections.emptyList();
  } else {
    // otherwise find the difference
    return getAssignmentsDifference(before, after);
  }
}
origin: inspectIT/inspectIT

  @Test
  public void stillNotActive() {
    when(old.getId()).thenReturn(ID);
    when(updated.getId()).thenReturn(ID);
    when(old.isActive()).thenReturn(false);
    when(updated.isActive()).thenReturn(false);
    ProfileUpdateEvent event = new ProfileUpdateEvent(this, old, updated);
    boolean activated = event.isProfileActivated();
    assertThat(activated, is(false));
  }
}
origin: inspectIT/inspectIT

@Test
public void activated() {
  when(old.getId()).thenReturn(ID);
  when(updated.getId()).thenReturn(ID);
  when(old.isActive()).thenReturn(false);
  when(updated.isActive()).thenReturn(true);
  ProfileUpdateEvent event = new ProfileUpdateEvent(this, old, updated);
  boolean activated = event.isProfileActivated();
  assertThat(activated, is(true));
}
origin: inspectIT/inspectIT

@Test
public void wasActive() {
  when(old.getId()).thenReturn(ID);
  when(updated.getId()).thenReturn(ID);
  when(old.isActive()).thenReturn(true);
  when(updated.isActive()).thenReturn(true);
  ProfileUpdateEvent event = new ProfileUpdateEvent(this, old, updated);
  boolean activated = event.isProfileActivated();
  assertThat(activated, is(false));
}
rocks.inspectit.server.ci.eventProfileUpdateEventisProfileActivated

Javadoc

If profile was activated as the result of the update action.

Popular methods of ProfileUpdateEvent

  • <init>
    Default constructor.
  • getAddedSensorAssignments
    Returns all AbstractClassSensorAssignment that are "added" as result of this update. If profile was
  • getProfileId
    Returns id of the profile being updated.
  • getRemovedSensorAssignments
    Returns all AbstractClassSensorAssignment that are "removed" as result of this update. If profile wa
  • isProfileActive
    Returns if the profile is active.
  • isProfileDeactivated
    If profile was deactivated as the result of the update action.
  • getAllSensorAssignments
    Returns all AbstractClassSensorAssignments from the profile.
  • getAssignmentsDifference
    Finds AbstractClassSensorAssignments that exists in first profile and not in the second one.

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Menu (java.awt)
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best IntelliJ plugins
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