/** * Returns the up-time * * @jmx:managed-attribute */ public long getUptime() { return this.clock.uptime(); }
protected BindEntry clone(){ BindEntry bindEntry = new BindEntry(oid, mName, aName); bindEntry.setAttr(attr); bindEntry.setMbean(mbean); bindEntry.setReadWrite(isReadWrite); bindEntry.setTable(isTable); return bindEntry; } }
/** * Returns the current trap counter reading * * @jmx:managed-attribute */ public long getTrapCount() { return this.trapCounter.peek(); }
/** * CTOR - Initialises the factory with the known handled types and maker * instances **/ public SnmpVarBindFactory() { makers.put("java.lang.Boolean", new SnmpBooleanMaker()); makers.put("java.lang.String", new SnmpOctetStringMaker()); makers.put("java.lang.Integer", new SnmpInt32Maker()); makers.put("java.lang.Long", new SnmpLongMaker()); makers.put("java.math.BigInteger", new SnmpCounter64Maker()); makers.put("java.util.Date", new SnmpDateMaker()); }
/** * Create TrapFactorySupport **/ public TrapFactorySupport() { this.snmpVBFactory = new SnmpVarBindFactory(); }
/** * Sets the agent bind address * * @jmx:managed-attribute */ public void setBindAddress(String bindAddress) throws UnknownHostException { this.bindAddress = toInetAddress(bindAddress); }
/** * Returns the difference, measured in milliseconds, between the * instantiation time and midnight, January 1, 1970 UTC. * * @jmx:managed-attribute */ public long getInstantiationTime() { return this.clock.instantiationTime(); }
@Override public void removeNotifications(List<Mapping> notifications) { trapEmitter.removeNotifications(notifications); }
@Override public void removeAttributeMappings(List<ManagedBean> mappings) { requestHandler.removeAttributeMappings(mappings); }
@Override public void addAttributeMappings(List<ManagedBean> mappings) { requestHandler.addAttributeMappings(mappings); }
@Override public void addNotifications(List<Mapping> notifications) { trapEmitter.addNotifications(notifications); }
@Override public long getNextJMXNotificationSequenceNumber() { return getNextNotificationSequenceNumber(); }
/** * CTOR - Initialises the factory with the known handled types and maker * instances **/ public SnmpVarBindFactory() { makers.put("java.lang.Boolean", new SnmpBooleanMaker()); makers.put("java.lang.String", new SnmpOctetStringMaker()); makers.put("java.lang.Integer", new SnmpInt32Maker()); makers.put("java.lang.Long", new SnmpLongMaker()); makers.put("java.math.BigInteger", new SnmpCounter64Maker()); makers.put("java.util.Date", new SnmpDateMaker()); }
protected BindEntry clone(){ BindEntry bindEntry = new BindEntry(oid, mName, aName); bindEntry.setAttr(attr); bindEntry.setMbean(mbean); bindEntry.setReadWrite(isReadWrite); bindEntry.setTable(isTable); return bindEntry; } }
/** * Returns the up-time * * @jmx:managed-attribute */ public long getUptime() { return this.clock.uptime(); }
/** * Returns the current trap counter reading * * @jmx:managed-attribute */ public long getTrapCount() { return this.trapCounter.peek(); }
/** * Create TrapFactorySupport **/ public TrapFactorySupport() { this.snmpVBFactory = new SnmpVarBindFactory(); }
/** * Sets the agent bind address * * @jmx:managed-attribute */ public void setBindAddress(String bindAddress) throws UnknownHostException { this.bindAddress = toInetAddress(bindAddress); }
/** * Returns the difference, measured in milliseconds, between the * instantiation time and midnight, January 1, 1970 UTC. * * @jmx:managed-attribute */ public long getInstantiationTime() { return this.clock.instantiationTime(); }
@Override public void removeNotifications(List<Mapping> notifications) { trapEmitter.removeNotifications(notifications); }