public class SourceManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SourceManager.SourceManagerStatusBean
bean to hold the status stuff across all sources
|
Modifier and Type | Method and Description |
---|---|
static void |
clearAllSources() |
static SourceManager |
getInstance()
Returns the singleton instance of SourceManager.
|
Source |
getSource(String sourceId)
Gets Source for the argument source ID.
|
SourceManager.SourceManagerStatusBean |
getSourceManagerStatusBean()
get status information across all sources
|
Collection<Source> |
getSources()
Returns a Collection of Sources.
|
Collection<Source> |
getSources(SubjectType type)
Returns a Collection of Sources that
supports the argument SubjectType.
|
void |
internal_removeSource(String sourceId)
remove source for testing
|
void |
loadSource(Source source)
(non-javadoc)
|
static void |
main(String[] args)
Validates subject.properties config file.
|
String |
printConfig()
print out the config for the subject API
|
void |
reloadSource(String sourceId) |
static boolean |
usingSubjectProperties() |
public static void clearAllSources()
public SourceManager.SourceManagerStatusBean getSourceManagerStatusBean()
public String printConfig()
public static SourceManager getInstance()
public Source getSource(String sourceId) throws SourceUnavailableException
sourceId
- SourceUnavailableException
public Collection<Source> getSources()
public Collection<Source> getSources(SubjectType type)
type
- public void reloadSource(String sourceId)
public void loadSource(Source source)
source
- public static boolean usingSubjectProperties()
public static void main(String[] args)
args
- public void internal_removeSource(String sourceId)
sourceId
- Copyright © 2016 Internet2. All rights reserved.