public final class Datacenter extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static Datacenter |
EU1
Datacenter EU1 (GMT, CET).
|
static Datacenter |
EU2
Datacenter EU2 (for accounts where admin domain is https://secure2.thisispearl.com).
|
static Datacenter |
USE
Datacenter USE (EST, CST).
|
static Datacenter |
USW
Datacenter USW (PST, MST).
|
| Constructor and Description |
|---|
Datacenter(String name,
String host)
Create a custom datacenter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static Datacenter |
forName(String name)
Looks up a known datacenter by name, similar to looking up an enum by name.
|
String |
getHost()
Returns the datacenter host, including its scheme.
|
String |
getName()
Returns the name of the datacenter.
|
int |
hashCode() |
String |
toString() |
public static final Datacenter EU1
public static final Datacenter EU2
public static final Datacenter USE
public static final Datacenter USW
public Datacenter(String name, String host)
name - User friendly name of the datacenter. This is used for logging only; any non-null value is valid.host - Scheme and host name of the datacenter, e.g. https://ws-usw.brightpearl.com. Trailing slashes should be omitted.public String getName()
public String getHost()
public static Datacenter forName(String name)
name - A datacenter name, corresponding to one of the static instances.Copyright © 2014. All Rights Reserved.