public class IoTMessageParser extends java.lang.Object implements 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
Constructor and Description |
---|
IoTMessageParser(java.lang.String serviceName)
Process historian data to show it in the IoT Service.
|
Modifier and Type | Method and Description |
---|---|
MboSetRemote |
parseMessage(byte[] jsonData,
MboSetRemote objectSet)
Parse the provided JSON and return a set of the parsed values.
|
MboSetRemote |
parseMessage(byte[] jsonData,
MboSetRemote objectSet,
java.lang.String nameTag)
Parse the provided JSON byte array and return a set of the parsed values.
|
MboSetRemote |
parseMessage(byte[] jsonData,
UserInfo userInfo)
Parse the provided JSON and return a set of the parsed values.
|
boolean |
validateProperty(byte[] jsonData,
UserInfo userInfo,
java.lang.String value)
This method will process historian request
|
public IoTMessageParser(java.lang.String serviceName) throws MXException, java.rmi.RemoteException
owner
- The owner mbo of the targetSet.MXException
java.rmi.RemoteException
public MboSetRemote parseMessage(byte[] jsonData, UserInfo userInfo) throws MXException, java.rmi.RemoteException
jsonData
- a byte array of the message to parseuserInfo
- UserInfo for the current userMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic MboSetRemote parseMessage(byte[] jsonData, MboSetRemote objectSet) throws MXException, java.rmi.RemoteException
jsonData
- a byte array of the message to parseMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic MboSetRemote parseMessage(byte[] jsonData, MboSetRemote objectSet, java.lang.String nameTag) throws MXException
jsonData
- a byte array of the message to parseMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic boolean validateProperty(byte[] jsonData, UserInfo userInfo, java.lang.String value) throws MXException, java.rmi.RemoteException
pageSize
- Page size if paging is usedpageNum
- Current pageMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exception