|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.http.jk.core.JkHandler
com.sun.grizzly.http.jk.common.JniHandler
com.sun.grizzly.http.jk.common.ChannelJni
public class ChannelJni
Pass messages using jni
Field Summary |
---|
Fields inherited from class com.sun.grizzly.http.jk.common.JniHandler |
---|
apr, JK_HANDLE_JNI_DISPATCH, JK_HANDLE_SHM_DISPATCH, jkHome, MB_NOTE, MSG_NOTE, nativeJkHandlerP |
Fields inherited from class com.sun.grizzly.http.jk.core.JkHandler |
---|
domain, ERROR, HANDLE_FLUSH, HANDLE_RECEIVE_PACKET, HANDLE_SEND_PACKET, HANDLE_THREAD_END, id, LAST, mserver, name, next, nextName, OK, oname, properties, wEnv |
Constructor Summary | |
---|---|
ChannelJni()
|
Method Summary | |
---|---|
int |
flush(Msg msg,
MsgContext ep)
Flush the data to the client. |
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. |
Methods inherited from class com.sun.grizzly.http.jk.common.JniHandler |
---|
appendString, createMsgContext, destroyJkComponent, getJkHome, initJkComponent, initNative, nativeDispatch, pause, recycleNative, resume, setJkHome, setNativeAttribute, setNativeEndpoint |
Methods inherited from class com.sun.grizzly.http.jk.core.JkHandler |
---|
addHandlerCallback, createMsgContext, destroy, getDomain, getId, getName, getNext, getObjectName, getProperty, handleNotification, postDeregister, postRegister, preDeregister, preRegister, setId, setName, setNext, setNext, setProperty, setWorkerEnv |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.grizzly.http.jk.core.JkChannel |
---|
createMsgContext |
Constructor Detail |
---|
public ChannelJni()
Method Detail |
---|
public void init() throws IOException
JniHandler
init
in class JniHandler
IOException
public int receive(Msg msg, MsgContext ep) throws IOException
receive
in interface JkChannel
msg
- The place to recieve the data into.ep
- The connection point for this request.
IOException
public int send(Msg msg, MsgContext ep) throws IOException
send
in interface JkChannel
msg
- The message to send.ep
- The connection point for this request.
IOException
public int flush(Msg msg, MsgContext ep) throws IOException
JkChannel
flush
in interface JkChannel
IOException
public boolean isSameAddress(MsgContext ep)
JkChannel
isSameAddress
in interface JkChannel
public void registerRequest(Request req, MsgContext ep, int count)
JkChannel
registerRequest
in interface JkChannel
public String getChannelName()
JkChannel
getChannelName
in interface JkChannel
public int invoke(Msg msg, MsgContext ep) throws IOException
invoke
in interface JkChannel
invoke
in class JniHandler
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |