Class McvStateCollector
java.lang.Object
edu.wisc.ssec.mcidasv.supportform.McvStateCollector
- All Implemented Interfaces:
StateCollector
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMcvStateCollector
(McIDASV mcv) Builds a state collector that knows how to query McIDAS-V for specific information. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether or not thisStateCollector
allows for attaching current McIDAS-V state as a bundle.What should the name of the bundled version of McIDAS-V's current state be named?byte[]
Current McIDAS-V state as an XML bundle named bygetBundleAttachmentName()
.byte[]
The results ofgetContentsAsString()
as an array ofbyte
s.Builds the McIDAS-V system properties and returns the results as a nicely formattedString
.What should the set of McIDAS-V system properties be named?Return full path to McV log fileReturn full path to user's startup preferences file.Get the path to where the user'sRESOLV.SRV
file should be located.toString()
-
Field Details
-
mcv
Reference used to query McIDAS-V's application state. -
BUNDLE
Name of the attachment used for the system state bundle.- See Also:
-
EXTRA
Name of the attachment used for system properties.- See Also:
-
-
Constructor Details
-
McvStateCollector
Builds a state collector that knows how to query McIDAS-V for specific information.- Parameters:
mcv
- The McIDAS-V reference that we'll interrogate.
-
-
Method Details
-
getBundleAttachmentName
What should the name of the bundled version of McIDAS-V's current state be named?- Specified by:
getBundleAttachmentName
in interfaceStateCollector
- Returns:
- Filename to use as an email attachment. Note that this file is created specifically for the support request and will not exist otherwise.
-
getExtraAttachmentName
What should the set of McIDAS-V system properties be named?- Specified by:
getExtraAttachmentName
in interfaceStateCollector
- Returns:
- Filename to use as an email attachment. Again, this file does not actually exist outside of the support request.
-
getLogPath
Return full path to McV log file- Specified by:
getLogPath
in interfaceStateCollector
-
getPrefsPath
Return full path to user's startup preferences file.- Specified by:
getPrefsPath
in interfaceStateCollector
-
getResolvSrvPath
Get the path to where the user'sRESOLV.SRV
file should be located.- Specified by:
getResolvSrvPath
in interfaceStateCollector
- Returns:
- Path to
RESOLV.SRV
. Note: the file may not exist!
-
getContentsAsString
Builds the McIDAS-V system properties and returns the results as a nicely formattedString
.- Specified by:
getContentsAsString
in interfaceStateCollector
- Returns:
- The McIDAS-V system properties in the following format:
KEY=VALUE\n
. This is so we kinda-sorta conform to the standardProperties
file format.
-
getContents
The results ofgetContentsAsString()
as an array ofbyte
s. This makes for a particularly easy way to attach to aHTTP POST
.- Specified by:
getContents
in interfaceStateCollector
-
canBundleState
Whether or not thisStateCollector
allows for attaching current McIDAS-V state as a bundle.- Specified by:
canBundleState
in interfaceStateCollector
-
getBundledState
Current McIDAS-V state as an XML bundle named bygetBundleAttachmentName()
.- Specified by:
getBundledState
in interfaceStateCollector
-
toString
- Specified by:
toString
in interfaceStateCollector
- Overrides:
toString
in classObject
-