public final class ServerInstance.Descriptor extends Object
Constructor and Description |
---|
Descriptor() |
Modifier and Type | Method and Description |
---|---|
String |
getHostname()
Returns the hostname of the server.
|
int |
getHttpPort()
Returns the HTTP port of the server.
|
boolean |
isLocal()
Returns
true if the server is installed locally,
false otherwise. |
public int getHttpPort() throws InstanceRemovedException
InstanceRemovedException
- if the instance is not available anymorepublic String getHostname() throws InstanceRemovedException
InstanceRemovedException
- if the instance is not available anymorepublic boolean isLocal() throws InstanceRemovedException
true
if the server is installed locally,
false
otherwise.true
if the server is installed locallyInstanceRemovedException
- if the instance is not available anymore