Returns a reference to {@code this} so multiple operations can be appended together.
231232233234235236237238239240241
msg.appendByte( SHM_WRITE_SLOT ); appendString( msg, slotName, c2b ); // number of channels for this instance msg.appendInt( 0 ); msg.appendInt( 0 ); if (log.isDebugEnabled()) log.debug("UnRegister " + slotName ); this.invoke( msg, mCtx ); }
189190191192193194195196197198199
int channelCnt=1; if( unixDomain != null ) channelCnt++; // number of groups. 0 means the default lb. msg.appendInt( groups.size() ); for( int i=0; i<groups.size(); i++ ) { appendString( msg, (String)groups.elementAt( i ), c2b); appendString( msg, instanceId, c2b); }
196197198199200201202203204205206
appendString( msg, (String)groups.elementAt( i ), c2b); appendString( msg, instanceId, c2b); } // number of channels for this instance msg.appendInt( channelCnt ); // The body: appendString(msg, "channel.socket:" + host + ":" + port, c2b ); msg.appendInt( 1 ); appendString(msg, "tomcatId", c2b);
200201202203204205206207208209210
// number of channels for this instance msg.appendInt( channelCnt ); // The body: appendString(msg, "channel.socket:" + host + ":" + port, c2b ); msg.appendInt( 1 ); appendString(msg, "tomcatId", c2b); appendString(msg, instanceId, c2b); if( unixDomain != null ) { appendString(msg, "channel.apr:" + unixDomain, c2b );
206207208209210211212213214215216
appendString(msg, "tomcatId", c2b); appendString(msg, instanceId, c2b); if( unixDomain != null ) { appendString(msg, "channel.apr:" + unixDomain, c2b ); msg.appendInt(1); appendString(msg, "tomcatId", c2b); appendString(msg, instanceId, c2b); } if (log.isDebugEnabled())
229230231232233234235236237238239
msg.appendByte( SHM_WRITE_SLOT ); appendString( msg, slotName, c2b ); // number of channels for this instance msg.appendInt( 0 ); msg.appendInt( 0 ); if (log.isDebugEnabled()) log.debug("UnRegister " + slotName ); this.invoke( msg, mCtx );
230231232233234235236237238239240
177178179180181182183184185186187
hostHdr.recycle(); CBuffer cb = hostHdr; cb.append(dstHost); if (dstPort != 80) { cb.append(':'); cb.appendInt(dstPort); } } // } if (debug) { HttpChannel server = serverHttpReq.getHttpChannel();
3637383940414243444546
int response(long offset, int amount) { CommHeader header = new CommHeader(); header.initialize_from_request_header(mEvent.header); CommBuf cbuf = new CommBuf(header, 16); cbuf.AppendInt(Error.OK); cbuf.AppendLong(offset); cbuf.AppendInt(amount); return mComm.SendResponse(mEvent.addr, cbuf); } }
2324252627282930313233
private int commandStatus = 0; private int sequenceNumber = 1; public ByteBuffer getData() { ByteBuffer buffer = new ByteBuffer(); buffer.appendInt(getCommandLength()); buffer.appendInt(getCommandId()); buffer.appendInt(getCommandStatus()); buffer.appendInt(getSequenceNumber()); return buffer; }