This method should return true if a service
will eventually bind to a port.
Method Detail
getPort
int getPort()
Get a port where service is running. This method
should return port as zero or negative if port is
unknown. For example if underlying communication
library is using random ports or other methods so
that user doesn't need to worry about it.
Returns:
Service port, -1 if port unknown.
hasPort
boolean hasPort()
This method should return true if a service
will eventually bind to a port. User can then
do a sleep while waiting getPort() to
return the actual port number.
Returns:
True if this service will provide a port
getHost
java.lang.String getHost()
Get a hostname where service is running. This method
should return null if service is unknown.