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 TypeMethodDescriptionbooleanWhether or not thisStateCollectorallows 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 ofbytes.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.SRVfile 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:
getBundleAttachmentNamein 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:
getExtraAttachmentNamein 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:
getLogPathin interfaceStateCollector
-
getPrefsPath
Return full path to user's startup preferences file.- Specified by:
getPrefsPathin interfaceStateCollector
-
getResolvSrvPath
Get the path to where the user'sRESOLV.SRVfile should be located.- Specified by:
getResolvSrvPathin 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:
getContentsAsStringin interfaceStateCollector- Returns:
- The McIDAS-V system properties in the following format:
KEY=VALUE\n. This is so we kinda-sorta conform to the standardPropertiesfile format.
-
getContents
The results ofgetContentsAsString()as an array ofbytes. This makes for a particularly easy way to attach to aHTTP POST.- Specified by:
getContentsin interfaceStateCollector
-
canBundleState
Whether or not thisStateCollectorallows for attaching current McIDAS-V state as a bundle.- Specified by:
canBundleStatein interfaceStateCollector
-
getBundledState
Current McIDAS-V state as an XML bundle named bygetBundleAttachmentName().- Specified by:
getBundledStatein interfaceStateCollector
-
toString
- Specified by:
toStringin interfaceStateCollector- Overrides:
toStringin classObject
-