public class LogicalRequest extends Request
Constructor and Description |
---|
LogicalRequest(Long id,
TopologyRequest request,
ClusterTopology topology) |
LogicalRequest(Long id,
TopologyRequest request,
ClusterTopology topology,
TopologyLogicalRequestEntity requestEntity) |
constructNewPersistenceEntity, filtersFromEntity, getClusterHostInfo, getClusterId, getClusterName, getCommandName, getCreateTime, getEndTime, getInputs, getOperationLevel, getRequestContext, getRequestId, getRequestScheduleId, getRequestType, getResourceFilters, getStages, getStartTime, getStatus, getUserName, isExclusive, operationLevelFromEntity, setClusterHostInfo, setCommandName, setEndTime, setExclusive, setInputs, setOperationLevel, setRequestContext, setRequestScheduleId, setRequestType, setResourceFilters, setStages, setStartTime, setStatus, setUserName, toString
public LogicalRequest(Long id, TopologyRequest request, ClusterTopology topology) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
public LogicalRequest(Long id, TopologyRequest request, ClusterTopology topology, TopologyLogicalRequestEntity requestEntity) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
public org.apache.ambari.server.topology.HostOfferResponse offer(Host host)
public List<HostRoleCommand> getCommands()
getCommands
in class Request
public Collection<String> getReservedHosts()
public boolean hasPendingHostRequests()
public Collection<HostRequest> getCompletedHostRequests()
public int getPendingHostRequestCount()
public Collection<HostRequest> getHostRequests()
public Collection<HostRequest> removePendingHostRequests(String hostGroupName)
hostGroupName
- public Map<String,Collection<String>> getProjectedTopology()
public Collection<StageEntity> getStageEntities()
public RequestStatusResponse getRequestStatus()
public Map<Long,HostRoleCommandStatusSummaryDTO> getStageSummaries()
public Set<HostRequest> removeHostRequestByHostName(String hostName)
hostName
- name of the hostpublic boolean isFinished()
public boolean isSuccessful()
public com.google.common.base.Optional<String> getFailureReason()
public CalculatedStatus calculateStatus()
Copyright © 2022 Apache Software Foundation. All rights reserved.