public static class SchedulingEvent.Builder extends InternalEvent.InternalEventBuilder<SchedulingEvent>
nodeName
name, parentBuilder
Constructor and Description |
---|
Builder(Node.Builder parentBuilder,
SchedulingEvent instance)
Constructor
|
Builder(Node.Builder parentBuilder,
String name,
String nodeName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
SchedulingEvent.Builder |
after(String targetEventName)
Sets the blocking before the defined stack trace of the given stack trace event name
|
SchedulingEvent.Builder |
before(String targetEventName)
Sets the blocking after the defined stack trace of the given stack trace event name
|
SchedulingEvent |
build()
This method should be implemented by all of the builders and should build the object that this builder is
responsible for
|
SchedulingEvent.Builder |
operation(SchedulingOperation operation)
Sets the operation to either blocking or unblocking
|
protected void |
returnToParent(SchedulingEvent builtObj)
This method should be implemented by all of the builders and should call a method in the parent builder to add
the built object to the parent builder
|
getNodeName
and, getName
public Builder(Node.Builder parentBuilder, String name, String nodeName)
parentBuilder
- the parent builder object for this buildername
- the name of the scheduling event to be builtnodeName
- the node name to apply scheduling operation inpublic Builder(Node.Builder parentBuilder, SchedulingEvent instance)
parentBuilder
- the parent builder object for this builderinstance
- a scheduling event object instance to be changedpublic SchedulingEvent.Builder operation(SchedulingOperation operation)
operation
- the type of operation for this eventpublic SchedulingEvent.Builder before(String targetEventName)
targetEventName
- a stack trace event namepublic SchedulingEvent.Builder after(String targetEventName)
targetEventName
- a stack trace event namepublic SchedulingEvent build()
DeploymentEntity.BuilderBase
build
in class DeploymentEntity.BuilderBase<SchedulingEvent,Node.Builder>
protected void returnToParent(SchedulingEvent builtObj)
DeploymentEntity.BuilderBase
returnToParent
in class DeploymentEntity.BuilderBase<SchedulingEvent,Node.Builder>
Copyright © 2019. All rights reserved.