public class HostRoleCommandFactoryImpl extends Object implements HostRoleCommandFactory
Constructor and Description |
---|
HostRoleCommandFactoryImpl(com.google.inject.Injector injector) |
Modifier and Type | Method and Description |
---|---|
HostRoleCommand |
create(Host host,
Role role,
ServiceComponentHostEvent event,
RoleCommand command,
boolean retryAllowed,
boolean autoSkipFailure)
Constructor via factory.
|
HostRoleCommand |
create(String hostName,
Role role,
ServiceComponentHostEvent event,
RoleCommand command)
Constructor via factory.
|
HostRoleCommand |
create(String hostName,
Role role,
ServiceComponentHostEvent event,
RoleCommand command,
boolean retryAllowed,
boolean autoSkipFailure)
Constructor via factory.
|
HostRoleCommand |
createExisting(HostRoleCommandEntity hostRoleCommandEntity)
Constructor via factory
|
@Inject public HostRoleCommandFactoryImpl(com.google.inject.Injector injector)
public HostRoleCommand create(String hostName, Role role, ServiceComponentHostEvent event, RoleCommand command)
create
in interface HostRoleCommandFactory
hostName
- Host namerole
- Action to runevent
- Event on the host and componentcommand
- Type of commandpublic HostRoleCommand create(String hostName, Role role, ServiceComponentHostEvent event, RoleCommand command, boolean retryAllowed, boolean autoSkipFailure)
create
in interface HostRoleCommandFactory
hostName
- Host namerole
- Action to runevent
- Event on the host and componentcommand
- Type of commandretryAllowed
- Whether the command can be repeatedautoSkipFailure
- true
if the command should be automatically skipped if it
fails.public HostRoleCommand create(Host host, Role role, ServiceComponentHostEvent event, RoleCommand command, boolean retryAllowed, boolean autoSkipFailure)
create
in interface HostRoleCommandFactory
host
- Host objectrole
- Action to runevent
- Event on the host and componentcommand
- Type of commandretryAllowed
- Whether the command can be repeatedautoSkipFailure
- true
if the command should be automatically skipped if it
fails.public HostRoleCommand createExisting(HostRoleCommandEntity hostRoleCommandEntity)
createExisting
in interface HostRoleCommandFactory
hostRoleCommandEntity
- Object to copy fields from.Copyright © 2022 Apache Software Foundation. All rights reserved.