public class IoTConnectionService extends AppService implements IoTConnectionServiceRemote, IoTServicesConstants
currentState, dbManager, INIT, liveObjCount, load, LOAD, mxServer, name, RUN, running, stateCmdList, stateList, STOP, urlACTIVE, 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, VALUETAGAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, 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 |
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 metaData,
java.lang.String postUrl,
HTTPHandler handler) |
java.util.List |
devices(java.lang.String deviceType) |
java.util.List |
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 |
getDevices(MboRemote iotserv,
java.lang.String deviceType,
java.lang.String limit) |
java.util.List |
getDeviceTypeList(MboRemote iotserv,
java.lang.String sort,
boolean isMapped) |
java.util.List |
getEndPointValues(java.lang.String servicename) |
java.lang.String |
getHistorianDatabaseName(java.lang.String orgid,
java.lang.String historian,
java.util.Date dt) |
java.util.Map |
getLastMessageFromCache(MboRemote iotService,
java.lang.String deviceType) |
java.util.Map |
getLastMessageFromCacheForDevice(MboRemote iotserv,
java.lang.String deviceType,
java.lang.String deviceid) |
java.util.List |
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 |
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, getCriteriaList, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setName, setProxy, setRunning, setURL, verifyUser, verifyUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic IoTConnectionService(MXServer mxServer) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic IoTConnectionService()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void init()
AppServiceinit in interface Serviceinit in class AppServiceServicepublic com.ibm.json.java.JSONObject pingIoT(MboRemote iotserv, boolean iotcfg) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.List getAllDeviceTypes(MboRemote iotserv, java.lang.String sort) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic java.util.List getDeviceTypeList(MboRemote iotserv, java.lang.String sort, boolean isMapped) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXException@Deprecated public java.util.List getNotMappedYetDeviceTypes(MboRemote iotserv, java.lang.String sort) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic java.util.Map getLastMessageFromCache(MboRemote iotService, java.lang.String deviceType) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic java.util.Map getLastMessageFromCacheForDevice(MboRemote iotserv, java.lang.String deviceType, java.lang.String deviceid) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic 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.RemoteExceptionMXExceptionpublic void clearDeviceRefernceForService(MboRemote iotservice) throws java.rmi.RemoteException, MXException
iotf - IoTF organization objectMXExceptionjava.rmi.RemoteExceptionpublic void clearDeviceReferenceAssetLocationLevel(MboRemote iotconfig) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic void clearDeviceRefernce(MboRemote iotf) throws java.rmi.RemoteException, MXException
iotf - IoTF device type objectMXExceptionjava.rmi.RemoteExceptionpublic java.util.List getEndPointValues(java.lang.String servicename)
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic void refreshIoTServicesCache(MboSet mboset) throws MXException, java.rmi.RemoteException
refreshIoTServicesCache in interface IoTConnectionServiceRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.util.List getDevices(MboRemote iotserv, java.lang.String deviceType, java.lang.String limit) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic java.util.Map checkCronTaskInstance(java.lang.String instancename)
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic java.util.List devices(java.lang.String deviceType)
throws MXException,
java.io.IOException
MXExceptionjava.io.IOExceptionpublic void createAsset(java.lang.String iotfOrg,
java.lang.String deviceType,
com.ibm.json.java.JSONObject deviceJO)
throws MXException
MXExceptionpublic java.lang.String getHistorianDatabaseName(java.lang.String orgid,
java.lang.String historian,
java.util.Date dt)
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic 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.RemoteExceptionMXExceptionpublic void deleteDocument(java.util.Map metaData,
java.lang.String postUrl,
HTTPHandler handler)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void canDeleteDeviceType(MboRemote iotdevtype) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic boolean anyDeviceTypesMapped(MboRemote iotserv) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean isDeviceTypeAssociated(MboRemote iotservice, java.lang.String deviceType) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic java.util.List getTimePeriods(MboRemote iotserv) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic static java.lang.String listOwnerChain(MboSet mboset) throws java.rmi.RemoteException
java.rmi.RemoteException