本文整理汇总了Java中com.ociweb.pronghorn.pipe.PipeWriter.writeInt方法的典型用法代码示例。如果您正苦于以下问题:Java PipeWriter.writeInt方法的具体用法?Java PipeWriter.writeInt怎么用?Java PipeWriter.writeInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.ociweb.pronghorn.pipe.PipeWriter
的用法示例。
在下文中一共展示了PipeWriter.writeInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: publishConnect
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
private void publishConnect(Pipe<MQTTClientRequestSchema> output) {
PipeWriter.presumeWriteFragment(output, MQTTClientRequestSchema.MSG_CONNECT_1);
PipeWriter.writeInt(output,MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_KEEPALIVESEC_28, keepAliveSeconds);
PipeWriter.writeInt(output,MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_FLAGS_29, flags);
PipeWriter.writeUTF8(output,MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_CLIENTID_30, (CharSequence) clientId);
PipeWriter.writeUTF8(output,MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_WILLTOPIC_31, (CharSequence) lastWillTopic);
DataOutputBlobWriter<MQTTClientRequestSchema> writer = PipeWriter.outputStream(output);
DataOutputBlobWriter.openField(writer);
if(null!= lastWillPayload) {
lastWillPayload.write((MQTTWriter)writer);
}
DataOutputBlobWriter.closeHighLevelField(writer, MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_WILLPAYLOAD_32);
PipeWriter.writeUTF8(output,MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_USER_33, (CharSequence) user);
PipeWriter.writeUTF8(output,MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_PASS_34, (CharSequence) pass);
PipeWriter.publishWrites(output);
}
示例2: streamingRequest
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
private void streamingRequest(Pipe<ClientHTTPRequestSchema> pipe, int httpRequestResponseId) {
PipeWriter.presumeWriteFragment(pipe, ClientHTTPRequestSchema.MSG_HTTPGET_100);
assert(httpRequestResponseId>=0);
PipeWriter.writeInt(pipe, ClientHTTPRequestSchema.MSG_HTTPGET_100_FIELD_DESTINATION_11, httpRequestResponseId);
PipeWriter.writeInt(pipe, ClientHTTPRequestSchema.MSG_HTTPGET_100_FIELD_SESSION_10, httpRequestResponseId);
PipeWriter.writeInt(pipe, ClientHTTPRequestSchema.MSG_HTTPGET_100_FIELD_PORT_1, port);
PipeWriter.writeUTF8(pipe, ClientHTTPRequestSchema.MSG_HTTPGET_100_FIELD_HOST_2, host);
PipeWriter.writeUTF8(pipe, ClientHTTPRequestSchema.MSG_HTTPGET_100_FIELD_PATH_3, path);
DataOutputBlobWriter<ClientHTTPRequestSchema> stream = PipeWriter.outputStream(pipe);
DataOutputBlobWriter.openField(stream);
myAuth.addHeaders(stream, "GET").append("\r\n");
//myAuth.addHeaders(System.out, "GET");
DataOutputBlobWriter.closeHighLevelField(stream, ClientHTTPRequestSchema.MSG_HTTPGET_100_FIELD_HEADERS_7);
PipeWriter.publishWrites(pipe);
}
示例3: publishPublish
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishPublish(Pipe<MessagePubSub> output, int fieldQOS, CharSequence fieldTopic, byte[] fieldPayloadBacking, int fieldPayloadPosition, int fieldPayloadLength) {
PipeWriter.presumeWriteFragment(output, MSG_PUBLISH_103);
PipeWriter.writeInt(output,MSG_PUBLISH_103_FIELD_QOS_5, fieldQOS);
PipeWriter.writeUTF8(output,MSG_PUBLISH_103_FIELD_TOPIC_1, fieldTopic);
PipeWriter.writeBytes(output,MSG_PUBLISH_103_FIELD_PAYLOAD_3, fieldPayloadBacking, fieldPayloadPosition, fieldPayloadLength);
PipeWriter.publishWrites(output);
}
示例4: publishBrokerConfig
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
private void publishBrokerConfig(Pipe<MQTTClientRequestSchema> output) {
PipeWriter.presumeWriteFragment(output, MQTTClientRequestSchema.MSG_BROKERCONFIG_100);
PipeWriter.writeUTF8(output,MQTTClientRequestSchema.MSG_BROKERCONFIG_100_FIELD_HOST_26, (CharSequence) host);
PipeWriter.writeInt(output,MQTTClientRequestSchema.MSG_BROKERCONFIG_100_FIELD_PORT_27, port);
PipeWriter.publishWrites(output);
}
示例5: publish
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
private void publish(Pipe<ValveSchema> output) {
PipeWriter.presumeWriteFragment(output, msgIdx);
PipeWriter.writeInt(output, stationFieldId, currentStationId);
PipeWriter.writeLong(output, timestampFieldId, currentTimeStamp);
//System.out.format("Wrote %d, %d, %d\n", msgIdx, currentStationId, currentTimeStamp);
writeValue(output);
PipeWriter.publishWrites(output);
}
示例6: publishValveSerialNumber
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishValveSerialNumber(Pipe<ValveSchema> output, int fieldStation, long fieldTimestamp, int fieldValveSerialNumber) {
PipeWriter.presumeWriteFragment(output, MSG_VALVESERIALNUMBER_311);
PipeWriter.writeInt(output,MSG_VALVESERIALNUMBER_311_FIELD_STATION_1, fieldStation);
PipeWriter.writeLong(output,MSG_VALVESERIALNUMBER_311_FIELD_TIMESTAMP_2, fieldTimestamp);
PipeWriter.writeInt(output,MSG_VALVESERIALNUMBER_311_FIELD_VALVESERIALNUMBER_11, fieldValveSerialNumber);
PipeWriter.publishWrites(output);
}
示例7: publishLifeCycleCount
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishLifeCycleCount(Pipe<ValveSchema> output, int fieldStation, long fieldTimestamp, int fieldLifeCycleCount) {
PipeWriter.presumeWriteFragment(output, MSG_LIFECYCLECOUNT_312);
PipeWriter.writeInt(output,MSG_LIFECYCLECOUNT_312_FIELD_STATION_1, fieldStation);
PipeWriter.writeLong(output,MSG_LIFECYCLECOUNT_312_FIELD_TIMESTAMP_2, fieldTimestamp);
PipeWriter.writeInt(output,MSG_LIFECYCLECOUNT_312_FIELD_LIFECYCLECOUNT_12, fieldLifeCycleCount);
PipeWriter.publishWrites(output);
}
示例8: publishSupplyPressure
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishSupplyPressure(Pipe<ValveSchema> output, int fieldStation, long fieldTimestamp, int fieldSupplyPressure) {
PipeWriter.presumeWriteFragment(output, MSG_SUPPLYPRESSURE_313);
PipeWriter.writeInt(output,MSG_SUPPLYPRESSURE_313_FIELD_STATION_1, fieldStation);
PipeWriter.writeLong(output,MSG_SUPPLYPRESSURE_313_FIELD_TIMESTAMP_2, fieldTimestamp);
PipeWriter.writeInt(output,MSG_SUPPLYPRESSURE_313_FIELD_SUPPLYPRESSURE_13, fieldSupplyPressure);
PipeWriter.publishWrites(output);
}
示例9: publishDurationOfLast1_4Signal
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishDurationOfLast1_4Signal(Pipe<ValveSchema> output, int fieldStation, long fieldTimestamp, int fieldDurationOfLast1_4Signal) {
PipeWriter.presumeWriteFragment(output, MSG_DURATIONOFLAST1_4SIGNAL_314);
PipeWriter.writeInt(output,MSG_DURATIONOFLAST1_4SIGNAL_314_FIELD_STATION_1, fieldStation);
PipeWriter.writeLong(output,MSG_DURATIONOFLAST1_4SIGNAL_314_FIELD_TIMESTAMP_2, fieldTimestamp);
PipeWriter.writeInt(output,MSG_DURATIONOFLAST1_4SIGNAL_314_FIELD_DURATIONOFLAST1_4SIGNAL_14, fieldDurationOfLast1_4Signal);
PipeWriter.publishWrites(output);
}
示例10: publishDurationOfLast1_2Signal
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishDurationOfLast1_2Signal(Pipe<ValveSchema> output, int fieldStation, long fieldTimestamp, int fieldDurationOfLast1_2Signal) {
PipeWriter.presumeWriteFragment(output, MSG_DURATIONOFLAST1_2SIGNAL_315);
PipeWriter.writeInt(output,MSG_DURATIONOFLAST1_2SIGNAL_315_FIELD_STATION_1, fieldStation);
PipeWriter.writeLong(output,MSG_DURATIONOFLAST1_2SIGNAL_315_FIELD_TIMESTAMP_2, fieldTimestamp);
PipeWriter.writeInt(output,MSG_DURATIONOFLAST1_2SIGNAL_315_FIELD_DURATIONOFLAST1_2SIGNAL_15, fieldDurationOfLast1_2Signal);
PipeWriter.publishWrites(output);
}
示例11: publishEqualizationAveragePressure
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishEqualizationAveragePressure(Pipe<ValveSchema> output, int fieldStation, long fieldTimestamp, int fieldEqualizationAveragePressure) {
PipeWriter.presumeWriteFragment(output, MSG_EQUALIZATIONAVERAGEPRESSURE_316);
PipeWriter.writeInt(output,MSG_EQUALIZATIONAVERAGEPRESSURE_316_FIELD_STATION_1, fieldStation);
PipeWriter.writeLong(output,MSG_EQUALIZATIONAVERAGEPRESSURE_316_FIELD_TIMESTAMP_2, fieldTimestamp);
PipeWriter.writeInt(output,MSG_EQUALIZATIONAVERAGEPRESSURE_316_FIELD_EQUALIZATIONAVERAGEPRESSURE_16, fieldEqualizationAveragePressure);
PipeWriter.publishWrites(output);
}
示例12: publishEqualizationPressureRate
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishEqualizationPressureRate(Pipe<ValveSchema> output, int fieldStation, long fieldTimestamp, int fieldEqualizationPressureRate) {
PipeWriter.presumeWriteFragment(output, MSG_EQUALIZATIONPRESSURERATE_317);
PipeWriter.writeInt(output,MSG_EQUALIZATIONPRESSURERATE_317_FIELD_STATION_1, fieldStation);
PipeWriter.writeLong(output,MSG_EQUALIZATIONPRESSURERATE_317_FIELD_TIMESTAMP_2, fieldTimestamp);
PipeWriter.writeInt(output,MSG_EQUALIZATIONPRESSURERATE_317_FIELD_EQUALIZATIONPRESSURERATE_17, fieldEqualizationPressureRate);
PipeWriter.publishWrites(output);
}
示例13: publishResidualOfDynamicAnalysis
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishResidualOfDynamicAnalysis(Pipe<ValveSchema> output, int fieldStation, long fieldTimestamp, int fieldResidualOfDynamicAnalysis) {
PipeWriter.presumeWriteFragment(output, MSG_RESIDUALOFDYNAMICANALYSIS_318);
PipeWriter.writeInt(output,MSG_RESIDUALOFDYNAMICANALYSIS_318_FIELD_STATION_1, fieldStation);
PipeWriter.writeLong(output,MSG_RESIDUALOFDYNAMICANALYSIS_318_FIELD_TIMESTAMP_2, fieldTimestamp);
PipeWriter.writeInt(output,MSG_RESIDUALOFDYNAMICANALYSIS_318_FIELD_RESIDUALOFDYNAMICANALYSIS_18, fieldResidualOfDynamicAnalysis);
PipeWriter.publishWrites(output);
}
示例14: publishPartNumber
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishPartNumber(Pipe<ValveSchema> output, int fieldStation, long fieldTimestamp, CharSequence fieldPartNumber) {
PipeWriter.presumeWriteFragment(output, MSG_PARTNUMBER_330);
PipeWriter.writeInt(output,MSG_PARTNUMBER_330_FIELD_STATION_1, fieldStation);
PipeWriter.writeLong(output,MSG_PARTNUMBER_330_FIELD_TIMESTAMP_2, fieldTimestamp);
PipeWriter.writeUTF8(output,MSG_PARTNUMBER_330_FIELD_PARTNUMBER_30, fieldPartNumber);
PipeWriter.publishWrites(output);
}
示例15: publishValveFault
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishValveFault(Pipe<ValveSchema> output, int fieldStation, long fieldTimestamp, int fieldValveFault) {
PipeWriter.presumeWriteFragment(output, MSG_VALVEFAULT_340);
PipeWriter.writeInt(output,MSG_VALVEFAULT_340_FIELD_STATION_1, fieldStation);
PipeWriter.writeLong(output,MSG_VALVEFAULT_340_FIELD_TIMESTAMP_2, fieldTimestamp);
PipeWriter.writeInt(output,MSG_VALVEFAULT_340_FIELD_VALVEFAULT_40, fieldValveFault);
PipeWriter.publishWrites(output);
}