|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
astro.fits.Icat
astro.fits.IcatMaster
public class IcatMaster
Very simple class that prepares the reduction of wifsip science frames using the icat pipeline. This is the entry point for a demon process.
| Nested Class Summary | |
|---|---|
static class |
IcatMaster.Standalone
Controll is done in the JVM, not in a cron job. |
| Nested classes/interfaces inherited from class astro.fits.Icat |
|---|
Icat.Compress, Icat.Snoop, Icat.Uncompress |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private static String |
DEFDIRLIST
All archive dirs that need reduction. |
private static String |
DEFREDUCESCRIPT
The path to reduce.sh. |
private static long |
DEFWAKEUP
4 times a day. |
private static Process |
exe
|
static String |
KEY_DIRLIST
All archive dirs that need reduction. |
static String |
KEY_REDUCESCRIPT
The path to reduce.sh. |
static String |
KEY_WAKEUP
Wakeup call. |
private static boolean |
working
|
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Constructor Summary | |
|---|---|
IcatMaster(Map<String,String> prop)
|
|
| Method Summary | |
|---|---|
private boolean |
createDirList()
|
void |
exit()
On exit, we destroy the process, if still active. |
long |
getRefreshInterval()
Returns the period in milliseconds of the refresh intervall. |
boolean |
isFixedRate()
Returns true if fixed rate scheduling is desired, otherwise fixed delay is assumed. |
static void |
main(String[] arg)
Call this method to generate a new directory list. |
void |
refresh()
The method that should be invoked on refresh. |
private void |
startReduction()
|
| Methods inherited from class astro.fits.Icat |
|---|
addExtension, compress, getIcatInputExtension, getIcatName, getIcatOutputExtension, getInput, getMain, getOutput, getQuadrantInput, getQuadrantOutput, getSerializeFile, init, reducedDir, restoreLookup, saveLookup, sendMail, uncompress |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Field Detail |
|---|
public static final String KEY_REDUCESCRIPT
public static final String KEY_DIRLIST
public static final String KEY_WAKEUP
private static final String DEFREDUCESCRIPT
private static final String DEFDIRLIST
private static final long DEFWAKEUP
private static boolean working
private static Process exe
| Constructor Detail |
|---|
public IcatMaster(Map<String,String> prop)
| Method Detail |
|---|
public void exit()
exit in interface ExitCleaningpublic boolean isFixedRate()
Refreshing
isFixedRate in interface RefreshingTimerpublic long getRefreshInterval()
Refreshing
getRefreshInterval in interface Refreshingpublic void refresh()
Refreshing
refresh in interface Refreshingprivate boolean createDirList()
private void startReduction()
public static void main(String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||