Class ClusterUtil
java.lang.Object
com.inductiveautomation.ignition.gateway.cluster.ClusterUtil
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ObjectdeserializeObject(GatewayContext context, byte[] b) Deserializes an object that was serialized by serializeObject().static ObjectdeserializeObject(GatewayContext context, byte[] b, Map<String, String> aliasClassPaths) Deserializes an object using some specified alias class(es).static ObjectdeserializeObject(GatewayContext context, InputStream stream) static ObjectdeserializeObject(GatewayContext context, InputStream stream, Map<String, String> aliasClassPaths) static ObjectdeserializeObject(InputStream stream) static byte[]static byte[]Serializes an Object so it can be sent over the cluster.static ObjectunzipAndDeserializeObject(GatewayContext context, byte[] b) static ObjectunzipAndDeserializeObject(GatewayContext context, byte[] b, Map<String, String> aliasClassPaths) 
- 
Constructor Details- 
ClusterUtilpublic ClusterUtil()
 
- 
- 
Method Details- 
serializeObjectSerializes an Object so it can be sent over the cluster.- Parameters:
- o- Object to serialize.
- Returns:
- byte[] representing serialized object.
- Throws:
- Exception
 
- 
serializeAndGZipObject- Throws:
- Exception
 
- 
deserializeObjectDeserializes an object that was serialized by serializeObject(). Requires the gateway context so it can resolve classes provided by modules.- Parameters:
- b- byte[] to deserialize.
- Returns:
- Object representing the deserialized byte[].
- Throws:
- Exception
 
- 
deserializeObjectpublic static Object deserializeObject(GatewayContext context, byte[] b, Map<String, String> aliasClassPaths) throws ExceptionDeserializes an object using some specified alias class(es). Should be used if object has a class path that has since been changed.- Throws:
- Exception
 
- 
unzipAndDeserializeObject- Throws:
- Exception
 
- 
unzipAndDeserializeObjectpublic static Object unzipAndDeserializeObject(GatewayContext context, byte[] b, Map<String, String> aliasClassPaths) throws Exception- Throws:
- Exception
 
- 
deserializeObjectpublic static Object deserializeObject(GatewayContext context, InputStream stream, Map<String, String> aliasClassPaths) throws Exception- Throws:
- Exception
 
- 
deserializeObject- Throws:
- Exception
 
- 
deserializeObject- Throws:
- Exception
 
 
-