|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.carol.jndi.ns.AbsRegistry
This abstract class implements common methods of a NameService Registry should extend this class.
| Constructor Summary | |
protected |
AbsRegistry()
Build a new Registry |
protected |
AbsRegistry(int defaultPortNumber)
Build a new Registry with a given default port number |
| Method Summary | |
protected java.util.Properties |
getConfigProperties()
|
java.lang.String |
getHost()
|
int |
getPort()
get port method, get the port for the name service |
boolean |
isStarted()
isStarted Method, check if a name service is started |
protected void |
resetStarted()
Registry is stopped |
void |
setConfigProperties(java.util.Properties p)
Set the configuration properties of the protocol |
void |
setHost(java.lang.String host)
Set the address to use for bind |
void |
setPort(int p)
set port method, set the port for the name service |
protected void |
setStarted()
Registry is started |
abstract void |
start()
start Method, Start a new NameService or do nothing if the name service is all ready start |
abstract void |
stop()
stop Method, Stop a NameService or do nothing if the name service is all ready stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected AbsRegistry()
protected AbsRegistry(int defaultPortNumber)
defaultPortNumber - the default port number| Method Detail |
public abstract void start()
throws NameServiceException
start in interface NameServiceNameServiceException - if a problem occure
public abstract void stop()
throws NameServiceException
stop in interface NameServiceNameServiceException - if a problem occurepublic boolean isStarted()
isStarted in interface NameServicepublic void setPort(int p)
setPort in interface NameServicep - port numberpublic void setHost(java.lang.String host)
setHost in interface NameServicehost - hostname/ip addresspublic java.lang.String getHost()
getHost in interface NameServicepublic int getPort()
getPort in interface NameServicepublic void setConfigProperties(java.util.Properties p)
setConfigProperties in interface NameServicep - configuration propertiesprotected void setStarted()
protected void resetStarted()
protected java.util.Properties getConfigProperties()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||