Package edu.sc.seis.sod.status
Class AbstractVelocityStatus
java.lang.Object
edu.sc.seis.sod.status.AbstractVelocityStatus
- All Implemented Interfaces:
SodElement
,NetworkMonitor
,WaveformMonitor
- Direct Known Subclasses:
WaveformNetworkStatus
,WaveformStationStatus
public abstract class AbstractVelocityStatus
extends Object
implements WaveformMonitor, NetworkMonitor
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractVelocityStatus
(String fileDir, String templateName) AbstractVelocityStatus
(Element config) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getNestedTextForElement
(String elementName, Element config) abstract int
Method getNumDirDeep returns how many directories below the base status directory this template will writestatic String
getTemplateName
(Element config) protected String
loads the default template, given by the <template> tag in the config.protected String
loadTemplate
(String templateName) loads the named template.void
scheduleOutput
(String filename, org.apache.velocity.context.Context context) Schedules the default template, from the <template> element in the config, for output.void
scheduleOutput
(String filename, org.apache.velocity.context.Context context, String template) Schedules the given template for output.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.sc.seis.sod.status.networkArm.NetworkMonitor
change, change, change, change, setArmStatus
Methods inherited from interface edu.sc.seis.sod.status.waveformArm.WaveformMonitor
update, update, update, update
-
Constructor Details
-
AbstractVelocityStatus
public AbstractVelocityStatus(Element config) throws SQLException, MalformedURLException, IOException -
AbstractVelocityStatus
- Throws:
SQLException
IOException
-
-
Method Details
-
getTemplateName
- Throws:
MalformedURLException
-
getNestedTextForElement
-
getNumDirDeep
public abstract int getNumDirDeep()Method getNumDirDeep returns how many directories below the base status directory this template will write -
loadTemplate
loads the default template, given by the <template> tag in the config.- Throws:
IOException
-
loadTemplate
loads the named template. This method is in case a velocity processor has more than one template generated by the same java class.- Throws:
IOException
-
scheduleOutput
Schedules the default template, from the <template> element in the config, for output. -
scheduleOutput
public void scheduleOutput(String filename, org.apache.velocity.context.Context context, String template) Schedules the given template for output.
-