Examples of toStruct()


Examples of de.desy.tine.structUtils.TTaggedStructure.toStruct()

              int ssiz = tts.getSizeInBytes();
              if (ssiz < 1) return TErrorList.invalid_structure_size;
              len *= ssiz; // size in bytes of struct
              byte[] d = new byte[len];
              dis.read(d);
              tts.toStruct(d);
              dt = new TDataType(tts);
              break;
            }
            default:
              if (TFormat.isAllowedSaveAndRestoreTraceArray(fmt))
View Full Code Here

Examples of org.apache.kafka.common.requests.MetadataRequest.toStruct()

    /**
     * Create a metadata request for the given topics
     */
    private ClientRequest metadataRequest(long now, int node, Set<String> topics) {
        MetadataRequest metadata = new MetadataRequest(new ArrayList<String>(topics));
        RequestSend send = new RequestSend(node, nextRequestHeader(ApiKeys.METADATA), metadata.toStruct());
        return new ClientRequest(now, true, send, null);
    }

    /**
     * Add a metadata request to the list of sends if we can make one
View Full Code Here

Examples of org.apache.kafka.common.requests.ProduceRequest.toStruct()

            recordsBuffer.flip();
            produceRecordsByPartition.put(tp, recordsBuffer);
            recordsByPartition.put(tp, batch);
        }
        ProduceRequest request = new ProduceRequest(acks, timeout, produceRecordsByPartition);
        RequestSend send = new RequestSend(destination, this.client.nextRequestHeader(ApiKeys.PRODUCE), request.toStruct());
        return new ClientRequest(now, acks != 0, send, recordsByPartition);
    }

    /**
     * Wake up the selector associated with this send thread
View Full Code Here

Examples of org.apache.kafka.common.requests.ProduceRequest.toStruct()

    @Test
    public void testSimpleRequestResponse() {
        ProduceRequest produceRequest = new ProduceRequest((short) 1, 1000, Collections.<TopicPartition, ByteBuffer>emptyMap());
        RequestHeader reqHeader = client.nextRequestHeader(ApiKeys.PRODUCE);
        RequestSend send = new RequestSend(node.id(), reqHeader, produceRequest.toStruct());
        ClientRequest request = new ClientRequest(time.milliseconds(), true, send, null);
        awaitReady(client, node);
        client.poll(Arrays.asList(request), 1, time.milliseconds());
        assertEquals(1, client.inFlightRequestCount());
        ResponseHeader respHeader = new ResponseHeader(reqHeader.correlationId());
View Full Code Here

Examples of railo.runtime.net.s3.Properties.toStruct()

      if(conf!=null)sct.setEL(KeyConstants._orm, conf.toStruct());
    }
    // s3
    Properties props = ac.getS3();
    if(props!=null) {
      sct.setEL(KeyConstants._s3, props.toStruct());
    }
   
    // datasources
    DataSource[] sources = ac.getDataSources();
    if(!ArrayUtil.isEmpty(sources)){
View Full Code Here

Examples of railo.runtime.orm.ORMConfiguration.toStruct()

    if(src!=null)sct.setEL(KeyConstants._source,src.getAbsolutePath());
   
    // orm
    if(ac.isORMEnabled()){
      ORMConfiguration conf = ac.getORMConfiguration();
      if(conf!=null)sct.setEL(KeyConstants._orm, conf.toStruct());
    }
    // s3
    Properties props = ac.getS3();
    if(props!=null) {
      sct.setEL(KeyConstants._s3, props.toStruct());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.