150151152153154155156157158159160
if( apr==null ) return; MsgContext mCtx=createMsgContext(); Msg msg=(Msg)mCtx.getMsg(0); msg.reset(); msg.appendByte( SHM_RESET ); this.invoke( msg, mCtx ); } public void dumpScoreboard(String fname) throws IOException {
162163164165166167168169170171172
MsgContext mCtx=createMsgContext(); Msg msg=(Msg)mCtx.getMsg(0); C2BConverter c2b=mCtx.getConverter(); msg.reset(); msg.appendByte( SHM_DUMP ); appendString( msg, fname, c2b); this.invoke( msg, mCtx ); }
183184185186187188189190191192193
MsgContext mCtx=createMsgContext(); Msg msg=(Msg)mCtx.getMsg(0); msg.reset(); C2BConverter c2b=mCtx.getConverter(); msg.appendByte( SHM_WRITE_SLOT ); appendString( msg, slotName, c2b ); int channelCnt=1; if( unixDomain != null ) channelCnt++;
226227228229230231232233234235236
MsgContext mCtx=createMsgContext(); Msg msg=(Msg)mCtx.getMsg(0); msg.reset(); C2BConverter c2b=mCtx.getConverter(); msg.appendByte( SHM_WRITE_SLOT ); appendString( msg, slotName, c2b ); // number of channels for this instance msg.appendInt( 0 ); msg.appendInt( 0 );
149150151152153154155156157158159
161162163164165166167168169170171