org.apache.jk.common
public class ChannelJni extends JniHandler implements JkChannel
apr, JK_HANDLE_JNI_DISPATCH, JK_HANDLE_SHM_DISPATCH, jkHome, MB_NOTE, MSG_NOTE, nativeJkHandlerPdomain, 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 |
|---|
ChannelJni() |
| Modifier and Type | Method and Description |
|---|---|
int |
flush(Msg msg,
MsgContext ep)
Flush the data to the client.
|
java.lang.String |
getChannelName()
Return the identifying name of this Channel.
|
void |
init()
You must call initNative() inside the component init()
|
int |
invoke(Msg msg,
MsgContext ep)
Receive a packet from the C side.
|
boolean |
isSameAddress(MsgContext ep)
Confirm that a shutdown request was recieved form us.
|
int |
receive(Msg msg,
MsgContext ep)
Receives does nothing - send will put the response
in the same buffer
|
void |
registerRequest(Request req,
MsgContext ep,
int count)
Register a new Request in the Request pool.
|
int |
send(Msg msg,
MsgContext ep)
Send the packet.
|
appendString, createMsgContext, destroyJkComponent, getJkHome, initJkComponent, initNative, nativeDispatch, pause, recycleNative, resume, setJkHome, setNativeAttribute, setNativeEndpointaddHandlerCallback, createMsgContext, destroy, getDomain, getId, getName, getNext, getObjectName, getProperty, handleNotification, postDeregister, postRegister, preDeregister, preRegister, setId, setName, setNext, setNext, setProperty, setWorkerEnvclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateMsgContextpublic void init()
throws java.io.IOException
JniHandlerinit in class JniHandlerjava.io.IOExceptionpublic int receive(Msg msg, MsgContext ep) throws java.io.IOException
public int send(Msg msg, MsgContext ep) throws java.io.IOException
public int flush(Msg msg, MsgContext ep) throws java.io.IOException
JkChannelpublic boolean isSameAddress(MsgContext ep)
JkChannelisSameAddress in interface JkChannelpublic void registerRequest(Request req, MsgContext ep, int count)
JkChannelregisterRequest in interface JkChannelpublic java.lang.String getChannelName()
JkChannelgetChannelName in interface JkChannelpublic int invoke(Msg msg, MsgContext ep) throws java.io.IOException
invoke in interface JkChannelinvoke in class JniHandlerjava.io.IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.