Example usage for com.google.common.base StandardSystemProperty key

List of usage examples for com.google.common.base StandardSystemProperty key

Introduction

In this page you can find the example usage for com.google.common.base StandardSystemProperty key.

Prototype

String key

To view the source code for com.google.common.base StandardSystemProperty key.

Click Source Link

Usage

From source file:org.killbill.billing.server.updatechecker.ClientInfo.java

private String getProperty(final StandardSystemProperty standardKey) {
    return getSanitizedString(MoreObjects.firstNonNull(props.getString(standardKey.key()), UNKNOWN));
}

From source file:org.ow2.proactive.resourcemanager.updater.RMNodeUpdater.java

/**
 * Returns a set containing all standard java system properties, which will not be forwarded to the new JVM
 * Only java.io.tmpdir and java.library.path will be forwarded.
 * @return set of property names/*from   w  w  w  . j a  v a  2s .co m*/
 */
private Set<String> allSystemProperties() {
    Set<String> standardPropertySet = new HashSet<>();
    for (StandardSystemProperty stdProperty : StandardSystemProperty.values()) {
        if (stdProperty != StandardSystemProperty.JAVA_IO_TMPDIR
                && stdProperty != StandardSystemProperty.JAVA_LIBRARY_PATH) {
            // tmp dir and java library path can be overridden by user
            standardPropertySet.add(stdProperty.key());
        }
    }
    return standardPropertySet;
}