Obtains a list of service URIs with all the services known to the system

@return list of URIs with all the services in the registry
175451
@Override
    public Set<URI> listServices() {
        String queryStr = new StringBuilder()
                .append("SELECT DISTINCT ?svc WHERE { \n")
                .append(" GRAPH ?g { \n")
                .append("?svc ").append("<").append(RDF.type.getURI()).append(">").append(" ").append("<").append(MSM.Service.getURI()).append("> . \n")
                .append(" } \n")
                .append("} \n")
                .toString();

        return this.graphStoreManager.listResourcesByQuery(queryStr, "svc");
    }
429978
public java.util.List<String> getAZList() {
        if (aZList == null) {
            aZList = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return aZList;
    }
1098240
@Override
    public Set<URI> listOperations(URI serviceUri) {

        if (serviceUri == null || !serviceUri.isAbsolute()) {
            log.warn("The Service URI is either absent or relative. Provide an absolute URI");
            return ImmutableSet.of();
        }

        URI graphUri;
        try {
            graphUri = getGraphUriForElement(serviceUri);
        } catch (URISyntaxException e) {
            log.warn("The namespace of the URI of the service is incorrect.", e);
            return ImmutableSet.of();
        }

        if (graphUri == null) {
            log.warn("Could not obtain a graph URI for the element. The URI may not be managed by the server - " + serviceUri);
            return ImmutableSet.of();
        }

        String queryStr = new StringBuilder()
                .append("SELECT DISTINCT ?op WHERE { \n")
                .append(" GRAPH <").append(graphUri.toASCIIString()).append("> { \n")
                .append(" <").append(serviceUri.toASCIIString()).append("> ").append("<").append(MSM.hasOperation.getURI()).append(">").append(" ?op . ")
                .append(" ?op ").append("<").append(RDF.type.getURI()).append(">").append(" ").append("<").append(MSM.Operation.getURI()).append("> . \n")
                .append(" } \n ")
                .append("} \n ")
                .toString();

        return this.graphStoreManager.listResourcesByQuery(queryStr, "op");
    }
178260
public java.util.List<OperatingSystem> getOperatingSystems() {
        if (operatingSystems == null) {
            operatingSystems = new com.amazonaws.internal.SdkInternalList<OperatingSystem>();
        }
        return operatingSystems;
    }
331157
public List<ServiceMonitor> getServiceMonitors() {
        List<ServiceMonitor> serviceMonitors = new ArrayList<>();
        serviceMonitors.addAll(getDynamicServices(ServiceMonitor.class));
        return serviceMonitors;
    }
338539
public List<RegisteredService> getAll() {
        val scan = new ScanRequest(dynamoDbProperties.getTableName());
        LOGGER.debug("Scanning table with request [{}]", scan);
        val result = this.amazonDynamoDBClient.scan(scan);
        LOGGER.debug("Scanned table with result [{}]", scan);
        return result.getItems()
            .stream()
            .map(this::deserializeServiceFromBinaryBlob)
            .filter(Objects::nonNull)
            .sorted(Comparator.comparingInt(RegisteredService::getEvaluationOrder))
            .collect(Collectors.toList());
    }
1127988
private String getUnavailableServices() {
        StringBuilder missingServices = new StringBuilder();
        if (tokenService.getReference() == null) {
            missingServices.append("tokenService, ");
        }
        if (tokenManager.getReference() == null) {
            missingServices.append("tokenManager, ");
        }
        if (authenticationService.getReference() == null) {
            missingServices.append("authenticationService, ");
        }
        if (authorizationService.getReference() == null) {
            missingServices.append("authorizationService, ");
        }
        if (userRegistry.getReference() == null) {
            missingServices.append("userRegistry, ");
        }
        if (userRegistryService.getReference() == null) {
            missingServices.append("userRegistryService, ");
        }

        if (missingServices.length() == 0) {
            return null;
        } else {
            // Return everything but the last ", "
            return missingServices.substring(0, missingServices.length() - 2);
        }
    }
567577
def get_repositories(self):
        """"""
        # Implemented from kitosid template for -
        # osid.resource.BinLookupSession.get_bins_template
        catalogs = self._get_provider_session('repository_lookup_session').get_repositories()
        cat_list = []
        for cat in catalogs:
            cat_list.append(Repository(self._provider_manager, cat, self._runtime, self._proxy))
        return RepositoryList(cat_list)
1270109
public List<URL> getManagedURLs()
    {
        // should we cache it?
        List<URL> managedURL = getJarFileUrls();
        if (managedURL == null)
        {
            managedURL = new ArrayList<URL>(1);
        }

        if (!getExcludeUnlistedClasses())
        {
            managedURL.add(getPersistenceUnitRootUrl());
        }
        return managedURL;
    }
225041
public static List<String> getServerAddrs() {
        Node node = ArbitrateConfigRegistry.getConfig().currentNode();
        if (node != null) {
            String addr = StringUtils.join(node.getParameters().getZkCluster().getServerList(), ',');
            return Arrays.asList(addr);
        } else {
            return new ArrayList<String>();
        }
    }
452526
def getServices(self):
        
        tool = getToolByName(self, REFERENCE_CATALOG)
        services = []
        for spec in self.getReferenceResults():
            service = tool.lookupObject(spec['uid'])
            services.append(service)
        return services
1149519
public static ProviderList getProviderList() {
        ProviderList list = getThreadProviderList();
        if (list == null) {
            list = getSystemProviderList();
        }
        return list;
    }
578365
public static List<Service> getServices(List<ServiceId> ids) {
        ProviderList list = Providers.getProviderList();
        return list.getServices(ids);
    }
236868
def get_all():
    '''
    
    '''
    services = []
    if not os.path.isdir('/etc/rc.d'):
        return services
    for service in os.listdir('/etc/rc.d'):
        # this will remove rc.subr and all non executable files
        if available(service):
            services.append(service)
    return sorted(services)
202793
public List<V> getAllServicesWithInstance(){
        if(cache == null || cache.size() == 0){
            return Collections.emptyList();
        }
        return Lists.newArrayList(cache.values());
    }
364025
public List<String> getRunningServiceIds() {
        List<ServiceReference<Domain>> serviceReferences = osgiUtilsService.listServiceReferences(Domain.class);
        List<String> result = new ArrayList<String>();
        for (ServiceReference<Domain> ref : serviceReferences) {
            result.add((String) ref.getProperty(org.osgi.framework.Constants.SERVICE_PID));
        }
        return result;
    }
454284
def get_services(self):
        
        self.__load_System_class()
        pid = self.get_pid()
        return [d for d in System.get_active_services() if d.ProcessId == pid]