Skip to content

Commit 55e18aa

Browse files
committed
1 parent a6a1303 commit 55e18aa

File tree

13 files changed

+814
-33
lines changed

13 files changed

+814
-33
lines changed

myperf/src/main/java/com/yahoo/dba/perf/myperf/common/MyPerfContext.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class MyPerfContext implements java.io.Serializable, InitializingBean,Dis
3838
private static final long serialVersionUID = 1L;
3939

4040
private MyPerfConfiguration myperfConfig = new MyPerfConfiguration(); //configurations, from settings page
41+
private SNMPSettings snmpSettings = new SNMPSettings();
4142
private DBInfoManager dbInfoManager = new DBInfoManager(); //managed database servers
4243
private SqlManager sqlManager = new SqlManager();//built in SQL definitions
4344
private MetricsDefManager metricsDef = new MetricsDefManager();//metrics and alert definitions, builtin and user defined
@@ -153,6 +154,7 @@ public void afterPropertiesSet() throws Exception
153154

154155
logger.info("Initialize AutoScanner ...");
155156
this.myperfConfig.init(this);
157+
this.snmpSettings.init(this);
156158
if(this.myperfConfig.isConfigured())
157159
{
158160
this.initMetricsDB(); //move metrics db creation and initialization away from scanner
@@ -481,6 +483,10 @@ public MyPerfConfiguration getMyperfConfig() {
481483
return myperfConfig;
482484
}
483485

486+
public SNMPSettings getSnmpSettings() {
487+
return snmpSettings;
488+
}
489+
484490
public boolean initMetricsDB()
485491
{
486492
if(!this.getMyperfConfig().isConfigured())

0 commit comments

Comments
 (0)