|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.port.AbstractSelectManager
com.caucho.server.port.JniSelectManager
public class JniSelectManager
Represents a protocol connection.
| Method Summary | |
|---|---|
int |
addNative(long manager,
int fd)
|
int |
closeNative(long manager)
|
static JniSelectManager |
create()
Returns a jni select manager. |
long |
createNative()
|
protected void |
finalize()
|
int |
getFreeKeepalive()
Returns the available keepalive. |
int |
getSelectCount()
Returns the keepalive count. |
int |
getSelectMax()
Sets the max select. |
void |
initNative(long fd)
|
boolean |
keepalive(TcpConnection tcpConn)
Adds a keepalive connection. |
int |
removeNative(long manager,
int fd)
|
void |
run()
Running process accepting connections. |
int |
selectNative(long manager,
long timeout)
|
void |
setSelectMax(int max)
Sets the max select. |
void |
setSelectTimeout(long timeout)
Sets the select timeout |
boolean |
start()
Starts the manager. |
boolean |
stop()
Closing the manager. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.server.port.AbstractSelectManager |
|---|
close |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static JniSelectManager create()
public int getFreeKeepalive()
getFreeKeepalive in class AbstractSelectManagerpublic int getSelectCount()
getSelectCount in class AbstractSelectManagerpublic void setSelectMax(int max)
setSelectMax in class AbstractSelectManagerpublic int getSelectMax()
getSelectMax in class AbstractSelectManagerpublic void setSelectTimeout(long timeout)
setSelectTimeout in class AbstractSelectManagerpublic boolean start()
start in class AbstractSelectManagerpublic boolean keepalive(TcpConnection tcpConn)
keepalive in class AbstractSelectManagerconn - the connection to register as keepalive
public void run()
run in interface java.lang.Runnablepublic boolean stop()
stop in class AbstractSelectManagerpublic java.lang.String toString()
toString in class java.lang.Objectpublic long createNative()
public void initNative(long fd)
public int addNative(long manager,
int fd)
throws java.io.IOException
java.io.IOException
public int removeNative(long manager,
int fd)
throws java.io.IOException
java.io.IOException
public int selectNative(long manager,
long timeout)
throws java.io.IOException
java.io.IOExceptionpublic int closeNative(long manager)
protected void finalize()
finalize in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||