org.apache.jk.common
public class JniHandler extends JkHandler
Modifier and Type | Field and Description |
---|---|
protected AprImpl |
apr |
static int |
JK_HANDLE_JNI_DISPATCH |
static int |
JK_HANDLE_SHM_DISPATCH |
protected java.lang.String |
jkHome |
static int |
MB_NOTE |
static int |
MSG_NOTE |
protected long |
nativeJkHandlerP |
domain, ERROR, HANDLE_FLUSH, HANDLE_RECEIVE_PACKET, HANDLE_SEND_PACKET, HANDLE_THREAD_END, id, LAST, mserver, name, next, nextName, OK, oname, properties, wEnv
Constructor and Description |
---|
JniHandler() |
Modifier and Type | Method and Description |
---|---|
void |
appendString(Msg msg,
java.lang.String s,
C2BConverter charsetDecoder) |
MsgContext |
createMsgContext()
Create a msg context to be used with the shm channel
|
void |
destroyJkComponent() |
java.lang.String |
getJkHome() |
void |
init()
You must call initNative() inside the component init()
|
void |
initJkComponent() |
protected void |
initNative(java.lang.String nativeComponentName) |
int |
invoke(Msg msg,
MsgContext ep)
Base implementation for invoke.
|
protected int |
nativeDispatch(Msg msg,
MsgContext ep,
int code,
int raw)
send and get the response in the same buffer.
|
void |
pause() |
protected void |
recycleNative(MsgContext ep) |
void |
resume() |
void |
setJkHome(java.lang.String s) |
void |
setNativeAttribute(java.lang.String name,
java.lang.String val) |
protected void |
setNativeEndpoint(MsgContext msgCtx) |
addHandlerCallback, createMsgContext, destroy, getDomain, getId, getName, getNext, getObjectName, getProperty, handleNotification, postDeregister, postRegister, preDeregister, preRegister, setId, setName, setNext, setNext, setProperty, setWorkerEnv
protected AprImpl apr
protected long nativeJkHandlerP
protected java.lang.String jkHome
public static final int JK_HANDLE_JNI_DISPATCH
public static final int JK_HANDLE_SHM_DISPATCH
public static final int MSG_NOTE
public static final int MB_NOTE
public void setJkHome(java.lang.String s)
public java.lang.String getJkHome()
public void init() throws java.io.IOException
protected void initNative(java.lang.String nativeComponentName)
public void appendString(Msg msg, java.lang.String s, C2BConverter charsetDecoder) throws java.io.IOException
java.io.IOException
public void pause() throws java.lang.Exception
public void resume() throws java.lang.Exception
public MsgContext createMsgContext()
createMsgContext
in class JkHandler
public void setNativeAttribute(java.lang.String name, java.lang.String val) throws java.io.IOException
java.io.IOException
public void initJkComponent() throws java.io.IOException
java.io.IOException
public void destroyJkComponent() throws java.io.IOException
java.io.IOException
protected void setNativeEndpoint(MsgContext msgCtx)
protected void recycleNative(MsgContext ep)
protected int nativeDispatch(Msg msg, MsgContext ep, int code, int raw) throws java.io.IOException
java.io.IOException
public int invoke(Msg msg, MsgContext ep) throws java.io.IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.