- java.lang.Object
-
- org.pdfsam.eventstudio.Stations
-
class Stations extends java.lang.ObjectA thread safe holder forStation. Provides methods to access to theStations of theEventStudiocreating a new one when requred.
-
-
Constructor Summary
Constructors Constructor Description Stations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidclear(java.lang.String station)(package private) StationgetStation(java.lang.String stationName)(package private) java.util.Collection<Station>getStations()
-
-
-
Field Detail
-
LOG
private static final org.slf4j.Logger LOG
-
stations
private final java.util.concurrent.ConcurrentMap<java.lang.String,Station> stations
-
-
Method Detail
-
getStation
Station getStation(java.lang.String stationName)
- Returns:
- the station with the given name. It safely creates a new
Stationif a station with the given name does not exist. - Throws:
java.lang.IllegalArgumentException- if the station name is blank or null
-
getStations
java.util.Collection<Station> getStations()
- Returns:
- the collection of the configured stations
- See Also:
ConcurrentHashMap.values()
-
clear
void clear(java.lang.String station)
-
-