1 10 11 package com.sun.jmx.snmp.defaults; 12 13 import java.io.FileInputStream ; 16 import java.io.InputStream ; 17 import java.io.IOException ; 18 import java.util.Properties ; 19 import java.util.Enumeration ; 20 21 32 public class SnmpProperties { 33 34 private SnmpProperties() { 36 } 37 38 41 45 public static void load(String file) throws IOException { 46 Properties props = new Properties (); 47 InputStream is = new FileInputStream (file); 48 props.load(is); 49 is.close(); 50 for (final Enumeration e = props.keys(); e.hasMoreElements() ; ) { 51 final String key = (String ) e.nextElement(); 52 System.setProperty(key,props.getProperty(key)); 53 } 54 } 55 56 59 66 public static final String MLET_LIB_DIR = "jmx.mlet.library.dir"; 67 68 74 public static final String ACL_FILE = "jdmk.acl.file"; 75 76 82 public static final String SECURITY_FILE = "jdmk.security.file"; 83 84 90 public static final String UACL_FILE = "jdmk.uacl.file"; 91 92 98 public static final String MIB_CORE_FILE = "mibcore.file"; 99 100 106 public static final String JMX_SPEC_NAME = "jmx.specification.name"; 107 108 114 public static final String JMX_SPEC_VERSION = "jmx.specification.version"; 115 116 122 public static final String JMX_SPEC_VENDOR = "jmx.specification.vendor"; 123 124 130 public static final String JMX_IMPL_NAME = "jmx.implementation.name"; 131 132 138 public static final String JMX_IMPL_VENDOR = "jmx.implementation.vendor"; 139 140 146 public static final String JMX_IMPL_VERSION = "jmx.implementation.version"; 147 148 164 public static final String SSL_CIPHER_SUITE = "jdmk.ssl.cipher.suite."; 165 } 166 | Popular Tags |