|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xindice.util.SimpleConfigurable | +--org.apache.xindice.server.services.SocketServer
SocketServer is the generic base class for all of Xindice's Socket-based Services.
Field Summary | |
int |
chunkSize
|
java.lang.String |
hostname
|
int |
keepalive
|
Kernel |
kernel
|
int |
linger
|
int |
port
|
boolean |
reverse
|
int |
timeout
|
Fields inherited from interface org.apache.xindice.server.Service |
RESULT_BUSY, RESULT_FAILED, RESULT_INVALID, RESULT_OK, STATE_STARTED, STATE_STOPPED, STATE_SUSPENDED |
Constructor Summary | |
SocketServer()
|
Method Summary | |
java.lang.String |
getHostname()
|
java.lang.String |
getName()
getName retrieves the contextually important name of the object |
int |
getPort()
|
abstract java.lang.String |
getProtocol()
|
abstract int |
initialize()
initialize will initialize the Service based on its current configuration. |
int |
resume()
resume resumes exection of a suspended Service. |
abstract void |
run()
|
void |
setConfig(Configuration config)
setConfig sets the configuration information for the Configurable object instance. |
void |
setKernel(Kernel kernel)
setKernel provides a Kernel callback interface to the implementing object. |
int |
start()
start will attempt to start the Service. |
int |
status()
status returns the current operational status of this Service. |
java.lang.String |
statusMessage()
statusMessage returns a textual message about the Service's operational state. |
int |
stop()
stop will attempt to stop the Service. |
int |
suspend()
suspend suspends execution of the Service. |
int |
uninitialize()
uninitialize will uninitialize the Service based on its current configuration and will clean up any existing resources for that configuration. |
Methods inherited from class org.apache.xindice.util.SimpleConfigurable |
getConfig |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Kernel kernel
public int port
public java.lang.String hostname
public int keepalive
public int linger
public int timeout
public boolean reverse
public int chunkSize
Constructor Detail |
public SocketServer()
Method Detail |
public void setKernel(Kernel kernel)
KernelAccess
setKernel
in interface KernelAccess
org.apache.xindice.server.KernelAccess
kernel
- the Kernel referencepublic void setConfig(Configuration config) throws XindiceException
Configurable
setConfig
in class SimpleConfigurable
org.apache.xindice.util.Configurable
config
- The configuration Nodepublic java.lang.String getName()
Named
getName
in interface Named
org.apache.xindice.util.Named
public int status()
Service
status
in interface Service
org.apache.xindice.server.Service
public java.lang.String statusMessage()
Service
statusMessage
in interface Service
org.apache.xindice.server.Service
public abstract java.lang.String getProtocol()
public java.lang.String getHostname()
public int getPort()
public int start()
Service
start
in interface Service
org.apache.xindice.server.Service
public int stop()
Service
stop
in interface Service
org.apache.xindice.server.Service
public int suspend()
Service
suspend
in interface Service
org.apache.xindice.server.Service
public int resume()
Service
resume
in interface Service
org.apache.xindice.server.Service
public int uninitialize()
Service
uninitialize
in interface Service
org.apache.xindice.server.Service
public abstract int initialize()
Service
initialize
in interface Service
org.apache.xindice.server.Service
public abstract void run()
run
in interface java.lang.Runnable
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |