public class ServerAddressHolder extends Object
ServerAddress as we do not want to have setters there.| Modifier and Type | Field and Description |
|---|---|
private String |
host |
private int |
port |
private de.iip_ecosphere.platform.support.Schema |
schema |
| Constructor and Description |
|---|
ServerAddressHolder()
Creates an instance (deserialization).
|
ServerAddressHolder(de.iip_ecosphere.platform.support.Schema schema,
String host,
int port)
Creates an instance.
|
ServerAddressHolder(de.iip_ecosphere.platform.support.ServerAddress addr)
Creates an instance from a given instance (serialization).
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost()
Returns the host value.
|
int |
getPort()
Returns the port value.
|
de.iip_ecosphere.platform.support.Schema |
getSchema()
Returns the schema value.
|
de.iip_ecosphere.platform.support.ServerAddress |
getServerAddress()
Returns a server address instance constructed from the data in this instance.
|
void |
setHost(String host)
Defines the
host value. |
void |
setPort(int port)
Defines the
port value. |
void |
setSchema(de.iip_ecosphere.platform.support.Schema schema)
Defines the
schema value. |
private int port
private String host
private de.iip_ecosphere.platform.support.Schema schema
public ServerAddressHolder()
public ServerAddressHolder(de.iip_ecosphere.platform.support.Schema schema,
String host,
int port)
schema - the schemahost - the host nameport - the portpublic ServerAddressHolder(de.iip_ecosphere.platform.support.ServerAddress addr)
addr - the instance to take data frompublic int getPort()
public void setPort(int port)
port value. [required by data mapper]port - the new value of port (may be negative, indicates ephemerial)public String getHost()
public void setHost(String host)
host value. [required by data mapper]host - the new value of hostpublic de.iip_ecosphere.platform.support.Schema getSchema()
public void setSchema(de.iip_ecosphere.platform.support.Schema schema)
schema value. [required by data mapper]schema - the new value of schemapublic de.iip_ecosphere.platform.support.ServerAddress getServerAddress()
Copyright © 2021. All rights reserved.