Package net.sf.eBus.client.monitor
Class RQThreadReport.Builder
- java.lang.Object
 - 
- net.sf.eBus.messages.EMessageObject.Builder<M>
 - 
- net.sf.eBus.messages.EMessage.Builder<M,B>
 - 
- net.sf.eBus.messages.ENotificationMessage.Builder<RQThreadReport,RQThreadReport.Builder>
 - 
- net.sf.eBus.client.monitor.RQThreadReport.Builder
 
 
 
 
 
- 
- Enclosing class:
 - RQThreadReport
 
public static final class RQThreadReport.Builder extends ENotificationMessage.Builder<RQThreadReport,RQThreadReport.Builder>
Use this builder to create anRQThreadReportinstance. A new builder instance is obtained viaRQThreadReport.builder(). 
- 
- 
Field Summary
- 
Fields inherited from class net.sf.eBus.messages.ENotificationMessage.Builder
mPosition, mPubId 
- 
Fields inherited from class net.sf.eBus.messages.EMessageObject.Builder
mTargetClass 
 - 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RQThreadReportbuildImpl()ReturnsRQThreadreport notification based onthisbuilder's field settings.RQThreadReport.BuilderjvmIdentifier(java.lang.String jvmId)Sets JVM identifier to given value.RQThreadReport.BuilderrunQueueThreads(RQThreadInfo[] rqThreads)Sets run queue thread information array to given value.protected Validatorvalidate(Validator problems)Checks if JVM identifier and run queue thread information array are set.- 
Methods inherited from class net.sf.eBus.messages.ENotificationMessage.Builder
position, publisherId 
- 
Methods inherited from class net.sf.eBus.messages.EMessage.Builder
copy, subject, timestamp, timestamp 
- 
Methods inherited from class net.sf.eBus.messages.EMessageObject.Builder
build 
 - 
 
 - 
 
- 
- 
Method Detail
- 
validate
protected Validator validate(Validator problems)
Checks if JVM identifier and run queue thread information array are set. Failure to set both fields or the necessaryENotificationMessagefields results in an invalid report.- Overrides:
 validatein classEMessage.Builder<RQThreadReport,RQThreadReport.Builder>- Parameters:
 problems- place validation failures into this list.- Returns:
 problems- See Also:
 Validator
 
- 
buildImpl
protected RQThreadReport buildImpl()
ReturnsRQThreadreport notification based onthisbuilder's field settings.- Specified by:
 buildImplin classEMessageObject.Builder<RQThreadReport>- Returns:
 - new 
RQThreadReportnotification. 
 
- 
jvmIdentifier
public RQThreadReport.Builder jvmIdentifier(java.lang.String jvmId)
Sets JVM identifier to given value. This value should uniquely identify the JVM reporting the run queue thread information. May not benullor an empty string.- Parameters:
 jvmId- JVM identifier.- Returns:
 this Builderinstance.- Throws:
 java.lang.IllegalArgumentException- ifjvmIdis eithernullor an empty string.
 
- 
runQueueThreads
public RQThreadReport.Builder runQueueThreads(RQThreadInfo[] rqThreads)
Sets run queue thread information array to given value.- Parameters:
 rqThreads- run queue thread information.- Returns:
 this Builderinstance.- Throws:
 java.lang.NullPointerException- ifrqThreadsisnull.java.lang.IllegalArgumentException- ifrqThreadsis an empty array.
 
 - 
 
 -