public synchronized void resetObjInfo() { this.obj_type = getValue("obj_type", CounterConstants.BATCH); String detected = CounterConstants.HOST; if (SystemUtil.IS_LINUX) { detected = CounterConstants.LINUX; } else if (SystemUtil.IS_WINDOWS) { detected = CounterConstants.WINDOWS; } else if (SystemUtil.IS_MAC_OSX) { detected = CounterConstants.OSX; } else if (SystemUtil.IS_AIX) { detected = CounterConstants.AIX; } else if (SystemUtil.IS_HP_UX) { detected = CounterConstants.HPUX; } this.obj_host_type = getValue("obj_host_type", detected); this.obj_host_name = getValue("obj_host_name", SysJMX.getHostName()); this.objHostName = "/" + this.obj_host_name; this.objHostHash = HashUtil.hash(this.objHostName); this.obj_name_auto_pid_enabled = getBoolean("obj_name_auto_pid_enabled", false); this.obj_name = getValue("obj_name", "batch"); this.objName = this.objHostName + "/" + this.obj_name; // make hash value try { this.objHash = HashUtil.hash( objName.getBytes("UTF-8")); }catch(Throwable ex){} System.setProperty("scouter.objname", this.objName); System.setProperty("scouter.objtype", this.obj_type); System.setProperty("scouter.dir", agent_dir_path); }
public synchronized void resetObjInfo() { String detected = CounterConstants.HOST; if (SystemUtil.IS_LINUX) { detected = CounterConstants.LINUX; } else if (SystemUtil.IS_WINDOWS) { detected = CounterConstants.WINDOWS; } else if (SystemUtil.IS_MAC_OSX) { detected = CounterConstants.OSX; } else if (SystemUtil.IS_AIX) { detected = CounterConstants.AIX; } else if (SystemUtil.IS_HP_UX) { detected = CounterConstants.HPUX; } this.objDetectedType = detected; this.monitoring_group_type = getValue("monitoring_group_type"); this.obj_type = StringUtil.isEmpty(this.monitoring_group_type) ? getValue("obj_type", detected) : this.monitoring_group_type; this.obj_name = getValue("obj_name", SysJMX.getHostName()); this.objName = "/" + this.obj_name; this.objHash = HashUtil.hash(objName); }
this.obj_host_name = getValue("obj_host_name", SysJMX.getHostName()); this.objHostName = "/" + this.obj_host_name; this.objHostHash = HashUtil.hash(objHostName);
this.obj_host_name = getValue("obj_host_name", SysJMX.getHostName()); this.objHostName = "/" + this.obj_host_name; this.objHostHash = HashUtil.hash(objHostName);
String objName = "/" + SysJMX.getHostName() + "/dummy_java_instance_" + (i+1); objNames.add(objName); int objHash = HashUtil.hash(objName);
String objName = "/" + SysJMX.getHostName() + "/dummy_java_instance_" + (i+1); objNames.add(objName); int objHash = HashUtil.hash(objName);
param.put("pass", encPassword); param.put("version", Version.getClientFullVersion()); param.put("hostname", SysJMX.getHostName()); param.put("internal", "true");
this.server_id = getValue("server_id", SysJMX.getHostName()); this.db_dir = getValue("db_dir", "./database"); this.log_dir = getValue("log_dir", "./logs");
this.obj_host_name = getValue("obj_host_name", SysJMX.getHostName()); this.objHostName = "/" + this.obj_host_name; this.objHostHash = HashUtil.hash(objHostName);
String objName = "/" + SysJMX.getHostName() + "/dummy_java_instance_" + (i+1); objNames.add(objName); int objHash = HashUtil.hash(objName);
param.put("pass", encPassword); param.put("version", Version.getClientFullVersion()); param.put("hostname", SysJMX.getHostName()); param.put("internal", "true");
this.server_id = getValue("server_id", SysJMX.getHostName()); this.db_dir = getValue("db_dir", "./database"); this.log_dir = getValue("log_dir", "./logs");