public class JmxTransformer extends java.lang.Object implements WatchedCallback
Modifier and Type | Class and Description |
---|---|
protected class |
JmxTransformer.ShutdownHook |
Constructor and Description |
---|
JmxTransformer() |
Modifier and Type | Method and Description |
---|---|
void |
executeStandalone(JmxProcess process)
Handy method which runs the JmxProcess
|
void |
fileAdded(java.io.File file) |
void |
fileDeleted(java.io.File file) |
void |
fileModified(java.io.File file) |
java.io.File |
getJsonDirOrFile()
Gets the json dir or file.
|
org.apache.commons.cli.Options |
getOptions() |
java.lang.String |
getQuartPropertiesFile()
Gets the quart properties file.
|
int |
getRunPeriod()
Gets the run period.
|
boolean |
isRunEndlessly() |
static void |
main(java.lang.String[] args) |
void |
setJsonDirOrFile(java.io.File jsonDirOrFile)
Sets the json dir or file.
|
void |
setQuartPropertiesFile(java.lang.String quartPropertiesFile)
Sets the quart properties file.
|
void |
setRunEndlessly(boolean runEndlessly)
If this is true, then this class will execute the main() loop and then
wait 60 seconds until running again.
|
void |
setRunPeriod(int runPeriod)
Sets the run period.
|
protected void |
setupObjectPooling()
Override this method if you'd like to add your own object pooling.
|
void |
start()
Start.
|
void |
stop()
Stop.
|
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void start() throws LifecycleException
LifecycleException
- the lifecycle exceptionpublic void stop() throws LifecycleException
LifecycleException
- the lifecycle exceptionpublic void executeStandalone(JmxProcess process) throws java.lang.Exception
java.lang.Exception
protected void setupObjectPooling() throws java.lang.Exception
java.lang.Exception
public void setRunEndlessly(boolean runEndlessly)
public boolean isRunEndlessly()
public org.apache.commons.cli.Options getOptions()
public java.lang.String getQuartPropertiesFile()
public void setQuartPropertiesFile(java.lang.String quartPropertiesFile)
quartPropertiesFile
- the quart properties filepublic int getRunPeriod()
public void setRunPeriod(int runPeriod)
runPeriod
- the run periodpublic void setJsonDirOrFile(java.io.File jsonDirOrFile)
jsonDirOrFile
- the json dir or filepublic java.io.File getJsonDirOrFile()
public void fileModified(java.io.File file) throws java.lang.Exception
fileModified
in interface WatchedCallback
java.lang.Exception
public void fileDeleted(java.io.File file) throws java.lang.Exception
fileDeleted
in interface WatchedCallback
java.lang.Exception
public void fileAdded(java.io.File file) throws java.lang.Exception
fileAdded
in interface WatchedCallback
java.lang.Exception
Copyright © 2012 Jon Stevens and a gang of pencils. All Rights Reserved. Build version: 20121205-163415-ab6cfd36e3