id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
206414745_1842 | @Override
public OperationResult execute(final MessageFrame frame, final EVM evm) {
final UInt256 key = UInt256.fromBytes(frame.popStackItem());
final UInt256 value = UInt256.fromBytes(frame.popStackItem());
final MutableAccount account =
frame.getWorldState().getAccount(frame.getRecipientAddress()).getMuta... |
206414745_1843 | @Override
protected Address targetContractAddress(final MessageFrame frame) {
final Address sender = frame.getRecipientAddress();
final UInt256 offset = UInt256.fromBytes(frame.getStackItem(1));
final UInt256 length = UInt256.fromBytes(frame.getStackItem(2));
final Bytes32 salt = frame.getStackItem(3);
final ... |
206414745_1844 | @Override
public OperationResult execute(final MessageFrame frame, final EVM evm) {
final UInt256 from = UInt256.fromBytes(frame.popStackItem());
final UInt256 length = UInt256.fromBytes(frame.popStackItem());
final Gas cost = gasCalculator().memoryExpansionGasCost(frame, from, length);
final Optional<Gas> opti... |
206414745_1845 | public Hash getBlockHash(final long blockNumber) {
final Hash cachedHash = hashByNumber.get(blockNumber);
if (cachedHash != null) {
return cachedHash;
}
while (searchStartHeader != null && searchStartHeader.getNumber() - 1 > blockNumber) {
searchStartHeader = blockchain.getBlockHeader(searchStartHeader.... |
206414745_1846 | public Hash getBlockHash(final long blockNumber) {
final Hash cachedHash = hashByNumber.get(blockNumber);
if (cachedHash != null) {
return cachedHash;
}
while (searchStartHeader != null && searchStartHeader.getNumber() - 1 > blockNumber) {
searchStartHeader = blockchain.getBlockHeader(searchStartHeader.... |
206414745_1847 | @VisibleForTesting
Operation operationAtOffset(final Code code, final int contractAccountVersion, final int offset) {
final Bytes bytecode = code.getBytes();
// If the length of the program code is shorter than the required offset, halt execution.
if (offset >= bytecode.size()) {
return endOfScriptStop;
}
... |
206414745_1848 | @VisibleForTesting
Operation operationAtOffset(final Code code, final int contractAccountVersion, final int offset) {
final Bytes bytecode = code.getBytes();
// If the length of the program code is shorter than the required offset, halt execution.
if (offset >= bytecode.size()) {
return endOfScriptStop;
}
... |
206414745_1849 | @Override
public void traceExecution(final MessageFrame frame, final ExecuteOperation executeOperation) {
final Operation currentOperation = frame.getCurrentOperation();
final int depth = frame.getMessageStackDepth();
final String opcode = currentOperation.getName();
final int pc = frame.getPC();
final Gas ga... |
206414745_1850 | public static List<Node<Bytes>> decodeNodes(final Bytes nodeRlp) {
Node<Bytes> node = decode(nodeRlp);
List<Node<Bytes>> nodes = new ArrayList<>();
nodes.add(node);
final List<Node<Bytes>> toProcess = new ArrayList<>();
toProcess.addAll(node.getChildren());
while (!toProcess.isEmpty()) {
final Node<Byte... |
206414745_1851 | public static Stream<Node<Bytes>> breadthFirstDecoder(
final NodeLoader nodeLoader, final Bytes32 rootHash, final int maxDepth) {
checkArgument(maxDepth >= 0);
return Streams.stream(new BreadthFirstIterator(nodeLoader, rootHash, maxDepth));
} |
206414745_1852 | public static Stream<Node<Bytes>> breadthFirstDecoder(
final NodeLoader nodeLoader, final Bytes32 rootHash, final int maxDepth) {
checkArgument(maxDepth >= 0);
return Streams.stream(new BreadthFirstIterator(nodeLoader, rootHash, maxDepth));
} |
206414745_1853 | public static Stream<Node<Bytes>> breadthFirstDecoder(
final NodeLoader nodeLoader, final Bytes32 rootHash, final int maxDepth) {
checkArgument(maxDepth >= 0);
return Streams.stream(new BreadthFirstIterator(nodeLoader, rootHash, maxDepth));
} |
206414745_1854 | public static Stream<Node<Bytes>> breadthFirstDecoder(
final NodeLoader nodeLoader, final Bytes32 rootHash, final int maxDepth) {
checkArgument(maxDepth >= 0);
return Streams.stream(new BreadthFirstIterator(nodeLoader, rootHash, maxDepth));
} |
206414745_1855 | public static Stream<Node<Bytes>> breadthFirstDecoder(
final NodeLoader nodeLoader, final Bytes32 rootHash, final int maxDepth) {
checkArgument(maxDepth >= 0);
return Streams.stream(new BreadthFirstIterator(nodeLoader, rootHash, maxDepth));
} |
206414745_1856 | public static Bytes bytesToPath(final Bytes bytes) {
final MutableBytes path = MutableBytes.create(bytes.size() * 2 + 1);
int j = 0;
for (int i = 0; i < bytes.size(); i += 1, j += 2) {
final byte b = bytes.get(i);
path.set(j, (byte) ((b >>> 4) & 0x0f));
path.set(j + 1, (byte) (b & 0x0f));
}
path.s... |
206414745_1857 | public static Bytes encode(final Bytes path) {
int size = path.size();
final boolean isLeaf = size > 0 && path.get(size - 1) == LEAF_TERMINATOR;
if (isLeaf) {
size = size - 1;
}
final MutableBytes encoded = MutableBytes.create((size + 2) / 2);
int i = 0;
int j = 0;
if (size % 2 == 1) {
// add fi... |
206414745_1858 | public static Bytes decode(final Bytes encoded) {
final int size = encoded.size();
checkArgument(size > 0);
final byte metadata = encoded.get(0);
checkArgument((metadata & 0xc0) == 0, "Invalid compact encoding");
final boolean isLeaf = (metadata & 0x20) != 0;
final int pathLength = ((size - 1) * 2) + (isLea... |
206414745_1859 | @Override
public void visit(final ExtensionNode<V> extensionNode) {
handler.accept(extensionNode);
acceptAndUnload(extensionNode.getChild());
} |
206414745_1860 | @Override
public void visit(final ExtensionNode<V> extensionNode) {
handler.accept(extensionNode);
acceptAndUnload(extensionNode.getChild());
} |
206414745_1861 | @Override
public Optional<EthHashBlockMiner> startAsyncMining(
final Subscribers<MinedBlockObserver> observers,
final Subscribers<EthHashObserver> ethHashObservers,
final BlockHeader parentHeader) {
if (coinbase.isEmpty()) {
throw new CoinbaseNotSetException("Unable to start mining without a coinbase.... |
206414745_1862 | public void setCoinbase(final Address coinbase) {
if (coinbase == null) {
throw new IllegalArgumentException("Coinbase cannot be unset.");
} else {
this.coinbase = Optional.of(Address.wrap(coinbase.copy()));
}
} |
206414745_1863 | public Optional<Long> getHashesPerSecond() {
return nonceSolver.hashesPerSecond();
} |
206414745_1864 | public TransactionSelectionResults buildTransactionListForBlock() {
pendingTransactions.selectTransactions(this::evaluateTransaction);
return transactionSelectionResult;
} |
206414745_1865 | public TransactionSelectionResults buildTransactionListForBlock() {
pendingTransactions.selectTransactions(this::evaluateTransaction);
return transactionSelectionResult;
} |
206414745_1866 | public TransactionSelectionResults buildTransactionListForBlock() {
pendingTransactions.selectTransactions(this::evaluateTransaction);
return transactionSelectionResult;
} |
206414745_1867 | public TransactionSelectionResults buildTransactionListForBlock() {
pendingTransactions.selectTransactions(this::evaluateTransaction);
return transactionSelectionResult;
} |
206414745_1868 | public TransactionSelectionResults buildTransactionListForBlock() {
pendingTransactions.selectTransactions(this::evaluateTransaction);
return transactionSelectionResult;
} |
206414745_1869 | public TransactionSelectionResults buildTransactionListForBlock() {
pendingTransactions.selectTransactions(this::evaluateTransaction);
return transactionSelectionResult;
} |
206414745_1870 | public TransactionSelectionResults buildTransactionListForBlock() {
pendingTransactions.selectTransactions(this::evaluateTransaction);
return transactionSelectionResult;
} |
206414745_1871 | public TransactionSelectionResults buildTransactionListForBlock() {
pendingTransactions.selectTransactions(this::evaluateTransaction);
return transactionSelectionResult;
} |
206414745_1872 | public TransactionSelectionResults buildTransactionListForBlock() {
pendingTransactions.selectTransactions(this::evaluateTransaction);
return transactionSelectionResult;
} |
206414745_1873 | @Override
@VisibleForTesting
public BlockCreationTimeResult getNextTimestamp(final BlockHeader parentHeader) {
final long msSinceEpoch = clock.millis();
final long now = TimeUnit.SECONDS.convert(msSinceEpoch, TimeUnit.MILLISECONDS);
final long parentTimestamp = parentHeader.getTimestamp();
final long nextHeader... |
206414745_1874 | @Override
@VisibleForTesting
public BlockCreationTimeResult getNextTimestamp(final BlockHeader parentHeader) {
final long msSinceEpoch = clock.millis();
final long now = TimeUnit.SECONDS.convert(msSinceEpoch, TimeUnit.MILLISECONDS);
final long parentTimestamp = parentHeader.getTimestamp();
final long nextHeader... |
206414745_1875 | @Override
@VisibleForTesting
public BlockCreationTimeResult getNextTimestamp(final BlockHeader parentHeader) {
final long msSinceEpoch = clock.millis();
final long now = TimeUnit.SECONDS.convert(msSinceEpoch, TimeUnit.MILLISECONDS);
final long parentTimestamp = parentHeader.getTimestamp();
final long nextHeader... |
206414745_1876 | @Override
@VisibleForTesting
public BlockCreationTimeResult getNextTimestamp(final BlockHeader parentHeader) {
final long msSinceEpoch = clock.millis();
final long now = TimeUnit.SECONDS.convert(msSinceEpoch, TimeUnit.MILLISECONDS);
final long parentTimestamp = parentHeader.getTimestamp();
final long nextHeader... |
206414745_1877 | @Override
public Iterator<Long> iterator() {
return new Iterator<Long>() {
@Override
public boolean hasNext() {
return true;
}
@Override
public Long next() {
return nextValue++;
}
};
} |
206414745_1878 | @Override
public Iterator<Long> iterator() {
return new Iterator<Long>() {
@Override
public boolean hasNext() {
return true;
}
@Override
public Long next() {
return nextValue++;
}
};
} |
206414745_1879 | @Override
public Optional<Long> hashesPerSecond() {
if (sealerHashRate.size() <= 0) {
return localHashesPerSecond();
} else {
return remoteHashesPerSecond();
}
} |
207457953_1079 | @Override
public CompletableFuture<RegistrationResponse> registerJobManager(
final JobMasterId jobMasterId,
final ResourceID jobManagerResourceId,
final String jobManagerAddress,
final JobID jobId,
final Time timeout) {
checkNotNull(jobMasterId);
checkNotNull(jobManagerResourceId);
checkNotNull(jobManagerA... |
207457953_1080 | @Override
public CompletableFuture<RegistrationResponse> registerTaskExecutor(
final String taskExecutorAddress,
final ResourceID taskExecutorResourceId,
final int dataPort,
final HardwareDescription hardwareDescription,
final Time timeout) {
CompletableFuture<TaskExecutorGateway> taskExecutorGatewayFuture =... |
207457953_1126 | @Override
public CompletableFuture<Acknowledge> disconnectTaskManager(final ResourceID resourceID, final Exception cause) {
log.debug("Disconnect TaskExecutor {} because: {}", resourceID, cause.getMessage());
taskManagerHeartbeatManager.unmonitorTarget(resourceID);
slotPool.releaseTaskManager(resourceID, cause);
Tu... |
207457953_1127 | @Override
public void heartbeatFromTaskManager(final ResourceID resourceID, AccumulatorReport accumulatorReport) {
taskManagerHeartbeatManager.receiveHeartbeat(resourceID, accumulatorReport);
} |
207457953_1128 | boolean offerSlot(
final TaskManagerLocation taskManagerLocation,
final TaskManagerGateway taskManagerGateway,
final SlotOffer slotOffer) {
componentMainThreadExecutor.assertRunningInMainThread();
// check if this TaskManager is valid
final ResourceID resourceID = taskManagerLocation.getResourceID();
final Al... |
207457953_1129 | private void checkIdleSlot() {
// The timestamp in SlotAndTimestamp is relative
final long currentRelativeTimeMillis = clock.relativeTimeMillis();
final List<AllocatedSlot> expiredSlots = new ArrayList<>(availableSlots.size());
for (SlotAndTimestamp slotAndTimestamp : availableSlots.availableSlots.values()) {
if ... |
207457953_1130 | @Override
public Optional<ResourceID> failAllocation(final AllocationID allocationID, final Exception cause) {
componentMainThreadExecutor.assertRunningInMainThread();
final PendingRequest pendingRequest = pendingRequests.removeKeyB(allocationID);
if (pendingRequest != null) {
// request was still pending
failPe... |
207457953_1131 | @Override
public AllocatedSlotReport createAllocatedSlotReport(ResourceID taskManagerId) {
final Set<AllocatedSlot> availableSlotsForTaskManager = availableSlots.getSlotsForTaskManager(taskManagerId);
final Set<AllocatedSlot> allocatedSlotsForTaskManager = allocatedSlots.getSlotsForTaskManager(taskManagerId);
List<A... |
207457953_1189 | public SharedBuffer(KeyedStateStore stateStore, TypeSerializer<V> valueSerializer) {
this.eventsBuffer = stateStore.getMapState(
new MapStateDescriptor<>(
eventsStateName,
EventId.EventIdSerializer.INSTANCE,
new Lockable.LockableTypeSerializer<>(valueSerializer)));
this.entries = stateStore.getMapState(
... |
223551095_1003 | @Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{ clusterName=").append(clusterName)
.append(", clusterId=").append(clusterId)
.append(", provisioningState=").append(provisioningState)
.append(", desiredStackVersion=").append(desiredStackVersion)
.append(", to... |
223551095_1006 | public Long getId() {
return id;
} |
223551095_1007 | public long getLastStageId() {
return stages.isEmpty() ? -1 : stages.get(stages.size() - 1).getStageId();
} |
223551095_1008 | public State getProjectedState(String host, String component) {
RoleCommand lastCommand = null;
ListIterator<Stage> iterator = stages.listIterator(stages.size());
while (lastCommand == null && iterator.hasPrevious()) {
Stage stage = iterator.previous();
Map<String, Map<String, HostRoleCommand>> stageComma... |
223551095_1009 | public void persist() throws AmbariException {
if (!stages.isEmpty()) {
Request request = (null == actionRequest)
? requestFactory.createNewFromStages(stages, clusterHostInfo)
: requestFactory.createNewFromStages(stages, clusterHostInfo, actionRequest);
if (null != requestContext) {
requ... |
223551095_1010 | public void persist() throws AmbariException {
if (!stages.isEmpty()) {
Request request = (null == actionRequest)
? requestFactory.createNewFromStages(stages, clusterHostInfo)
: requestFactory.createNewFromStages(stages, clusterHostInfo, actionRequest);
if (null != requestContext) {
requ... |
223551095_1011 | public RequestStatusResponse getRequestStatusResponse() {
RequestStatusResponse response = null;
if (! stages.isEmpty()) {
response = new RequestStatusResponse(id);
List<HostRoleCommand> hostRoleCommands =
actionManager.getRequestTasks(id);
response.setRequestContext(actionManager.getRequestCont... |
223551095_1012 | @Override
protected PermissionEntity getPermission(String permissionName, ResourceEntity resourceEntity) throws AmbariException {
return (permissionName.equals(PermissionEntity.VIEW_USER_PERMISSION_NAME)) ?
viewUsePermission : super.getPermission(permissionName, resourceEntity);
} |
223551095_1013 | public Set<String> getPropertyIds() {
return propertyIds;
} |
223551095_1014 | public Set<String> checkPropertyIds(Set<String> propertyIds) {
if (!this.propertyIds.containsAll(propertyIds)) {
Set<String> unsupportedPropertyIds = new HashSet<>(propertyIds);
unsupportedPropertyIds.removeAll(combinedIds);
// If the property id is not in the set of known property ids we may still allow ... |
223551095_1015 | protected Set<String> getRequestPropertyIds(Request request, Predicate predicate) {
Set<String> propertyIds = request.getPropertyIds();
// if no properties are specified, then return them all
if (propertyIds == null || propertyIds.isEmpty()) {
return new HashSet<>(this.propertyIds);
}
propertyIds = new H... |
223551095_1016 | protected static boolean setResourceProperty(Resource resource, String propertyId, Object value,
Set<String> requestedIds) {
boolean contains = requestedIds.contains(propertyId) || isPropertyCategoryRequested(propertyId, requestedIds);
if (contains) {
if (LOG.isDebug... |
223551095_1017 | protected static boolean isPropertyRequested(String propertyId, Set<String> requestedIds) {
return requestedIds.contains(propertyId) ||
isPropertyCategoryRequested(propertyId, requestedIds) ||
isPropertyEntryRequested(propertyId, requestedIds);
} |
223551095_1018 | protected static boolean setResourceProperty(Resource resource, String propertyId, Object value,
Set<String> requestedIds) {
boolean contains = requestedIds.contains(propertyId) || isPropertyCategoryRequested(propertyId, requestedIds);
if (contains) {
if (LOG.isDebug... |
223551095_1019 | protected Map.Entry<String, Pattern> getRegexEntry(String id) {
Map.Entry<String, Pattern> regexEntry = null;
for (Map.Entry<String, Pattern> entry : patterns.entrySet()) {
Pattern pattern = entry.getValue();
Matcher matcher = pattern.matcher(id);
if (matcher.matches()) {
String key = entry.getKey... |
223551095_1020 | @Override
public Set<Resource> getResources() {
return resources;
} |
223551095_1021 | @Override
public boolean isSortedResponse() {
return sortedResponse;
} |
223551095_1022 | @Override
public boolean isPagedResponse() {
return pagedResponse;
} |
223551095_1023 | @Override
public int getTotalResourceCount() {
return totalResourceCount;
} |
223551095_1025 | @Override
public void addCategory(String id) {
String categoryKey = getCategoryKey(id);
if (!propertiesMap.containsKey(categoryKey)) {
propertiesMap.put(categoryKey, new HashMap<>());
}
} |
223551095_1028 | public String getQuickLinksProfileJson() {
return quickLinksProfileJson;
} |
223551095_1029 | public String getQuickLinksProfileJson() {
return quickLinksProfileJson;
} |
223551095_1030 | public String getQuickLinksProfileJson() {
return quickLinksProfileJson;
} |
223551095_1031 | public String getQuickLinksProfileJson() {
return quickLinksProfileJson;
} |
223551095_1032 | @Override
public RequestStatus createResources(Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
// we can't create instances directly
throw new UnsupportedOperationException("Not supported.");
} |
223551095_1033 | @Override
public Set<Resource> getResources(Request request, Predicate predicate) throws SystemException,
UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
Set<String> requestedIds = getRequestPropertyIds(request, predicate);
Set<Resource> resources = new HashSet<>();
... |
223551095_1034 | @Override
public RequestStatus updateResources(Request request, Predicate predicate) throws SystemException,
UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
IvoryService service = getService();
Iterator<Map<String,Object>> iterator = request.getProperties().iterator();
i... |
223551095_1035 | @Override
public RequestStatus deleteResources(Request request, Predicate predicate) throws SystemException,
UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
IvoryService service = getService();
// get all the instances that pass the predicate check
Set<Resource> resource... |
223551095_1036 | protected Map<String, Map<String, Map<String, String>>> calculateConfigurations(Request request) {
Map<String, Map<String, Map<String, String>>> configurations = new HashMap<>();
Map<String, Object> properties = request.getProperties().iterator().next();
for (String property : properties.keySet()) {
if (prope... |
223551095_1037 | protected Map<String, String> readUserContext(Request request) {
HashMap<String, String> userContext = new HashMap<>();
if (null != getRequestProperty(request, USER_CONTEXT_OPERATION_PROPERTY)) {
userContext.put(OPERATION_PROPERTY,
(String) getRequestProperty(request, USER_CONTEXT_OPERATION_... |
223551095_1038 | protected Map<String, Map<String, Map<String, String>>> calculateConfigurations(Request request) {
Map<String, Map<String, Map<String, String>>> configurations = new HashMap<>();
Map<String, Object> properties = request.getProperties().iterator().next();
for (String property : properties.keySet()) {
if (prope... |
223551095_1039 | public static String getInternalLevelName(String external)
throws IllegalArgumentException{
String refinedAlias = external.trim().toUpperCase();
for (String [] pair : LEVEL_ALIASES) {
if (pair[ALIAS_COLUMN].equals(refinedAlias)) {
return pair[INTERNAL_NAME_COLUMN];
}
}
String message = Str... |
223551095_1040 | public static String getExternalLevelName(String internal) {
for (String [] pair : LEVEL_ALIASES) {
if (pair[INTERNAL_NAME_COLUMN].equals(internal)) {
return pair[ALIAS_COLUMN];
}
}
// That should never happen
String message = String.format("Unknown internal " +
"operation level name %s"... |
223551095_1041 | protected Set<ServiceComponentResponse> getComponents(Set<ServiceComponentRequest> requests) throws AmbariException {
Set<ServiceComponentResponse> response = new HashSet<>();
for (ServiceComponentRequest request : requests) {
try {
response.addAll(getComponents(request));
} catch (ObjectNotFoundExcep... |
223551095_1042 | @Override
public Set<Resource> getResources(Request request, Predicate predicate) throws
SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
final Set<Resource> resources = new HashSet<>();
final Set<String> requestedIds = getRequestPropertyIds(request, predic... |
223551095_1043 | @Override
public RequestStatus createResources(Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException,
NoSuchParentResourceException {
Iterator<Map<String,Object>> iterator = request.getProperties().iterator();
String hostName;
final String desiredRep... |
223551095_1044 | @Override
public RequestStatus createResources(Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException,
NoSuchParentResourceException {
Iterator<Map<String,Object>> iterator = request.getProperties().iterator();
String hostName;
final String desiredRep... |
223551095_1045 | @Override
public RequestStatus createResources(Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException,
NoSuchParentResourceException {
Iterator<Map<String,Object>> iterator = request.getProperties().iterator();
String hostName;
final String desiredRep... |
223551095_1046 | @Override
public Set<Resource> populateResources(Set<Resource> resources,
Request request, Predicate predicate) throws SystemException {
Set<String> ids = getRequestPropertyIds(request, predicate);
if (ids.size() == 0) {
return resources;
}
for (Resource resource : res... |
223551095_1047 | @Override
public Set<Resource> populateResources(Set<Resource> resources,
Request request, Predicate predicate) throws SystemException {
Set<String> ids = getRequestPropertyIds(request, predicate);
if (ids.size() == 0) {
return resources;
}
for (Resource resource : res... |
223551095_1048 | @Override
public Set<Resource> populateResources(Set<Resource> resources,
Request request, Predicate predicate) throws SystemException {
Set<String> ids = getRequestPropertyIds(request, predicate);
if (ids.size() == 0) {
return resources;
}
for (Resource resource : res... |
223551095_1049 | @Override
public Set<Resource> populateResources(Set<Resource> resources,
Request request, Predicate predicate) throws SystemException {
Set<String> ids = getRequestPropertyIds(request, predicate);
if (ids.size() == 0) {
return resources;
}
for (Resource resource : res... |
223551095_1050 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
Set<Resource> resourceSet = new HashSet<>();
Set<String> requestedIds = getRequestPropertyIds(request, predicate);
... |
223551095_1051 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
final Set<Resource> resources = new HashSet<>();
final Set<String> requestedIds = getRequestPropertyIds(request, predicat... |
223551095_1052 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
Set<Resource> resourceSet = new HashSet<>();
Set<String> requestedIds = getRequestPropertyIds(request, predicate);
... |
223551095_1053 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
Set<Resource> resourceSet = new HashSet<>();
Set<String> requestedIds = getRequestPropertyIds(request, predicate);
... |
223551095_1054 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
final Set<StackRequest> requests = new HashSet<>();
if (predicate == null) {
requests.add(getRequest(Collection... |
223551095_1055 | @Override
public Set<String> getHostNames(String clusterName, String componentName) {
return overridenJmxUri(componentName)
.map(uri -> singleton(resolve(uri, clusterName).getHost()))
.orElseGet(() -> defaultProvider.getHostNames(clusterName, componentName));
} |
223551095_1056 | public HttpURLConnection processURL(String spec, String requestMethod, String body, Map<String, List<String>> headers)
throws IOException {
return processURL(spec, requestMethod, body == null ? null : body.getBytes(), headers);
} |
223551095_1057 | public HttpURLConnection processURL(String spec, String requestMethod, String body, Map<String, List<String>> headers)
throws IOException {
return processURL(spec, requestMethod, body == null ? null : body.getBytes(), headers);
} |
223551095_1059 | protected Set<HostResponse> getHosts(Set<HostRequest> requests) throws AmbariException {
Set<HostResponse> response = new HashSet<>();
AmbariManagementController controller = getManagementController();
for (HostRequest request : requests) {
try {
response.addAll(getHosts(controller, request, osFamily));... |
223551095_1060 | protected Set<HostResponse> getHosts(Set<HostRequest> requests) throws AmbariException {
Set<HostResponse> response = new HashSet<>();
AmbariManagementController controller = getManagementController();
for (HostRequest request : requests) {
try {
response.addAll(getHosts(controller, request, osFamily));... |
223551095_1061 | protected Set<HostResponse> getHosts(Set<HostRequest> requests) throws AmbariException {
Set<HostResponse> response = new HashSet<>();
AmbariManagementController controller = getManagementController();
for (HostRequest request : requests) {
try {
response.addAll(getHosts(controller, request, osFamily));... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.