public class IoTConnectionService extends AppService implements IoTConnectionServiceRemote, IoTServicesConstants
ACTIVE, AGGMSGSCHEMA, AGGTIMERANGE, BODY, DESCRIPTION, DEVICEIDTAG, DEVICETYPE, DEVICETYPEDESC, DEVICETYPEDESCRTAG, DEVICETYPETAG, ENDPOINTNAME, ENDPOINTVALUE, EXTSYSTEM, FEEDMAPPINGPROP, GROUPLEVEL, HASIOTCFG, HISTMAPPER, HISTQUERY, HTTPMETHOD, IFACENAME, INSTANCENAME, IOTCFG, IOTCONNSERVLOGGER, IOTSERVEP, IOTSERVICENAME, ISDEFAULT, LABEL, LASTMESSAGETAG, MAPPER, METERNAME, METHOD, NAMETAG, PAYLOADIDATTR, PINGENDPOINT, PROCESSOR, PROPAGGREGATION, PROPERTY, READINGDATEFORMAT, READINGDATETAGMAP, READINGDATETAGNAME, RESULTTAGNAME, RULENAME, SEQUENCE, SORT, USEDBY, USEDWITH, USEDWITH_getAggregateResultForDeviceType, USEDWITH_getAllDevicetypes, USEDWITH_getDevices, USEDWITH_getLastMessage, USEDWITH_getMessage, USEDWITH_getSampleAggregate, USEWITH, VALUE, VALUETAG
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
IoTConnectionService() |
IoTConnectionService(MXServer mxServer) |
Modifier and Type | Method and Description |
---|---|
boolean |
anyDeviceTypesMapped(MboRemote iotserv) |
void |
canDeleteDeviceType(MboRemote iotdevtype) |
java.util.Map<java.lang.String,java.lang.Object> |
checkCronTaskInstance(java.lang.String instancename) |
void |
clearDeviceReferenceAssetLocationLevel(MboRemote iotconfig) |
void |
clearDeviceRefernce(MboRemote iotf)
Clear reference for device type and device id from asset and location meter
for one device type.
|
void |
clearDeviceRefernceForService(MboRemote iotservice)
Clear reference for device type and device id from asset and location meter.
|
void |
createAsset(java.lang.String iotfOrg,
java.lang.String deviceType,
com.ibm.json.java.JSONObject deviceJO) |
void |
deleteDocument(java.util.Map<java.lang.String,java.lang.Object> metaData,
java.lang.String postUrl,
HTTPHandler handler) |
java.util.List<java.lang.Object> |
devices(java.lang.String deviceType) |
java.util.List<java.lang.Object> |
getAllDeviceTypes(MboRemote iotserv,
java.lang.String sort) |
java.lang.String |
getAnyHistorianDatabaseName(java.lang.String orgid,
java.lang.String historian,
java.lang.String choice,
java.lang.String bucket,
java.util.Date dt,
int offset,
boolean isDefault) |
java.util.List<java.lang.Object> |
getDevices(MboRemote iotserv,
java.lang.String deviceType,
java.lang.String limit) |
java.util.List<java.lang.Object> |
getDeviceTypeList(MboRemote iotserv,
java.lang.String sort,
boolean isMapped) |
java.util.List<java.lang.String> |
getEndPointValues(java.lang.String servicename) |
java.lang.String |
getHistorianDatabaseName(java.lang.String orgid,
java.lang.String historian,
java.util.Date dt) |
java.util.Map<java.lang.String,java.lang.Object> |
getLastMessageFromCache(MboRemote iotService,
java.lang.String deviceType) |
java.util.Map<java.lang.String,java.lang.Object> |
getLastMessageFromCacheForDevice(MboRemote iotserv,
java.lang.String deviceType,
java.lang.String deviceid) |
java.util.List<java.lang.Object> |
getNotMappedYetDeviceTypes(MboRemote iotserv,
java.lang.String sort)
Deprecated.
|
com.ibm.json.java.JSONObject |
getSampleAggregateResultForDeviceType(MboRemote iotService,
java.lang.String deviceType,
java.lang.String feedMapProperty,
java.lang.String deviceid)
Get the aggregated data, using the getSampleAggregateResultForDeviceType
endpoint.
|
java.util.List<java.lang.String> |
getTimePeriods(MboRemote iotserv) |
void |
init()
Initialize the Application Service.
|
boolean |
isDeviceTypeAssociated(MboRemote iotservice,
java.lang.String deviceType) |
static java.lang.String |
listOwnerChain(MboSet mboset) |
com.ibm.json.java.JSONObject |
pingIoT(MboRemote iotserv,
boolean iotcfg) |
void |
refreshIoTServicesCache(MboSet mboset)
Refresh Service Cache.
|
checkSecurity, configure, destroy, freeDBConnection, freeMboSet, getCriteria, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setProxy, setRunning, setURL, verifyUser, verifyUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public IoTConnectionService(MXServer mxServer) throws java.rmi.RemoteException
java.rmi.RemoteException
public IoTConnectionService() throws java.rmi.RemoteException
java.rmi.RemoteException
public void init()
AppService
init
in interface Service
init
in class AppService
Service
public com.ibm.json.java.JSONObject pingIoT(MboRemote iotserv, boolean iotcfg) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.List<java.lang.Object> getAllDeviceTypes(MboRemote iotserv, java.lang.String sort) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.List<java.lang.Object> getDeviceTypeList(MboRemote iotserv, java.lang.String sort, boolean isMapped) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
@Deprecated public java.util.List<java.lang.Object> getNotMappedYetDeviceTypes(MboRemote iotserv, java.lang.String sort) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.Map<java.lang.String,java.lang.Object> getLastMessageFromCache(MboRemote iotService, java.lang.String deviceType) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.Map<java.lang.String,java.lang.Object> getLastMessageFromCacheForDevice(MboRemote iotserv, java.lang.String deviceType, java.lang.String deviceid) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public com.ibm.json.java.JSONObject getSampleAggregateResultForDeviceType(MboRemote iotService, java.lang.String deviceType, java.lang.String feedMapProperty, java.lang.String deviceid) throws java.rmi.RemoteException, MXException
iotService
- IoTService MbodeviceType
- feedMapProperty
- java.rmi.RemoteException
MXException
public void clearDeviceRefernceForService(MboRemote iotservice) throws java.rmi.RemoteException, MXException
iotf
- IoTF organization objectMXException
java.rmi.RemoteException
public void clearDeviceReferenceAssetLocationLevel(MboRemote iotconfig) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void clearDeviceRefernce(MboRemote iotf) throws java.rmi.RemoteException, MXException
iotf
- IoTF device type objectMXException
java.rmi.RemoteException
public java.util.List<java.lang.String> getEndPointValues(java.lang.String servicename) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void refreshIoTServicesCache(MboSet mboset) throws MXException, java.rmi.RemoteException
refreshIoTServicesCache
in interface IoTConnectionServiceRemote
MXException
java.rmi.RemoteException
public java.util.List<java.lang.Object> getDevices(MboRemote iotserv, java.lang.String deviceType, java.lang.String limit) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.Map<java.lang.String,java.lang.Object> checkCronTaskInstance(java.lang.String instancename) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.List<java.lang.Object> devices(java.lang.String deviceType) throws MXException, java.io.IOException
MXException
java.io.IOException
public void createAsset(java.lang.String iotfOrg, java.lang.String deviceType, com.ibm.json.java.JSONObject deviceJO) throws MXException
MXException
public java.lang.String getHistorianDatabaseName(java.lang.String orgid, java.lang.String historian, java.util.Date dt) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.lang.String getAnyHistorianDatabaseName(java.lang.String orgid, java.lang.String historian, java.lang.String choice, java.lang.String bucket, java.util.Date dt, int offset, boolean isDefault) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void deleteDocument(java.util.Map<java.lang.String,java.lang.Object> metaData, java.lang.String postUrl, HTTPHandler handler) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void canDeleteDeviceType(MboRemote iotdevtype) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public boolean anyDeviceTypesMapped(MboRemote iotserv) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean isDeviceTypeAssociated(MboRemote iotservice, java.lang.String deviceType) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.List<java.lang.String> getTimePeriods(MboRemote iotserv) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static java.lang.String listOwnerChain(MboSet mboset) throws java.rmi.RemoteException
java.rmi.RemoteException