|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.mk.server.Server
public class Server
Server exposing a MicroKernel.
| Constructor Summary | |
|---|---|
Server(MicroKernel mk)
Create a new instance of this class. |
|
Server(MicroKernel mk,
ServerSocketFactory ssFactory)
Create a new instance of this class. |
|
| Method Summary | |
|---|---|
InetSocketAddress |
getAddress()
Return the server's local socket address. |
void |
setBindAddress(InetAddress addr)
Set bind address. |
void |
setPort(int port)
Set port number to listen to. |
void |
start()
Start this server. |
void |
stop()
Stop this server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Server(MicroKernel mk)
mk - micro kernel
public Server(MicroKernel mk,
ServerSocketFactory ssFactory)
mk - micro kernel| Method Detail |
|---|
public void setPort(int port)
throws IllegalStateException
port - port numbern
IllegalStateException - if the server is already started
public void setBindAddress(InetAddress addr)
throws IllegalStateException
IllegalStateException
public void start()
throws IOException
IOException - if an I/O error occurspublic InetSocketAddress getAddress()
null if the server is not startedpublic void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||