org.apache.jk.common
public class ChannelUn 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 |
|---|
ChannelUn() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(MsgContext ep) |
void |
destroy()
Clean up and stop the handler
|
int |
flush(Msg msg,
MsgContext ep)
Flush the data to the client.
|
java.lang.String |
getChannelName()
Return the identifying name of this Channel.
|
java.lang.String |
getFile() |
ThreadPool |
getThreadPool() |
void |
init()
You must call initNative() inside the component init()
|
int |
invoke(Msg msg,
MsgContext ep)
Base implementation for invoke.
|
boolean |
isSameAddress(MsgContext ep)
Confirm that a shutdown request was recieved form us.
|
int |
open(MsgContext ep)
Open a connection - since we're listening that will block in
accept
|
int |
receive(Msg msg,
MsgContext ep)
Recieve a message from the client.
|
void |
registerRequest(Request req,
MsgContext ep,
int count)
Register a new Request in the Request pool.
|
int |
send(Msg msg,
MsgContext ep)
Send a message back to the client.
|
void |
setFile(java.lang.String f) |
void |
start() |
appendString, createMsgContext, destroyJkComponent, getJkHome, initJkComponent, initNative, nativeDispatch, pause, recycleNative, resume, setJkHome, setNativeAttribute, setNativeEndpointaddHandlerCallback, createMsgContext, 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 ThreadPool getThreadPool()
public void setFile(java.lang.String f)
public java.lang.String getFile()
public void init()
throws java.io.IOException
JniHandlerinit in class JniHandlerjava.io.IOExceptionpublic void start()
throws java.io.IOException
java.io.IOExceptionpublic void destroy()
throws java.io.IOException
JkHandlerpublic void registerRequest(Request req, MsgContext ep, int count)
JkChannelregisterRequest in interface JkChannelpublic int open(MsgContext ep) throws java.io.IOException
java.io.IOExceptionpublic void close(MsgContext ep) throws java.io.IOException
java.io.IOExceptionpublic int send(Msg msg, MsgContext ep) throws java.io.IOException
JkChannelpublic int receive(Msg msg, MsgContext ep) throws java.io.IOException
JkChannelpublic int flush(Msg msg, MsgContext ep) throws java.io.IOException
JkChannelpublic boolean isSameAddress(MsgContext ep)
JkChannelisSameAddress in interface JkChannelpublic int invoke(Msg msg, MsgContext ep) throws java.io.IOException
JniHandlerinvoke in interface JkChannelinvoke in class JniHandlerjava.io.IOExceptionpublic java.lang.String getChannelName()
JkChannelgetChannelName in interface JkChannelCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.