public interface NameService
NameService
is the CAROL Name Service generic
interface. This is the carol SPI for a Name ServiceModifier and Type | Method and Description |
---|---|
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
|
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
|
void |
start()
start Method, Start a new NameService or do nothing if the name service
is all ready start
|
void |
stop()
stop Method, Stop a NameService or do nothing if the name service is all
ready stop
|
void start() throws NameServiceException
NameServiceException
- if a problem occurevoid stop() throws NameServiceException
NameServiceException
- if a problem occureboolean isStarted()
void setPort(int p)
p
- port numberint getPort()
void setHost(java.lang.String host)
host
- hostname/ip addressjava.lang.String getHost()
void setConfigProperties(java.util.Properties p)
p
- configuration properties