|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jk.core.JkHandler
org.apache.jk.common.JniHandler
org.apache.jk.common.ChannelUn
Pass messages using unix domain sockets.
| Field Summary |
| Fields inherited from class org.apache.jk.common.JniHandler |
apr, C2B_NOTE, JK_HANDLE_JNI_DISPATCH, JK_HANDLE_SHM_DISPATCH, jkHome, MB_NOTE, MSG_NOTE, nativeJkHandlerP |
| Fields inherited from class org.apache.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 | |
ChannelUn()
|
|
| Method Summary | |
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)
Invoke the request chain. |
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()
|
| Methods inherited from class org.apache.jk.common.JniHandler |
appendString, createMsgContext, destroyJkComponent, getJkHome, initJkComponent, initNative, nativeDispatch, pause, recycleNative, resume, setJkHome, setNativeAttribute, setNativeEndpoint |
| Methods inherited from class org.apache.jk.core.JkHandler |
addHandlerCallback, 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 org.apache.jk.core.JkChannel |
createMsgContext |
| Constructor Detail |
public ChannelUn()
| Method Detail |
public ThreadPool getThreadPool()
public void setFile(java.lang.String f)
public java.lang.String getFile()
public void init()
throws java.io.IOException
JniHandler
init in class JniHandlerjava.io.IOException
public void start()
throws java.io.IOException
java.io.IOException
public void destroy()
throws java.io.IOException
JkHandler
destroy in class JkHandlerjava.io.IOException
public void registerRequest(Request req,
MsgContext ep,
int count)
JkChannel
registerRequest in interface JkChannel
public int open(MsgContext ep)
throws java.io.IOException
java.io.IOException
public void close(MsgContext ep)
throws java.io.IOException
java.io.IOException
public int send(Msg msg,
MsgContext ep)
throws java.io.IOException
JkChannel
send in interface JkChannelmsg - The message to send.ep - The connection point for this request.
java.io.IOException
public int receive(Msg msg,
MsgContext ep)
throws java.io.IOException
JkChannel
receive in interface JkChannelmsg - The place to recieve the data into.ep - The connection point for this request.
java.io.IOException
public int flush(Msg msg,
MsgContext ep)
throws java.io.IOException
JkChannel
flush in interface JkChanneljava.io.IOExceptionpublic boolean isSameAddress(MsgContext ep)
JkChannel
isSameAddress in interface JkChannel
public int invoke(Msg msg,
MsgContext ep)
throws java.io.IOException
JkChannel
invoke in interface JkChannelinvoke in class JniHandlerjava.io.IOExceptionpublic java.lang.String getChannelName()
JkChannel
getChannelName in interface JkChannel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||