java.lang.Object
org.pdfsam.eventstudio.Stations
A thread safe holder for
Station. Provides methods to access to the Stations of the EventStudio creating a new one when required.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final ConcurrentMap<String, Station> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) StationgetStation(String stationName) (package private) Collection<Station>
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
stations
-
-
Constructor Details
-
Stations
Stations()
-
-
Method Details
-
getStation
- Returns:
- the station with the given name. It safely creates a new
Stationif a station with the given name does not exist. - Throws:
IllegalArgumentException- if the station name is blank or null
-
getStations
Collection<Station> getStations()- Returns:
- the collection of the configured stations
- See Also:
-
clear
-