Package com.sun.identity.monitoring
Class LinkTrapGenerator
- java.lang.Object
-
- java.lang.Thread
-
- com.sun.identity.monitoring.LinkTrapGenerator
-
- All Implemented Interfaces:
LinkTrapGeneratorMBean,Runnable,MBeanRegistration
public class LinkTrapGenerator extends Thread implements LinkTrapGeneratorMBean, MBeanRegistration
The LinkTrapGenerator class is used by the agent to trigger the emission of SNMP v1 or v3 traps at a specific rate and according to a specific entry from the "IfTable".
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description LinkTrapGenerator(int nbTraps)Constructors.LinkTrapGenerator(int ifIndex, int nbTraps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetErrors()IntegergetIfIndex()IntegergetInterval()IntegergetSuccesses()voidpostDeregister()voidpostRegister(Boolean registrationDone)voidpreDeregister()ObjectNamepreRegister(MBeanServer server, ObjectName name)MBean registration interface implementation.voidrun()voidsetIfIndex(Integer x)voidsetInterval(Integer val)voidtriggerTrap()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
preRegister
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
MBean registration interface implementation.- Specified by:
preRegisterin interfaceMBeanRegistration- Throws:
Exception
-
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegisterin interfaceMBeanRegistration
-
preDeregister
public void preDeregister() throws Exception- Specified by:
preDeregisterin interfaceMBeanRegistration- Throws:
Exception
-
postDeregister
public void postDeregister()
- Specified by:
postDeregisterin interfaceMBeanRegistration
-
getIfIndex
public Integer getIfIndex()
- Specified by:
getIfIndexin interfaceLinkTrapGeneratorMBean
-
setIfIndex
public void setIfIndex(Integer x)
- Specified by:
setIfIndexin interfaceLinkTrapGeneratorMBean
-
getSuccesses
public Integer getSuccesses()
- Specified by:
getSuccessesin interfaceLinkTrapGeneratorMBean
-
getErrors
public Integer getErrors()
- Specified by:
getErrorsin interfaceLinkTrapGeneratorMBean
-
getInterval
public Integer getInterval()
- Specified by:
getIntervalin interfaceLinkTrapGeneratorMBean
-
setInterval
public void setInterval(Integer val)
- Specified by:
setIntervalin interfaceLinkTrapGeneratorMBean
-
triggerTrap
public void triggerTrap()
-
-