This utility class collects system information and returns it as an XML document.From the command line, you can write the info to stdout using:
java -cp "jna.jar;waffle-core.jar;waffle-api.jar;jna-platform.jar;guava-21.0.jar" waffle.util.WaffleInfo
To show this information in a browser, run:
java -cp "..." waffle.util.WaffleInfo -show
To lookup account names and return any listed info, run:
java -cp "..." waffle.util.WaffleInfo -lookup AccountName
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | LOGGER
The Constant LOGGER. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addAccountInfo(final Document
the doc doc, final Element the node node, final IWindowsAccount the account account)Adds the account info. |
| protected Element | Returns: the auth provider infothe doc doc)Gets the auth provider info. |
| public static Element | Returns: the exceptionthe doc doc, final Exception the t t)Gets the exception. |
| public Element | Returns: the lookup infothe doc doc, final String the lookup lookup)Gets the lookup info. |
| public Document | |
| public static void | |
| public static String |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER The Constant LOGGER. | |
| WaffleInfo | back to summary |
|---|---|
| public WaffleInfo() | |
| addAccountInfo | back to summary |
|---|---|
| protected void addAccountInfo(final Document doc, final Element node, final IWindowsAccount account) Adds the account info.
| |
| getAuthProviderInfo | back to summary |
|---|---|
| protected Element getAuthProviderInfo(final Document doc) Gets the auth provider info. | |
| getException | back to summary |
|---|---|
| public static Element getException(final Document doc, final Exception t) Gets the exception. | |
| getLookupInfo | back to summary |
|---|---|
| public Element getLookupInfo(final Document doc, final String lookup) Gets the lookup info. | |
| getWaffleInfo | back to summary |
|---|---|
| public Document getWaffleInfo() throws ParserConfigurationException Get a Document with basic system information. This uses the builtin javax.xml package even though the API is quite verbose
| |
| main | back to summary |
|---|---|
| public static void main(final String[] args) Print system information.
| |
| toPrettyXML | back to summary |
|---|---|
| public static String toPrettyXML(final Document doc) throws TransformerException To pretty xml.
| |