public interface JourneyManager
| Modifier and Type | Method and Description |
|---|---|
Journey |
createJourney(java.lang.String name)
Creates a new journey with the given name and returns it to the caller.
|
Journey |
getJourney(java.lang.String name)
Returns the monitoring journey with the given name.
|
java.util.List<Journey> |
getJourneys()
Returns all known journeys.
|
Journey |
getOrCreateJourney(java.lang.String name)
Returns an existing journey or creates a new one.
|
void |
removeJourney(Journey journey)
Removes the journey from the internal storage.
|
void |
removeJourney(java.lang.String name)
Removes the journey with the given name.
|
java.util.List<Journey> getJourneys()
Journey createJourney(java.lang.String name)
name - Journey getJourney(java.lang.String name) throws NoSuchJourneyException
name - name of the journey.NoSuchJourneyExceptionvoid removeJourney(java.lang.String name)
name - name of the journey to remove.void removeJourney(Journey journey)
journey - journey to remove.Journey getOrCreateJourney(java.lang.String name)
name - Copyright © 2010-2020 anotheria.net. All Rights Reserved.