id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
223551095_1372 | @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_1373 | @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_1374 | @Override
public RequestStatus createResources(final Request request)
throws SystemException,
UnsupportedPropertyException,
ResourceAlreadyExistsException,
NoSuchParentResourceException {
Set<Resource> associatedResources = new HashSet<>();
for (final Map<String, Object> properties : request.getProp... |
223551095_1375 | @Override
public RequestStatus updateResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
final Set<Map<String, Object>> propertyMaps = request.getProperties();
modifyResources(new Command<Void>() {
@Over... |
223551095_1376 | @Override
public RequestStatus deleteResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
final Set<Map<String, Object>> propertyMaps = getPropertyMaps(predicate);
final List<WidgetLayoutEntity> entitiesToB... |
223551095_1377 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
ViewRegistry viewRegistry = ViewRegistry.getInstance();
Set<Resource> resources = new HashSet<>();
Set<String> ... |
223551095_1378 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
ViewRegistry viewRegistry = ViewRegistry.getInstance();
Set<Resource> resources = new HashSet<>();
Set<String> ... |
223551095_1379 | @Override
public RequestStatus createResources(Request request) {
throw new UnsupportedOperationException("Not currently supported.");
} |
223551095_1380 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
Set<Resource> results = new LinkedHashSet<>();
Set<String> requestedIds = getRequestPropertyIds(request, predicate);
... |
223551095_1381 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
Set<Resource> results = new LinkedHashSet<>();
Set<String> requestedIds = getRequestPropertyIds(request, predicate);
... |
223551095_1382 | @Override
public RequestStatus updateResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
throw new UnsupportedOperationException("Not currently supported.");
} |
223551095_1383 | @Override
public RequestStatus deleteResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
throw new UnsupportedOperationException("Not currently supported.");
} |
223551095_1384 | Map<?, ?> parseStructuredOutput(String structuredOutput) {
if (null == structuredOutput || structuredOutput.isEmpty()) {
return null;
}
Map<?, ?> result = null;
try {
result = mapper.readValue(structuredOutput, Map.class);
} catch (Exception excepton) {
LOG.warn("Unable to parse task structured ou... |
223551095_1385 | Map<?, ?> parseStructuredOutput(String structuredOutput) {
if (null == structuredOutput || structuredOutput.isEmpty()) {
return null;
}
Map<?, ?> result = null;
try {
result = mapper.readValue(structuredOutput, Map.class);
} catch (Exception excepton) {
LOG.warn("Unable to parse task structured ou... |
223551095_1386 | Map<?, ?> parseStructuredOutput(String structuredOutput) {
if (null == structuredOutput || structuredOutput.isEmpty()) {
return null;
}
Map<?, ?> result = null;
try {
result = mapper.readValue(structuredOutput, Map.class);
} catch (Exception excepton) {
LOG.warn("Unable to parse task structured ou... |
223551095_1387 | protected Set<ServiceResponse> getServices(Set<ServiceRequest> requests)
throws AmbariException {
Set<ServiceResponse> response = new HashSet<>();
for (ServiceRequest request : requests) {
try {
response.addAll(getServices(request));
} catch (ServiceNotFoundException e) {
if (requests.size()... |
223551095_1388 | protected Set<ServiceResponse> getServices(Set<ServiceRequest> requests)
throws AmbariException {
Set<ServiceResponse> response = new HashSet<>();
for (ServiceRequest request : requests) {
try {
response.addAll(getServices(request));
} catch (ServiceNotFoundException e) {
if (requests.size()... |
223551095_1389 | protected Set<ServiceResponse> getServices(Set<ServiceRequest> requests)
throws AmbariException {
Set<ServiceResponse> response = new HashSet<>();
for (ServiceRequest request : requests) {
try {
response.addAll(getServices(request));
} catch (ServiceNotFoundException e) {
if (requests.size()... |
223551095_1390 | protected Set<ServiceResponse> getServices(Set<ServiceRequest> requests)
throws AmbariException {
Set<ServiceResponse> response = new HashSet<>();
for (ServiceRequest request : requests) {
try {
response.addAll(getServices(request));
} catch (ServiceNotFoundException e) {
if (requests.size()... |
223551095_1391 | private ServiceRequest getRequest(Map<String, Object> properties) {
String desiredRepoId = (String) properties.get(SERVICE_DESIRED_REPO_VERSION_ID_PROPERTY_ID);
ServiceRequest svcRequest = new ServiceRequest(
(String) properties.get(SERVICE_CLUSTER_NAME_PROPERTY_ID),
(String) properties.get(SERVICE_SERV... |
223551095_1392 | private ServiceRequest getRequest(Map<String, Object> properties) {
String desiredRepoId = (String) properties.get(SERVICE_DESIRED_REPO_VERSION_ID_PROPERTY_ID);
ServiceRequest svcRequest = new ServiceRequest(
(String) properties.get(SERVICE_CLUSTER_NAME_PROPERTY_ID),
(String) properties.get(SERVICE_SERV... |
223551095_1393 | @Override
public Set<String> checkPropertyIds(Set<String> propertyIds) {
propertyIds = super.checkPropertyIds(propertyIds);
if (propertyIds.isEmpty()) {
return propertyIds;
}
Set<String> unsupportedProperties = new HashSet<>();
for (String propertyId : propertyIds) {
if (!propertyId.equals("config")) ... |
223551095_1394 | protected Set<ServiceResponse> getServices(Set<ServiceRequest> requests)
throws AmbariException {
Set<ServiceResponse> response = new HashSet<>();
for (ServiceRequest request : requests) {
try {
response.addAll(getServices(request));
} catch (ServiceNotFoundException e) {
if (requests.size()... |
223551095_1395 | protected Set<ServiceResponse> getServices(Set<ServiceRequest> requests)
throws AmbariException {
Set<ServiceResponse> response = new HashSet<>();
for (ServiceRequest request : requests) {
try {
response.addAll(getServices(request));
} catch (ServiceNotFoundException e) {
if (requests.size()... |
223551095_1396 | protected Set<ServiceResponse> getServices(Set<ServiceRequest> requests)
throws AmbariException {
Set<ServiceResponse> response = new HashSet<>();
for (ServiceRequest request : requests) {
try {
response.addAll(getServices(request));
} catch (ServiceNotFoundException e) {
if (requests.size()... |
223551095_1398 | @SuppressWarnings("unchecked")
ConfigGroupRequest getConfigGroupRequest(Map<String, Object> properties) {
Object groupIdObj = properties.get(ID);
Long groupId = null;
if (groupIdObj != null) {
groupId = groupIdObj instanceof Long ? (Long) groupIdObj :
Long.parseLong((String) groupIdObj);
}
ConfigGr... |
223551095_1399 | @Override
public Set<Resource> getResources(final Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
final Set<StackConfigurationDependencyRequest> requests =
new HashSet<>();
if (predicate == null) {
r... |
223551095_1400 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
Set<Resource> resources = new HashSet<>();
Set<Map<String, Object>> requestProps = getPropertyMaps(predicate... |
223551095_1401 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
Set<Resource> resources = new HashSet<>();
Set<Map<String, Object>> requestProps = getPropertyMaps(predicate... |
223551095_1402 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
final Set<StackLevelConfigurationRequest> requests = new HashSet<>();
if (predicate == null) {
requests.add(get... |
223551095_1403 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
final Set<StackLevelConfigurationRequest> requests = new HashSet<>();
if (predicate == null) {
requests.add(get... |
223551095_1404 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
final Set<StackServiceRequest> requests = new HashSet<>();
if (predicate == null) {
requests.add(getRequest(Colle... |
223551095_1405 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
final Set<StackServiceRequest> requests = new HashSet<>();
if (predicate == null) {
requests.add(getRequest(Colle... |
223551095_1406 | @Override
public QueryResponse queryForResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException,
NoSuchParentResourceException {
return new QueryResponseImpl(getResources(request, predicate),
request.getSortRequest() != null, request.g... |
223551095_1407 | @Override
public Optional<String> getExternalHostName(String clusterName, String componentName) {
return getOverriddenHost(componentName).map(host -> replaceVariables(clusterName, host));
} |
223551095_1408 | @Override
public Optional<String> getExternalHostName(String clusterName, String componentName) {
return getOverriddenHost(componentName).map(host -> replaceVariables(clusterName, host));
} |
223551095_1409 | protected Resource toResource(ViewURLEntity viewURLEntity) {
Resource resource = new ResourceImpl(Resource.Type.ViewURL);
resource.setProperty(URL_NAME,viewURLEntity.getUrlName());
resource.setProperty(URL_SUFFIX,viewURLEntity.getUrlSuffix());
ViewInstanceEntity viewInstanceEntity = viewURLEntity.getViewIns... |
223551095_1410 | @Override
public RequestStatus createResources(Request request)
throws SystemException,
UnsupportedPropertyException,
ResourceAlreadyExistsException,
NoSuchParentResourceException {
throw new SystemException("The request is not supported");
} |
223551095_1411 | @Override
public RequestStatus updateResources(final Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
throw new SystemException("The request is not supported");
} |
223551095_1412 | @Override
public RequestStatus deleteResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
throw new SystemException("The request is not supported");
} |
223551095_1413 | @Override
public RequestStatus createResources(Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException,
NoSuchParentResourceException {
throw new UnsupportedOperationException();
} |
223551095_1414 | @Override
public RequestStatus updateResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
Iterator<Map<String,Object>> iterator = request.getProperties().iterator();
if (iterator.hasNext()) {
Map<St... |
223551095_1415 | @Override
public RequestStatus deleteResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
throw new UnsupportedOperationException();
} |
223551095_1416 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
Set<Resource> results = new LinkedHashSet<>();
Set<String> propertyIds = getRequestPropertyIds(request, predi... |
223551095_1417 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
Set<Resource> results = new LinkedHashSet<>();
Set<String> propertyIds = getRequestPropertyIds(request, predi... |
223551095_1418 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
Set<Resource> results = new LinkedHashSet<>();
Set<String> propertyIds = getRequestPropertyIds(request, predi... |
223551095_1419 | @Override
public QueryResponse queryForResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
Set<Resource> results = getResources(request, predicate);
return new QueryResponseImpl(results, request.getSor... |
223551095_1420 | @Override
public RequestStatus updateResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
Iterator<Map<String,Object>> iterator = request.getProperties().iterator();
if (iterator.hasNext()) {
Map<St... |
223551095_1421 | @Override
public RequestStatus createResources(Request request)
throws SystemException, UnsupportedPropertyException,
ResourceAlreadyExistsException, NoSuchParentResourceException {
IvoryService service = getService();
Set<Map<String, Object>> propertiesSet = request.getProperties();
for(Map<String... |
223551095_1422 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
IvoryService service = getService();
List<String> feedNames = service.getFeedNames();
Set<String... |
223551095_1423 | @Override
public RequestStatus updateResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
Iterator<Map<String,Object>> iterator = request.getProperties().iterator();
if (iterator.hasNext()) {
... |
223551095_1424 | @Override
public RequestStatus deleteResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
IvoryService service = getService();
// get all the feeds that pass the predicate check
Set<Resource> r... |
223551095_1425 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
StackAdvisorRequest recommendationRequest = prepareStackAdvisorRequest(request);
final RecommendationResponse response;
tr... |
223551095_1426 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1427 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1428 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1429 | @Override
public Set<Resource> getResources(Request request, Predicate predicate) throws SystemException,
UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
Set<Resource> results = new HashSet<>();
Set<String> requestPropertyIds = getRequestPropertyIds(request, predicate);
... |
223551095_1430 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1431 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1432 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1433 | @Override
public RequestStatus updateResources(final Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException,
NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw ne... |
223551095_1434 | @Override
public RequestStatus updateResources(final Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException,
NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw ne... |
223551095_1435 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1436 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1437 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1438 | @Override
public RequestStatus updateResources(final Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException, NoSuchResourceException,
NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw ne... |
223551095_1439 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1440 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1441 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1442 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1443 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1444 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1445 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1446 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1447 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1448 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1449 | @Override
public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
Set<Map<String, Object>> requestMaps = request.getProperties();
if (requestMaps.size() > 1) {
throw new SystemException(... |
223551095_1454 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
final Set<RepositoryRequest> requests = new HashSet<>();
if (predicate == null) {
requests.add(getRequest(Colle... |
223551095_1455 | @Override
public RequestStatus updateResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
final Set<RepositoryRequest> requestsToVerifyBaseURLs = new HashSet<>();
Iterator<Map<String,Object>> iterator =... |
223551095_1456 | @Override
public RequestStatus createResources(Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException,
NoSuchParentResourceException {
final Set<RequestScheduleRequest> requests = new HashSet<>();
for (Map<String, Object> propertyMap : request.getProperties()) ... |
223551095_1457 | private synchronized void updateRequestSchedule
(Set<RequestScheduleRequest> requests) throws AmbariException {
if (requests.isEmpty()) {
LOG.warn("Received an empty requests set");
return;
}
Clusters clusters = getManagementController().getClusters();
for (RequestScheduleRequest request : requests) {... |
223551095_1458 | @Override
public Set<Resource> getResources(Request request, Predicate predicate) throws
SystemException, UnsupportedPropertyException, NoSuchResourceException,
NoSuchParentResourceException {
final Set<RequestScheduleRequest> requests = new HashSet<>();
for (Map<String, Object> propertyMap : getPropertyMap... |
223551095_1459 | private synchronized void deleteRequestSchedule(RequestScheduleRequest request)
throws AmbariException {
if (request.getId() == null) {
throw new AmbariException("Id is a required field.");
}
Clusters clusters = getManagementController().getClusters();
Cluster cluster;
try {
cluster = clusters.getCl... |
223551095_1460 | @Override
public RequestStatus createResources(Request request) throws SystemException, UnsupportedPropertyException,
ResourceAlreadyExistsException, NoSuchParentResourceException {
IvoryService service = getService();
Set<Map<String, Object>> propertiesSet = request.getProperties();
for(Map<String, Object> p... |
223551095_1461 | @Override
public Set<Resource> getResources(Request request, Predicate predicate) throws SystemException,
UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {
IvoryService service = getService();
List<String> clusterNames = service.getClusterNames();
Set<String> ... |
223551095_1462 | @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_1463 | @Override
public RequestStatus deleteResources(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
IvoryService service = getService();
// get all the clusters that pass the predicate check
Set<Resource> resources... |
223551095_1464 | @Override
public QueryResponse getResources(Type type, Request request, Predicate predicate)
throws UnsupportedPropertyException, NoSuchResourceException,
NoSuchParentResourceException, SystemException {
QueryResponse queryResponse = null;
ExtendedResourceProviderWrapper provider = ensureResourceProv... |
223551095_1465 | protected Iterable<Resource> getResourceIterable(Type type, Request request,
Predicate predicate)
throws UnsupportedPropertyException,
SystemException,
NoSuchParentResourceException,
NoSuchResourceException {
return getResources(type, request, predicate... |
223551095_1466 | protected Iterable<Resource> getResourceIterable(Type type, Request request,
Predicate predicate)
throws UnsupportedPropertyException,
SystemException,
NoSuchParentResourceException,
NoSuchResourceException {
return getResources(type, request, predicate... |
223551095_1467 | protected Iterable<Resource> getResourceIterable(Type type, Request request,
Predicate predicate)
throws UnsupportedPropertyException,
SystemException,
NoSuchParentResourceException,
NoSuchResourceException {
return getResources(type, request, predicate... |
223551095_1468 | protected Iterable<Resource> getResourceIterable(Type type, Request request,
Predicate predicate)
throws UnsupportedPropertyException,
SystemException,
NoSuchParentResourceException,
NoSuchResourceException {
return getResources(type, request, predicate... |
223551095_1469 | protected Iterable<Resource> getResourceIterable(Type type, Request request,
Predicate predicate)
throws UnsupportedPropertyException,
SystemException,
NoSuchParentResourceException,
NoSuchResourceException {
return getResources(type, request, predicate... |
223551095_1470 | @Override
public RequestStatus createResources(Type type, Request request)
throws UnsupportedPropertyException,
SystemException,
ResourceAlreadyExistsException,
NoSuchParentResourceException {
ResourceProvider provider = ensureResourceProvider(type);
if (provider != null) {
checkProp... |
223551095_1471 | @Override
public RequestStatus createResources(Type type, Request request)
throws UnsupportedPropertyException,
SystemException,
ResourceAlreadyExistsException,
NoSuchParentResourceException {
ResourceProvider provider = ensureResourceProvider(type);
if (provider != null) {
checkProp... |
223551095_1472 | @Override
public RequestStatus updateResources(Type type, Request request, Predicate predicate)
throws UnsupportedPropertyException,
SystemException,
NoSuchResourceException,
NoSuchParentResourceException {
ResourceProvider provider = ensureResourceProvider(type);
if (provider !... |
223551095_1473 | @Override
public RequestStatus updateResources(Type type, Request request, Predicate predicate)
throws UnsupportedPropertyException,
SystemException,
NoSuchResourceException,
NoSuchParentResourceException {
ResourceProvider provider = ensureResourceProvider(type);
if (provider !... |
223551095_1474 | @Override
public RequestStatus updateResources(Type type, Request request, Predicate predicate)
throws UnsupportedPropertyException,
SystemException,
NoSuchResourceException,
NoSuchParentResourceException {
ResourceProvider provider = ensureResourceProvider(type);
if (provider !... |
223551095_1475 | @Override
public RequestStatus updateResources(Type type, Request request, Predicate predicate)
throws UnsupportedPropertyException,
SystemException,
NoSuchResourceException,
NoSuchParentResourceException {
ResourceProvider provider = ensureResourceProvider(type);
if (provider !... |
223551095_1485 | @Override
public Set<Resource> getResources(Request request, Predicate predicate)
throws SystemException, UnsupportedPropertyException,
NoSuchResourceException, NoSuchParentResourceException {
final Set<RootServiceRequest> requests = new HashSet<>();
if (predicate == null) {
requests.add(getRequest(Coll... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.