public class JourneyManagerImpl extends Object implements JourneyManager
| Modifier and Type | Method and Description |
|---|---|
Journey |
createJourney(String name)
Creates a new journey with the given name and returns it to the caller.
|
Journey |
getJourney(String name)
Returns the monitoring journey with the given name.
|
List<Journey> |
getJourneys()
Returns all known journeys.
|
Journey |
getOrCreateJourney(String name)
Returns an existing journey or creates a new one.
|
void |
removeJourney(Journey journey)
Removes the journey from the internal storage.
|
void |
removeJourney(String name)
Removes the journey with the given name.
|
public Journey createJourney(String name)
JourneyManagercreateJourney in interface JourneyManagerpublic Journey getJourney(String name) throws NoSuchJourneyException
JourneyManagergetJourney in interface JourneyManagername - name of the journey.NoSuchJourneyExceptionpublic Journey getOrCreateJourney(String name)
JourneyManagergetOrCreateJourney in interface JourneyManagerpublic List<Journey> getJourneys()
JourneyManagergetJourneys in interface JourneyManagerpublic void removeJourney(Journey journey)
JourneyManagerremoveJourney in interface JourneyManagerjourney - journey to remove.public void removeJourney(String name)
JourneyManagerremoveJourney in interface JourneyManagername - name of the journey to remove.Copyright © 2010-2017 anotheria.net. All Rights Reserved.