public class PlatformImpl extends PlatformParameters implements Platform, AutoCloseable
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_PARAMETERS |
static String |
CUMOLOCITY_APPLICATION_KEY |
static String |
CUMOLOCITY_HOST |
static String |
CUMOLOCITY_PROXY_HOST |
static String |
CUMULOCITY_PAGE_SIZE |
static String |
CUMULOCITY_PASSWORD |
static String |
CUMULOCITY_PORT |
static String |
CUMULOCITY_PROXY_PASSWORD |
static String |
CUMULOCITY_PROXY_PORT |
static String |
CUMULOCITY_PROXY_USER |
static String |
CUMULOCITY_TENANT |
static String |
CUMULOCITY_USER |
DEFAULT_PAGE_SIZE
Constructor and Description |
---|
PlatformImpl() |
PlatformImpl(String host,
com.cumulocity.model.authentication.CumulocityCredentials credentials) |
PlatformImpl(String host,
com.cumulocity.model.authentication.CumulocityCredentials credentials,
ClientConfiguration clientConfiguration) |
PlatformImpl(String host,
com.cumulocity.model.authentication.CumulocityCredentials credentials,
ClientConfiguration clientConfiguration,
int pageSize) |
PlatformImpl(String host,
com.cumulocity.model.authentication.CumulocityCredentials credentials,
int pageSize) |
PlatformImpl(String host,
int port,
com.cumulocity.model.authentication.CumulocityCredentials credentials) |
PlatformImpl(String host,
int port,
com.cumulocity.model.authentication.CumulocityCredentials credentials,
int pageSize) |
PlatformImpl(String host,
String tenantId,
String user,
String password,
String applicationKey)
Deprecated.
|
PlatformImpl(String host,
String tenantId,
String user,
String password,
String applicationKey,
int pageSize)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Platform |
createPlatform()
This static method creates the Platform from the system parameters.
|
protected void |
finalize() |
AlarmApi |
getAlarmApi() |
AuditRecordApi |
getAuditRecordApi() |
BinariesApi |
getBinariesApi() |
CepApi |
getCepApi() |
DeviceControlApi |
getDeviceControlApi() |
DeviceCredentialsApi |
getDeviceCredentialsApi() |
EventApi |
getEventApi() |
IdentityApi |
getIdentityApi() |
InventoryApi |
getInventoryApi() |
MeasurementApi |
getMeasurementApi() |
SystemOptionApi |
getSystemOptionApi() |
TenantOptionApi |
getTenantOptionApi() |
UserApi |
getUserApi() |
RestConnector |
rest() |
close, createRestConnector, getApplicationKey, getChunkedEncodingSize, getHost, getHttpClientConfig, getPageSize, getProxyHost, getProxyPassword, getProxyPort, getProxyUserId, getRequestOrigin, getResponseMapper, getTenantId, getTfaToken, getUser, isAlwaysCloseConnection, isForceInitialHost, registerInterceptor, requireResponseBody, setAlwaysCloseConnection, setChunkedEncodingSize, setForceInitialHost, setHost, setHttpClientConfig, setProxyHost, setProxyPassword, setProxyPort, setProxyUserId, setRequireResponseBody, setResponseMapper, setTfaToken, setTfaToken, unregisterInterceptor
public static final String CLIENT_PARAMETERS
public static final String CUMULOCITY_PAGE_SIZE
public static final String CUMULOCITY_PASSWORD
public static final String CUMULOCITY_USER
public static final String CUMULOCITY_TENANT
public static final String CUMULOCITY_PORT
public static final String CUMOLOCITY_HOST
public static final String CUMOLOCITY_APPLICATION_KEY
public static final String CUMOLOCITY_PROXY_HOST
public static final String CUMULOCITY_PROXY_PORT
public static final String CUMULOCITY_PROXY_USER
public static final String CUMULOCITY_PROXY_PASSWORD
public PlatformImpl(String host, com.cumulocity.model.authentication.CumulocityCredentials credentials)
public PlatformImpl(String host, com.cumulocity.model.authentication.CumulocityCredentials credentials, ClientConfiguration clientConfiguration)
public PlatformImpl(String host, int port, com.cumulocity.model.authentication.CumulocityCredentials credentials)
public PlatformImpl(String host, com.cumulocity.model.authentication.CumulocityCredentials credentials, int pageSize)
public PlatformImpl(String host, com.cumulocity.model.authentication.CumulocityCredentials credentials, ClientConfiguration clientConfiguration, int pageSize)
public PlatformImpl(String host, int port, com.cumulocity.model.authentication.CumulocityCredentials credentials, int pageSize)
@Deprecated public PlatformImpl(String host, String tenantId, String user, String password, String applicationKey)
@Deprecated public PlatformImpl(String host, String tenantId, String user, String password, String applicationKey, int pageSize)
public PlatformImpl()
public static Platform createPlatform() throws SDKException
System Properties cumolocityHost : ip address or name of the Cumulocity server cumulocityPort : port number of the Cumulocity server; cumulocityTenant : Tenant ID ; cumulocityUser : User ID ; cumulocityPassword : Password ; cumulocityPageSize : Page size for the paging parameters.
proxyHost : Proxy Host Name; proxyPort : Proxy Port Name proxyUser : Proxy User Name proxyPassword : Proxy Password
SDKException
- when platform creation failspublic InventoryApi getInventoryApi() throws SDKException
getInventoryApi
in interface Platform
SDKException
public IdentityApi getIdentityApi() throws SDKException
getIdentityApi
in interface Platform
SDKException
public MeasurementApi getMeasurementApi() throws SDKException
getMeasurementApi
in interface Platform
SDKException
public DeviceControlApi getDeviceControlApi() throws SDKException
getDeviceControlApi
in interface Platform
SDKException
public EventApi getEventApi() throws SDKException
getEventApi
in interface Platform
SDKException
public AlarmApi getAlarmApi() throws SDKException
getAlarmApi
in interface Platform
SDKException
public AuditRecordApi getAuditRecordApi() throws SDKException
getAuditRecordApi
in interface Platform
SDKException
public CepApi getCepApi() throws SDKException
getCepApi
in interface Platform
SDKException
public DeviceCredentialsApi getDeviceCredentialsApi() throws SDKException
getDeviceCredentialsApi
in interface Platform
SDKException
public BinariesApi getBinariesApi() throws SDKException
getBinariesApi
in interface Platform
SDKException
public UserApi getUserApi() throws SDKException
getUserApi
in interface Platform
SDKException
public TenantOptionApi getTenantOptionApi() throws SDKException
getTenantOptionApi
in interface Platform
SDKException
public SystemOptionApi getSystemOptionApi() throws SDKException
getSystemOptionApi
in interface Platform
SDKException
protected void finalize() throws Throwable
public RestConnector rest()
Copyright © 2020 (C) Cumulocity GmbH. All rights reserved.