public class SmartClientEndPointComponent extends Object implements EZBSmartComponent, Runnable
Constructor and Description |
---|
SmartClientEndPointComponent() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
void |
stop()
Stop method.
|
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()
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()
Copyright © 2006-2013 OW2 Consortium. All Rights Reserved.