final SnmpCollection resourceTypeCollection = new SnmpCollection(); resourceTypeCollection.setName("__resource_type_collection");
/** * Creates the basic SNMP collection. * * @return the basic example SNMP collection */ public SnmpCollection createBasicSnmpCollection() { SnmpCollection collection = new SnmpCollection(); collection.setName("New Collection"); collection.setSnmpStorageFlag("select"); Rrd rrd = new Rrd(); rrd.setStep(300); rrd.addRra("RRA:AVERAGE:0.5:1:2016"); rrd.addRra("RRA:AVERAGE:0.5:12:1488"); rrd.addRra("RRA:AVERAGE:0.5:288:366"); rrd.addRra("RRA:MAX:0.5:288:366"); rrd.addRra("RRA:MIN:0.5:288:366"); collection.setRrd(rrd); return collection; }
/** * Creates the basic SNMP collection. * * @return the basic example SNMP collection */ public SnmpCollection createBasicSnmpCollection() { SnmpCollection collection = new SnmpCollection(); collection.setName("New Collection"); collection.setSnmpStorageFlag("select"); Rrd rrd = new Rrd(); rrd.setStep(300); rrd.addRra("RRA:AVERAGE:0.5:1:2016"); rrd.addRra("RRA:AVERAGE:0.5:12:1488"); rrd.addRra("RRA:AVERAGE:0.5:288:366"); rrd.addRra("RRA:MAX:0.5:288:366"); rrd.addRra("RRA:MIN:0.5:288:366"); collection.setRrd(rrd); return collection; }
@Override public SnmpCollection clone() { final SnmpCollection newCollection = new SnmpCollection(); newCollection.setGroups(getGroups()); newCollection.setIncludeCollections(getIncludeCollections()); newCollection.setMaxVarsPerPdu(getMaxVarsPerPdu()); newCollection.setName(getName()); newCollection.setResourceTypes(getResourceTypes()); newCollection.setRrd(getRrd()); newCollection.setSnmpStorageFlag(getSnmpStorageFlag()); newCollection.setSystems(getSystems()); return newCollection; } }