@InterfaceAudience.Private @InterfaceStability.Unstable public class FSActionBuilder extends NodeBuilderBaseImpl<FSActionBuilder> implements Builder<FSAction>
FSAction.
The properties of the builder can only be set once, an attempt to set them a second time will trigger
an IllegalStateException. The properties that are lists are an exception to this rule, of course multiple
elements can be added / removed.
Builder instances can be used to build several elements, although properties already set cannot be changed after
a call to build() either.
| Modifier and Type | Method and Description |
|---|---|
FSAction |
build()
Creates a new
FSAction object with the properties stores in this builder. |
FSActionBuilder |
clearChgrps()
Removes all
Chgrp objects that are registered with this builder. |
FSActionBuilder |
clearChmods()
Removes all
Chmod objects that are registered with this builder. |
FSActionBuilder |
clearDeletes()
Removes all
Delete objects that are registered with this builder. |
FSActionBuilder |
clearJobXmls()
Removes all job XMLs that are registered with this builder.
|
FSActionBuilder |
clearMkdirs()
Removes all
Mkdir objects that are registered with this builder. |
FSActionBuilder |
clearMoves()
Removes all
Move objects that are registered with this builder. |
FSActionBuilder |
clearTouchzs()
Removes all
Touchz objects that are registered with this builder. |
static FSActionBuilder |
create()
Creates and returns an empty builder.
|
static FSActionBuilder |
createFromExistingAction(Node action)
Create and return a new
FSActionBuilder that is based on an already built
FSAction object. |
protected FSActionBuilder |
getRuntimeSelfReference() |
FSActionBuilder |
withChgrp(Chgrp chgrp)
Registers a
Chgrp object with this builder. |
FSActionBuilder |
withChmod(Chmod chmod)
Registers a
Chmod object with this builder. |
FSActionBuilder |
withConfigProperty(String key,
String value)
Registers a configuration property (a key-value pair) with this builder.
|
FSActionBuilder |
withDelete(Delete delete)
Registers a
Delete object with this builder. |
FSActionBuilder |
withJobXml(String jobXml)
Registers a job XML with this builder.
|
FSActionBuilder |
withMkdir(Mkdir mkdir)
Registers a
Mkdir object with this builder. |
FSActionBuilder |
withMove(Move move)
Registers a
Move object with this builder. |
FSActionBuilder |
withNameNode(String nameNode)
Registers a name node.
|
FSActionBuilder |
withoutChgrp(Chgrp chgrp)
Removes a
Chgrp object if it is registered with this builder, otherwise does nothing. |
FSActionBuilder |
withoutChmod(Chmod chmod)
Removes a
Chmod object if it is registered with this builder, otherwise does nothing. |
FSActionBuilder |
withoutDelete(Delete delete)
Removes a
Delete object if it is registered with this builder, otherwise does nothing. |
FSActionBuilder |
withoutJobXml(String jobXml)
Removes a job XML if it is registered with this builder, otherwise does nothing.
|
FSActionBuilder |
withoutMkdir(Mkdir mkdir)
Removes a
Mkdir object if it is registered with this builder, otherwise does nothing. |
FSActionBuilder |
withoutMove(Move move)
Removes a
Move object if it is registered with this builder, otherwise does nothing. |
FSActionBuilder |
withoutTouchz(Touchz touchz)
Removes a
Touchz object if it is registered with this builder, otherwise does nothing. |
FSActionBuilder |
withTouchz(Touchz touchz)
Registers a
Touchz object with this builder. |
addAsChildToAllParents, clearCredentials, clearParents, withCredential, withErrorHandler, withName, withoutCredential, withoutErrorHandler, withoutParent, withParent, withParentDefaultConditional, withParentWithCondition, withRetryInterval, withRetryMax, withRetryPolicypublic static FSActionBuilder create()
public static FSActionBuilder createFromExistingAction(Node action)
FSActionBuilder that is based on an already built
FSAction object. The properties of the builder will initially be the same as those of the
provided FSAction object, but it is possible to modify them once.action - The FSAction object on which this FSActionBuilder will be based.FSActionBuilder that is based on a previously built FSAction object.public FSActionBuilder withNameNode(String nameNode)
nameNode - The string representing the name node.IllegalStateException - if a name node has already been set on this builder.public FSActionBuilder withJobXml(String jobXml)
jobXml - The job XML to register.public FSActionBuilder withoutJobXml(String jobXml)
jobXml - The job XML to remove.public FSActionBuilder clearJobXmls()
public FSActionBuilder withConfigProperty(String key, String value)
key - The name of the property to set.value - The value of the property to set.IllegalStateException - if the provided key has already been set on this builder.public FSActionBuilder withDelete(Delete delete)
Delete object with this builder.delete - The Delete object to register.public FSActionBuilder withoutDelete(Delete delete)
Delete object if it is registered with this builder, otherwise does nothing.delete - The Delete object to remove.public FSActionBuilder clearDeletes()
Delete objects that are registered with this builder.public FSActionBuilder withMkdir(Mkdir mkdir)
Mkdir object with this builder.mkdir - The Mkdir object to register.public FSActionBuilder withoutMkdir(Mkdir mkdir)
Mkdir object if it is registered with this builder, otherwise does nothing.mkdir - The Mkdir object to remove.public FSActionBuilder clearMkdirs()
Mkdir objects that are registered with this builder.public FSActionBuilder withMove(Move move)
Move object with this builder.move - The Move object to register.public FSActionBuilder withoutMove(Move move)
Move object if it is registered with this builder, otherwise does nothing.move - The Move object to remove.public FSActionBuilder clearMoves()
Move objects that are registered with this builder.public FSActionBuilder withChmod(Chmod chmod)
Chmod object with this builder.chmod - The Chmod object to register.public FSActionBuilder withoutChmod(Chmod chmod)
Chmod object if it is registered with this builder, otherwise does nothing.chmod - The Chmod object to remove.public FSActionBuilder clearChmods()
Chmod objects that are registered with this builder.public FSActionBuilder withTouchz(Touchz touchz)
Touchz object with this builder.touchz - The Touchz object to register.public FSActionBuilder withoutTouchz(Touchz touchz)
Touchz object if it is registered with this builder, otherwise does nothing.touchz - The Touchz object to remove.public FSActionBuilder clearTouchzs()
Touchz objects that are registered with this builder.public FSActionBuilder withChgrp(Chgrp chgrp)
Chgrp object with this builder.chgrp - The Chgrp object to register.public FSActionBuilder withoutChgrp(Chgrp chgrp)
Chgrp object if it is registered with this builder, otherwise does nothing.chgrp - The Chgrp object to remove.public FSActionBuilder clearChgrps()
Chgrp objects that are registered with this builder.public FSAction build()
protected FSActionBuilder getRuntimeSelfReference()
getRuntimeSelfReference in class NodeBuilderBaseImpl<FSActionBuilder>Copyright © 2021 Apache Software Foundation. All rights reserved.