Package net.sf.eBusx.monitor
Class ApplicationInfoReply.Builder
- java.lang.Object
-
- net.sf.eBus.messages.EMessageObject.Builder<M>
-
- net.sf.eBus.messages.EMessage.Builder<M,B>
-
- net.sf.eBus.messages.EReplyMessage.Builder<ApplicationInfoReply,ApplicationInfoReply.Builder>
-
- net.sf.eBusx.monitor.ApplicationInfoReply.Builder
-
- Enclosing class:
- ApplicationInfoReply
public static final class ApplicationInfoReply.Builder extends EReplyMessage.Builder<ApplicationInfoReply,ApplicationInfoReply.Builder>
Builder class used to create anApplicationInfoReply
message. A newBuilder
instance is obtained fromApplicationInfoReply.builder()
.
-
-
Field Summary
-
Fields inherited from class net.sf.eBus.messages.EReplyMessage.Builder
mReplyReason, mReplyStatus
-
Fields inherited from class net.sf.eBus.messages.EMessageObject.Builder
mTargetClass
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationInfoReply.Builder
appName(java.lang.String name)
Sets application name to given value.ApplicationInfoReply.Builder
appVersion(java.lang.String version)
ApplicationInfoReply.Builder
attributes(EField attributes)
protected ApplicationInfoReply
buildImpl()
Returns eBus message instance built from the configured properties.ApplicationInfoReply.Builder
copyright(java.lang.String copyright)
ApplicationInfoReply.Builder
description(java.lang.String description)
ApplicationInfoReply.Builder
hostName(java.lang.String name)
Sets host name to given value.protected Validator
validate(Validator problems)
Checks if reply status is set.-
Methods inherited from class net.sf.eBus.messages.EReplyMessage.Builder
replyReason, replyStatus
-
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
-
buildImpl
protected ApplicationInfoReply buildImpl()
Description copied from class:EMessageObject.Builder
Returns eBus message instance built from the configured properties. Note: the builder configuration wasvalidated
prior to calling this method. The message object may now be constructed.- Specified by:
buildImpl
in classEMessageObject.Builder<ApplicationInfoReply>
- Returns:
- target message class instance.
-
validate
protected Validator validate(Validator problems)
Description copied from class:EReplyMessage.Builder
Checks if reply status is set. Note that the reply reason is not required to be set; it may benull
or an empty string.- Overrides:
validate
in classEReplyMessage.Builder<ApplicationInfoReply,ApplicationInfoReply.Builder>
- Parameters:
problems
- used to check field validity and collect discovered invalid fields.- Returns:
problems
to allow for method chaining.- See Also:
Validator
-
hostName
public ApplicationInfoReply.Builder hostName(java.lang.String name)
Sets host name to given value. This name does not need to be a network host name but any name meaningful to the application and those monitoring it.- Parameters:
name
- host name.- Returns:
this Builder
instance.- Throws:
java.lang.IllegalArgumentException
- ifname
is eithernull
or empty.
-
appName
public ApplicationInfoReply.Builder appName(java.lang.String name)
Sets application name to given value.- Parameters:
name
- application name.- Returns:
this Builder
instance.- Throws:
java.lang.IllegalArgumentException
- ifname
is eithernull
or empty.
-
appVersion
public ApplicationInfoReply.Builder appVersion(java.lang.String version)
-
copyright
public ApplicationInfoReply.Builder copyright(@Nullable java.lang.String copyright)
-
description
public ApplicationInfoReply.Builder description(@Nullable java.lang.String description)
-
attributes
public ApplicationInfoReply.Builder attributes(@Nullable EField attributes)
-
-