public class JourneyManagerImpl extends java.lang.Object implements 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.
|
public Journey createJourney(java.lang.String name)
JourneyManagercreateJourney in interface JourneyManagerpublic Journey getJourney(java.lang.String name) throws NoSuchJourneyException
JourneyManagergetJourney in interface JourneyManagername - name of the journey.NoSuchJourneyExceptionpublic Journey getOrCreateJourney(java.lang.String name)
JourneyManagergetOrCreateJourney in interface JourneyManagerpublic java.util.List<Journey> getJourneys()
JourneyManagergetJourneys in interface JourneyManagerpublic void removeJourney(Journey journey)
JourneyManagerremoveJourney in interface JourneyManagerjourney - journey to remove.public void removeJourney(java.lang.String name)
JourneyManagerremoveJourney in interface JourneyManagername - name of the journey to remove.Copyright © 2010-2020 anotheria.net. All Rights Reserved.