|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.spectacle.ProfileManager
public class ProfileManager
An ProfileManager manages a list of Profiles. It acts as a container of Profiles and also takes care of their persistency.
| Field Summary | |
|---|---|
static String |
PROFILE_PREFIX
|
| Constructor Summary | |
|---|---|
ProfileManager()
|
|
| Method Summary | |
|---|---|
boolean |
_removeRefreshSchedule(String profileID,
String schedule)
|
void |
addNewProfile(Profile profile)
Adds an Profile not previously added to this ProfileManager. |
void |
addProfileManagerListener(ProfileManagerListener listener)
|
void |
addRefreshSchedule(String profileID,
String schedule,
Spectacle spectacle)
Adds an auto-refresh schedule for the profile with the specified ID. |
void |
close()
Closes all the managed Profiles. |
Profile |
createProfile(String id,
String name,
String modelUri)
|
void |
destroy()
|
String |
getJobID(String profileID)
|
Profile |
getProfile(String id)
Returns the Profile with the specified ID. |
File |
getProfileFile()
Returns the File that contains the Profile definitions. |
List<Profile> |
getProfiles()
Returns an unmodifiable List containing all Profile objects. |
List<String> |
getRefreshSchedules(String profileID)
Gets the auto-refresh schedules for the profile with the specified ID. |
org.quartz.Scheduler |
getScheduler()
|
void |
init()
|
void |
load(InitializationListener listener,
Spectacle spectacle)
Loads and initializes the set of defined Profiles. |
void |
notifyProfileDefinitionChanged(Profile profile)
|
boolean |
refreshInProgress(String profileID)
|
void |
removeProfile(Profile profile,
boolean removeData)
|
void |
removeProfileManagerListener(ProfileManagerListener listener)
|
void |
removeRefreshSchedule(String profileID,
String schedule)
Removes the auto-refresh schedule for the profile with the specified ID. |
void |
save()
Saves the IDs, types and data dirs of all Profiles. |
void |
scheduleRefresh(String profileID,
Spectacle spectacle)
Schedules an immediate refresh of the specified profile. |
void |
setDataDir(File dataDir)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROFILE_PREFIX
| Constructor Detail |
|---|
public ProfileManager()
| Method Detail |
|---|
public void setDataDir(File dataDir)
public void init()
public org.quartz.Scheduler getScheduler()
public void destroy()
public File getProfileFile()
public void load(InitializationListener listener,
Spectacle spectacle)
throws IOException
IOException
public void save()
throws IOException
IOExceptionpublic void addProfileManagerListener(ProfileManagerListener listener)
public void removeProfileManagerListener(ProfileManagerListener listener)
public void notifyProfileDefinitionChanged(Profile profile)
public void addNewProfile(Profile profile)
throws IOException
IOException
public void removeProfile(Profile profile,
boolean removeData)
throws IOException
IOExceptionpublic List<Profile> getProfiles()
public Profile getProfile(String id)
id - The ID of a profile.
public List<String> getRefreshSchedules(String profileID)
profileID - The ID of a profile.
public void addRefreshSchedule(String profileID,
String schedule,
Spectacle spectacle)
throws ParseException,
IOException
profileID - The ID of a profile.schedule - The new schedule.
ParseException
IOException
public void removeRefreshSchedule(String profileID,
String schedule)
throws IOException
profileID - The ID of a profile.
IOException
public boolean _removeRefreshSchedule(String profileID,
String schedule)
public void scheduleRefresh(String profileID,
Spectacle spectacle)
profileID - The ID of a profile.public boolean refreshInProgress(String profileID)
public String getJobID(String profileID)
public void close()
throws IOException
IOException
public Profile createProfile(String id,
String name,
String modelUri)
id - name - modelUri -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||