public DataOutputX writeStep(Step step) throws IOException { this.writeByte(step.getStepType()); step.write(this); return this; }
public Step readStep() throws IOException { this.offset++; byte type = this.inner.readByte(); return StepEnum.create(type).read(this); }
/** * for web app client (json parsing) */ public String getStepTypeName() { return StepEnum.Type.of(getStepType()).name(); }
public static void sendProfile(List<Step> p, TraceContext x) { if (p == null || p.size() == 0) return; XLogProfilePack pk = new XLogProfilePack(); pk.txid = x.txid; pk.objHash = conf.getObjHash(); pk.profile = Step.toBytes(p); x.profileCount += p.size(); // udp.add(pk); sendDirect(pk); }
/** * retrieve profile steps by txid * @param profileRequest * @return */ public List<Step> retrieveProfile(final ProfileRequest profileRequest) { return Step.toObjectList(retrieveProfilePack(profileRequest).profile); }
/** * for web app client (json parsing) */ public String getStepTypeName() { return StepEnum.Type.of(getStepType()).name(); }
public static void sendProfile(List<Step> p, TraceContext x) { if (p == null || p.size() == 0) return; XLogProfilePack pk = new XLogProfilePack(); pk.txid = x.txid; pk.objHash = conf.getObjHash(); pk.profile = Step.toBytes(p); x.profileCount += p.size(); // udp.add(pk); sendDirect(pk); }
/** * retrieve profile steps by txid * @param profileRequest * @return */ public List<Step> retrieveProfile(final ProfileRequest profileRequest) { return Step.toObjectList(retrieveProfilePack(profileRequest).profile); }
public DataOutputX writeStep(Step step) throws IOException { this.writeByte(step.getStepType()); step.write(this); return this; }
/** * for web app client (json parsing) */ public String getStepTypeName() { return StepEnum.Type.of(getStepType()).name(); }
public Step readStep() throws IOException { this.offset++; byte type = this.inner.readByte(); return StepEnum.create(type).read(this); }
public static void sendProfile(Step[] p, TraceContext context) { if (p == null || p.length == 0) return; XLogProfilePack pk = new XLogProfilePack(); pk.txid = context.txid; pk.objHash = conf.getObjHash(); pk.profile = Step.toBytes(p); pk.service = context.serviceHash; pk.elapsed = (int) (System.currentTimeMillis() - context.startTime); context.profileCount += p.length; sendDirect(pk); } public static void sendProfile(List<Step> p, TraceContext x) {
public DataOutputX writeStep(Step step) throws IOException { this.writeByte(step.getStepType()); step.write(this); return this; }
/** * for web app client (json parsing) */ public String getStepTypeName() { return StepEnum.Type.of(getStepType()).name(); }
public Step readStep() throws IOException { this.offset++; byte type = this.inner.readByte(); return StepEnum.create(type).read(this); }
public static void sendProfile(Step[] p, TraceContext context) { if (p == null || p.length == 0) return; XLogProfilePack pk = new XLogProfilePack(); pk.txid = context.txid; pk.objHash = conf.getObjHash(); pk.profile = Step.toBytes(p); pk.service = context.serviceHash; pk.elapsed = (int) (System.currentTimeMillis() - context.startTime); context.profileCount += p.length; sendDirect(pk); } public static void sendProfile(List<Step> p, TraceContext x) {
public DataOutputX writeStep(Step step) throws IOException { this.writeByte(step.getStepType()); step.write(this); return this; }