|
|||||||||
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 | |
---|---|
ClassLoader |
getClassLoader()
The class loader to use for the resource lookup. |
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 |
setClassLoader(ClassLoader classLoader)
Sets the class loader to use for the resource lookup. |
void |
setPortNumber(int portNumber)
Sets the port number of the smart endpoint. |
void |
setRegistryComponent(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 EZBComponentException
init
in interface EZBComponent
EZBComponentException
- if the initialization has failed.public void start() throws EZBComponentException
start
in interface EZBComponent
EZBComponentException
- if the start has failed.public void stop() throws EZBComponentException
stop
in interface EZBComponent
EZBComponentException
- if the stop is failing.public void handleSelectors()
public void run()
run
in interface Runnable
public void setPortNumber(int portNumber)
portNumber
- the port for listeningpublic void setRegistryComponent(RegistryComponent registryComponent)
registryComponent
- the given component.public int getPortNumber()
getPortNumber
in interface EZBSmartComponent
public void setClassLoader(ClassLoader classLoader)
classLoader
- the class loader to use for the resource lookup.public ClassLoader getClassLoader()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |