com.cumulocity.sdk.client
Class PlatformImpl

java.lang.Object
  extended by com.cumulocity.sdk.client.PlatformParameters
      extended by com.cumulocity.sdk.client.PlatformImpl
All Implemented Interfaces:
Platform

public class PlatformImpl
extends PlatformParameters
implements Platform


Field Summary
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
           
 
Fields inherited from class com.cumulocity.sdk.client.PlatformParameters
DEFAULT_PAGE_SIZE
 
Constructor Summary
PlatformImpl()
           
PlatformImpl(String host, int port, String tenantId, String user, String password, String applicationKey)
           
PlatformImpl(String host, int port, String tenantId, String user, String password, String applicationKey, int pageSize)
           
PlatformImpl(String host, String tenantId, String user, String password, String applicationKey)
           
PlatformImpl(String host, String tenantId, String user, String password, String applicationKey, int pageSize)
           
 
Method Summary
static Platform createPlatform()
          This static method creates the Platform from the system parameters.
 AlarmApi getAlarmApi()
           
 AuditRecordApi getAuditRecordApi()
           
 DeviceControlApi getDeviceControlApi()
           
 EventApi getEventApi()
           
 IdentityApi getIdentityApi()
           
 InventoryApi getInventoryApi()
           
 MeasurementApi getMeasurementApi()
           
 
Methods inherited from class com.cumulocity.sdk.client.PlatformParameters
getApplicationKey, getHost, getPageSize, getPassword, getProxyHost, getProxyPassword, getProxyPort, getProxyUserId, getTenantId, getUser, requireResponseBody, setApplicationKey, setHost, setPassword, setProxyHost, setProxyPassword, setProxyPort, setProxyUserId, setRequireResponseBody, setTenantId, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLIENT_PARAMETERS

public static final String CLIENT_PARAMETERS
See Also:
Constant Field Values

CUMULOCITY_PAGE_SIZE

public static final String CUMULOCITY_PAGE_SIZE
See Also:
Constant Field Values

CUMULOCITY_PASSWORD

public static final String CUMULOCITY_PASSWORD
See Also:
Constant Field Values

CUMULOCITY_USER

public static final String CUMULOCITY_USER
See Also:
Constant Field Values

CUMULOCITY_TENANT

public static final String CUMULOCITY_TENANT
See Also:
Constant Field Values

CUMULOCITY_PORT

public static final String CUMULOCITY_PORT
See Also:
Constant Field Values

CUMOLOCITY_HOST

public static final String CUMOLOCITY_HOST
See Also:
Constant Field Values

CUMOLOCITY_APPLICATION_KEY

public static final String CUMOLOCITY_APPLICATION_KEY
See Also:
Constant Field Values

CUMOLOCITY_PROXY_HOST

public static final String CUMOLOCITY_PROXY_HOST
See Also:
Constant Field Values

CUMULOCITY_PROXY_PORT

public static final String CUMULOCITY_PROXY_PORT
See Also:
Constant Field Values

CUMULOCITY_PROXY_USER

public static final String CUMULOCITY_PROXY_USER
See Also:
Constant Field Values

CUMULOCITY_PROXY_PASSWORD

public static final String CUMULOCITY_PROXY_PASSWORD
See Also:
Constant Field Values
Constructor Detail

PlatformImpl

public PlatformImpl(String host,
                    String tenantId,
                    String user,
                    String password,
                    String applicationKey)

PlatformImpl

public PlatformImpl(String host,
                    int port,
                    String tenantId,
                    String user,
                    String password,
                    String applicationKey)

PlatformImpl

public PlatformImpl(String host,
                    String tenantId,
                    String user,
                    String password,
                    String applicationKey,
                    int pageSize)

PlatformImpl

public PlatformImpl(String host,
                    int port,
                    String tenantId,
                    String user,
                    String password,
                    String applicationKey,
                    int pageSize)

PlatformImpl

public PlatformImpl()
Method Detail

createPlatform

public static Platform createPlatform()
                               throws SDKException
This static method creates the Platform from the system parameters.

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 Passowrd

Returns:
Platform for the handle to get other methods.
Throws:
SDKException

getInventoryApi

public InventoryApi getInventoryApi()
Specified by:
getInventoryApi in interface Platform

getIdentityApi

public IdentityApi getIdentityApi()
Specified by:
getIdentityApi in interface Platform

getMeasurementApi

public MeasurementApi getMeasurementApi()
Specified by:
getMeasurementApi in interface Platform

getDeviceControlApi

public DeviceControlApi getDeviceControlApi()
Specified by:
getDeviceControlApi in interface Platform

getEventApi

public EventApi getEventApi()
Specified by:
getEventApi in interface Platform

getAlarmApi

public AlarmApi getAlarmApi()
Specified by:
getAlarmApi in interface Platform

getAuditRecordApi

public AuditRecordApi getAuditRecordApi()
Specified by:
getAuditRecordApi in interface Platform


Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.