|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.easybeans.component.smartclient.server.SmartClientEndPointComponent
public class SmartClientEndPointComponent
This endpoint receives the request from clients, handle them and send an
answer.
For example, it send the bytecode for a given class.
Constructor Summary | |
---|---|
SmartClientEndPointComponent()
|
Method Summary | |
---|---|
int |
getPortNumber()
Gets the port number of the smart endpoint. |
void |
handleSelectors()
Infinite loop (until the end of the component) that handle the selectors. |
void |
init()
Init method. This method is called before the start method. |
void |
run()
Launch the thread looking at the selectors. |
void |
setPortNumber(int portNumber)
Sets the port number of the smart endpoint. |
void |
setRegistryComponent(org.ow2.easybeans.component.itf.RegistryComponent registryComponent)
Sets the registry component. |
void |
start()
Start method. This method is called after the init method. |
void |
stop()
Stop method. This method is called when component needs to be stopped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SmartClientEndPointComponent()
Method Detail |
---|
public void init() throws org.ow2.easybeans.component.api.EZBComponentException
init
in interface org.ow2.easybeans.component.api.EZBComponent
org.ow2.easybeans.component.api.EZBComponentException
- if the initialization has failed.public void start() throws org.ow2.easybeans.component.api.EZBComponentException
start
in interface org.ow2.easybeans.component.api.EZBComponent
org.ow2.easybeans.component.api.EZBComponentException
- if the start has failed.public void stop() throws org.ow2.easybeans.component.api.EZBComponentException
stop
in interface org.ow2.easybeans.component.api.EZBComponent
org.ow2.easybeans.component.api.EZBComponentException
- if the stop is failing.public void handleSelectors()
public void run()
run
in interface java.lang.Runnable
public void setPortNumber(int portNumber)
portNumber
- the port for listeningpublic void setRegistryComponent(org.ow2.easybeans.component.itf.RegistryComponent registryComponent)
registryComponent
- the given component.public int getPortNumber()
getPortNumber
in interface org.ow2.easybeans.component.itf.EZBSmartComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |