@ProviderType
public interface TaskResourceGroup
| Modifier and Type | Method and Description | 
|---|---|
| @Nullable TaskResource | getActiveResource()Return the first resource if it either needs to be installed or uninstalled. | 
| @Nullable java.util.Iterator<TaskResource> | getActiveResourceIterator()Return an iterator over all active resources in this group if there is more than just
 one active resourcew. | 
| @Nullable java.lang.String | getAlias()Get the current alias for this group. | 
| @Nullable TaskResource | getNextActiveResource()If there is more than the active resource in the group, return the second
 resource from the group. | 
| void | setFinishState(ResourceState state)Set the finish state for the active resource. | 
| void | setFinishState(ResourceState state,
              java.lang.String alias)Set the finish state for the active resource and register an alias. | 
| void | setFinishState(ResourceState state,
              java.lang.String alias,
              java.lang.String error)Set the finish state for the active resource and register an alias. | 
@Nullable @Nullable TaskResource getActiveResource()
@Nullable @Nullable TaskResource getNextActiveResource()
null.@Nullable @Nullable java.util.Iterator<TaskResource> getActiveResourceIterator()
void setFinishState(ResourceState state)
state - The finish state.void setFinishState(ResourceState state, java.lang.String alias)
setFinishState(ResourceState)
 but in addition registers an alias id for the resource.state - The finish state.alias - The alias for this group (may be null).setFinishState(ResourceState)void setFinishState(ResourceState state, java.lang.String alias, java.lang.String error)
setFinishState(ResourceState)
 but in addition registers an alias id for the resource and an error text.state - The finish state.alias - The alias for this group (may be null).error - The error text explaining why the finish state was set (may be null) .setFinishState(ResourceState)@Nullable @Nullable java.lang.String getAlias()
null.Copyright © 2022 The Apache Software Foundation. All rights reserved.