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, 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 |
---|
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, setNativeEndpoint
addHandlerCallback, createMsgContext, getDomain, getId, getName, getNext, getObjectName, getProperty, handleNotification, postDeregister, postRegister, preDeregister, preRegister, setId, setName, setNext, setNext, setProperty, setWorkerEnv
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createMsgContext
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 JniHandler
java.io.IOException
public void start() throws java.io.IOException
java.io.IOException
public void destroy() throws java.io.IOException
JkHandler
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
public int receive(Msg msg, MsgContext ep) throws java.io.IOException
JkChannel
public int flush(Msg msg, MsgContext ep) throws java.io.IOException
JkChannel
public boolean isSameAddress(MsgContext ep)
JkChannel
isSameAddress
in interface JkChannel
public int invoke(Msg msg, MsgContext ep) throws java.io.IOException
JniHandler
invoke
in interface JkChannel
invoke
in class JniHandler
java.io.IOException
public java.lang.String getChannelName()
JkChannel
getChannelName
in interface JkChannel
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.