|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wisc.ssec.mcidasv.supportform.McvStateCollector
public class McvStateCollector
Field Summary | |
---|---|
private static String |
BUNDLE
Name of the attachment used for the system state bundle. |
private static String |
EXTRA
Name of the attachment used for system properties. |
private McIDASV |
mcv
Reference used to query McIDAS-V's application state. |
Constructor Summary | |
---|---|
McvStateCollector(McIDASV mcv)
Builds a state collector that knows how to query McIDAS-V for specific information. |
Method Summary | |
---|---|
boolean |
canBundleState()
Whether or not this StateCollector allows for attaching current
McIDAS-V state as a bundle. |
String |
getBundleAttachmentName()
What should the name of the bundled version of McIDAS-V's current state be named? |
byte[] |
getBundledState()
Current McIDAS-V state as an XML bundle named by getBundleAttachmentName() . |
byte[] |
getContents()
The results of getContentsAsString() as an array of byte s. |
String |
getContentsAsString()
Builds the McIDAS-V system properties and returns the results as a nicely formatted String . |
String |
getExtraAttachmentName()
What should the set of McIDAS-V system properties be named? |
String |
getLogPath()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final McIDASV mcv
private static final String BUNDLE
private static final String EXTRA
Constructor Detail |
---|
public McvStateCollector(McIDASV mcv)
mcv
- The McIDAS-V reference that we'll interrogate.Method Detail |
---|
public String getBundleAttachmentName()
getBundleAttachmentName
in interface StateCollector
public String getExtraAttachmentName()
getExtraAttachmentName
in interface StateCollector
public String getLogPath()
getLogPath
in interface StateCollector
public String getContentsAsString()
String
.
getContentsAsString
in interface StateCollector
KEY=VALUE\n
. This is so we kinda-sorta conform to the standard
Properties
file format.public byte[] getContents()
getContentsAsString()
as an array of byte
s.
This makes for a particularly easy way to attach to a HTTP POST
.
getContents
in interface StateCollector
public String toString()
toString
in interface StateCollector
toString
in class Object
public boolean canBundleState()
StateCollector
allows for attaching current
McIDAS-V state as a bundle.
canBundleState
in interface StateCollector
public byte[] getBundledState()
getBundleAttachmentName()
.
getBundledState
in interface StateCollector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |