public class IoTCloudantProcessor extends IotProcessor
NOACCESSCHECK, NOVALIDATION_AND_NOACTION
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 |
---|
IoTCloudantProcessor() |
Modifier and Type | Method and Description |
---|---|
com.ibm.json.java.JSONObject |
evaluateExpression(com.ibm.json.java.JSONObject jsonData,
java.lang.String path) |
java.util.Map<java.lang.String,java.lang.Object> |
getReadingDate(com.ibm.json.java.JSONObject json,
java.lang.String iotServiceName,
IoTMeterToPayloadMappingInfo mappingInfo) |
java.lang.Object |
getReadings(com.ibm.json.java.JSONObject jo,
IoTMeterToPayloadMappingInfo mapInfo)
Map response of the external resource invocation to format accepted in AH Dash Board.
|
void |
mapReadings(com.ibm.json.java.JSONArray readings,
com.ibm.json.java.JSONObject jo,
IoTMeterToPayloadMappingInfo mapInfo)
Map response of the external resource invocation to format accepted in AH Dash Board.
|
com.ibm.json.java.JSONArtifact |
processResource(JSONResourceInfo resourceInfo,
MboRemote owner,
UserInfo userInfo,
int pageSize,
int currentPage,
JSONAnalyzer jsonAnalyzer)
Invoke external Resource
|
java.lang.String |
setReadingsForHistorianData(com.ibm.json.java.JSONObject jo,
IoTMeterToPayloadMappingInfo mappingInfo,
java.util.Date readingDate) |
processHistorianData, syncMeterReadings
pingHistorian
getPagingParams
public IoTCloudantProcessor() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Map<java.lang.String,java.lang.Object> getReadingDate(com.ibm.json.java.JSONObject json, java.lang.String iotServiceName, IoTMeterToPayloadMappingInfo mappingInfo) throws java.rmi.RemoteException, MXException
getReadingDate
in class IotProcessor
java.rmi.RemoteException
MXException
public java.lang.String setReadingsForHistorianData(com.ibm.json.java.JSONObject jo, IoTMeterToPayloadMappingInfo mappingInfo, java.util.Date readingDate) throws MXException
setReadingsForHistorianData
in class IotProcessor
MXException
public com.ibm.json.java.JSONArtifact processResource(JSONResourceInfo resourceInfo, MboRemote owner, UserInfo userInfo, int pageSize, int currentPage, JSONAnalyzer jsonAnalyzer) throws MXException, java.rmi.RemoteException
processResource
in class HistorianProcessor
pageSize
- Page size if paging is usedpageNum
- Current pageMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void mapReadings(com.ibm.json.java.JSONArray readings, com.ibm.json.java.JSONObject jo, IoTMeterToPayloadMappingInfo mapInfo) throws MXException, java.rmi.RemoteException
ja
- JSON with results of the external invocationpageSize
- Page size if paging is usedpageNum
- Current pageMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.lang.Object getReadings(com.ibm.json.java.JSONObject jo, IoTMeterToPayloadMappingInfo mapInfo) throws MXException, java.rmi.RemoteException
ja
- JSON with results of the external invocationpageSize
- Page size if paging is usedpageNum
- Current pageMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic com.ibm.json.java.JSONObject evaluateExpression(com.ibm.json.java.JSONObject jsonData, java.lang.String path) throws MXException
MXException