Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for dataSource (0.21 sec)

  1. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/DataSource.java

     * limitations under the License.
     */
    
    package org.gradle.caching.internal.tasks;
    
    import java.io.IOException;
    import java.io.InputStream;
    
    public interface DataSource extends DataItem {
        InputStream openInput() throws IOException;
        long getLength() throws IOException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 856 bytes
    - Viewed (0)
  2. manifests/addons/dashboards/lib/variables.libsonnet

    local g = import './g.libsonnet';
    local var = g.dashboard.variable;
    
    {
      datasource:
        var.datasource.new('datasource', 'prometheus'),
    
      cluster:
        var.query.new('cluster')
        + var.query.withDatasourceFromVariable(self.datasource)
        + var.query.queryTypes.withLabelValues(
          'cluster',
          'process_cpu_seconds_total',
        )
        + var.query.withRefresh('time')
        + var.query.selectionOptions.withMulti()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 20:46:28 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/PerformanceDatabase.java

                config.setMaxLifetime(MAX_LIFETIME_MS);
                dataSource = new HikariDataSource(config);
    
                executeInitializers(dataSource);
            }
            return dataSource.getConnection();
        }
    
        private void executeInitializers(DataSource dataSource) throws SQLException {
            try (Connection connection = dataSource.getConnection()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. pkg/api/persistentvolumeclaim/util.go

    		return false
    	}
    	if oldPVCSpec.DataSource != nil || oldPVCSpec.DataSourceRef != nil {
    		return true
    	}
    	return false
    }
    
    func dataSourceIsPvcOrSnapshot(dataSource *core.TypedLocalObjectReference) bool {
    	if dataSource != nil {
    		apiGroup := ""
    		if dataSource.APIGroup != nil {
    			apiGroup = *dataSource.APIGroup
    		}
    		if dataSource.Kind == pvc &&
    			apiGroup == "" {
    			return true
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  5. pkg/registry/core/persistentvolumeclaim/storage/storage_test.go

    			pvc := new(api.PersistentVolumeClaim)
    			if test.dataSource {
    				pvc.Spec.DataSource = dataSource.DeepCopy()
    			}
    			if test.dataSourceRef {
    				pvc.Spec.DataSourceRef = dataSourceRef.DeepCopy()
    			}
    			var expectDataSource *api.TypedLocalObjectReference
    			if test.want {
    				expectDataSource = &dataSource
    			}
    			var expectDataSourceRef *api.TypedObjectReference
    			if test.wantRef {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/JTarPacker.java

            this.buffer = new byte[bufferSizeInKBytes * 1024];
        }
    
        @Override
        public void pack(List<DataSource> inputs, DataTarget output) throws IOException {
            TarOutputStream tarOutput = new TarOutputStream(output.openOutput());
            for (DataSource input : inputs) {
                @SuppressWarnings("OctalInteger")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/AbstractTaskOutputPackagingBenchmark.java

                random.nextBytes(buffer);
                DataSource input = accessor.createSource(name, buffer, Level.Trial);
                inputs.add(input);
            }
            return inputs.build();
        }
    
        private static DataSource packSample(String name, List<DataSource> inputs, Packer packer, DataAccessor accessor) throws IOException {
            long sumLength = 0;
            for (DataSource input : inputs) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/ZipPacker.java

            this.buffer = new byte[bufferSizeInKBytes];
        }
    
        @Override
        public void pack(List<DataSource> inputs, DataTarget output) throws IOException {
            ZipOutputStream zipOutput = new ZipOutputStream(output.openOutput());
            for (DataSource input : inputs) {
                ZipEntry entry = new ZipEntry(input.getName());
                entry.setSize(input.getLength());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/DelegatingDataSource.java

     */
    
    package org.gradle.caching.internal.tasks;
    
    import java.io.IOException;
    import java.io.InputStream;
    
    public abstract class DelegatingDataSource implements DataSource {
        private final DataSource delegate;
    
        public DelegatingDataSource(DataSource delegate) {
            this.delegate = delegate;
        }
    
        @Override
        public InputStream openInput() throws IOException {
            return delegate.openInput();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/InMemoryDataAccessor.java

    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    
    public class InMemoryDataAccessor implements DataAccessor {
        @Override
        public DataSource createSource(String name, byte[] bytes, Level level) {
            return new Source(name, bytes);
        }
    
        @Override
        public DataTarget createTarget(String name, Level level) {
            return new Target(name);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top