本文整理汇总了Java中com.ociweb.pronghorn.pipe.PipeWriter.presumeWriteFragment方法的典型用法代码示例。如果您正苦于以下问题:Java PipeWriter.presumeWriteFragment方法的具体用法?Java PipeWriter.presumeWriteFragment怎么用?Java PipeWriter.presumeWriteFragment使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.ociweb.pronghorn.pipe.PipeWriter
的用法示例。
在下文中一共展示了PipeWriter.presumeWriteFragment方法的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: publish014
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publish014(Pipe<PhastCodecSchema> output, long fieldvalue001, long fieldvalue002, long fieldvalue003, long fieldvalue004, long fieldvalue005, long fieldvalue006, long fieldvalue007, long fieldvalue008, long fieldvalue009, long fieldvalue010, long fieldvalue011, long fieldvalue012, long fieldvalue013, long fieldvalue014) {
PipeWriter.presumeWriteFragment(output, MSG_014_10014);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE001_1, fieldvalue001);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE002_2, fieldvalue002);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE003_3, fieldvalue003);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE004_4, fieldvalue004);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE005_5, fieldvalue005);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE006_6, fieldvalue006);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE007_7, fieldvalue007);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE008_8, fieldvalue008);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE009_9, fieldvalue009);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE010_10, fieldvalue010);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE011_11, fieldvalue011);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE012_12, fieldvalue012);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE013_13, fieldvalue013);
PipeWriter.writeLong(output,MSG_014_10014_FIELD_VALUE014_14, fieldvalue014);
PipeWriter.publishWrites(output);
}
示例3: publish016
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publish016(Pipe<PhastCodecSchema> output, long fieldvalue001, long fieldvalue002, long fieldvalue003, long fieldvalue004, long fieldvalue005, long fieldvalue006, long fieldvalue007, long fieldvalue008, long fieldvalue009, long fieldvalue010, long fieldvalue011, long fieldvalue012, long fieldvalue013, long fieldvalue014, long fieldvalue015, long fieldvalue016) {
PipeWriter.presumeWriteFragment(output, MSG_016_10016);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE001_1, fieldvalue001);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE002_2, fieldvalue002);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE003_3, fieldvalue003);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE004_4, fieldvalue004);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE005_5, fieldvalue005);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE006_6, fieldvalue006);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE007_7, fieldvalue007);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE008_8, fieldvalue008);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE009_9, fieldvalue009);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE010_10, fieldvalue010);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE011_11, fieldvalue011);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE012_12, fieldvalue012);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE013_13, fieldvalue013);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE014_14, fieldvalue014);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE015_15, fieldvalue015);
PipeWriter.writeLong(output,MSG_016_10016_FIELD_VALUE016_16, fieldvalue016);
PipeWriter.publishWrites(output);
}
示例4: publishBlockChannel
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishBlockChannel(long durationNanos, MsgCommandChannel<?> gcc) {
if (null != gcc.goPipe) {
PipeWriter.presumeWriteFragment(gcc.goPipe, TrafficOrderSchema.MSG_BLOCKCHANNEL_22);
PipeWriter.writeLong(gcc.goPipe,TrafficOrderSchema.MSG_BLOCKCHANNEL_22_FIELD_DURATIONNANOS_13, durationNanos);
PipeWriter.publishWrites(gcc.goPipe);
} else {
logger.info("Unable to use block channel for ns without an additonal feature use or USE_DELAY can be added.");
}
}
示例5: publishBlockChannelUntil
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishBlockChannelUntil(long timeMS, MsgCommandChannel<?> gcc) {
if (null != gcc.goPipe) {
PipeWriter.presumeWriteFragment(gcc.goPipe, TrafficOrderSchema.MSG_BLOCKCHANNELUNTIL_23);
PipeWriter.writeLong(gcc.goPipe,TrafficOrderSchema.MSG_BLOCKCHANNELUNTIL_23_FIELD_TIMEMS_14, timeMS);
PipeWriter.publishWrites(gcc.goPipe);
} else {
logger.info("Unable to use block channel for ns without an additonal feature or USE_DELAY can be added.");
}
}
示例6: 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);
}
示例7: 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);
}
示例8: 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);
}
示例9: 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);
}
示例10: 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);
}
示例11: 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);
}
示例12: 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);
}
示例13: 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);
}
示例14: 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);
}
示例15: 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);
}