public CoordinatorStreamMessage(String source, Object[] keyArray, Map<String, Object> messageMap) { this(keyArray, messageMap); if (!isDelete) { this.messageMap.put("values", new HashMap<String, String>()); setSource(source); setUsername(System.getProperty("user.name")); setTimestamp(System.currentTimeMillis()); try { setHost(Util.getLocalHost().getHostAddress()); } catch (Exception e) { log.warn("Unable to retrieve host for current machine. Setting coordinator stream message host field to an empty string."); setHost(""); } } setVersion(VERSION); }
public CoordinatorStreamMessage(String source, Object[] keyArray, Map<String, Object> messageMap) { this(keyArray, messageMap); if (!isDelete) { this.messageMap.put("values", new HashMap<String, String>()); setSource(source); setUsername(System.getProperty("user.name")); setTimestamp(System.currentTimeMillis()); try { setHost(Util.getLocalHost().getHostAddress()); } catch (Exception e) { log.warn("Unable to retrieve host for current machine. Setting coordinator stream message host field to an empty string."); setHost(""); } } setVersion(VERSION); }
public CoordinatorStreamMessage(String source, Object[] keyArray, Map<String, Object> messageMap) { this(keyArray, messageMap); if (!isDelete) { this.messageMap.put("values", new HashMap<String, String>()); setSource(source); setUsername(System.getProperty("user.name")); setTimestamp(System.currentTimeMillis()); try { setHost(Util.getLocalHost().getHostAddress()); } catch (Exception e) { log.warn("Unable to retrieve host for current machine. Setting coordinator stream message host field to an empty string."); setHost(""); } } setVersion(VERSION); }
public CoordinatorStreamMessage(String source, Object[] keyArray, Map<String, Object> messageMap) { this(keyArray, messageMap); if (!isDelete) { this.messageMap.put("values", new HashMap<String, String>()); setSource(source); setUsername(System.getProperty("user.name")); setTimestamp(System.currentTimeMillis()); try { setHost(Util.getLocalHost().getHostAddress()); } catch (Exception e) { log.warn("Unable to retrieve host for current machine. Setting coordinator stream message host field to an empty string."); setHost(""); } } setVersion(VERSION); }
public CoordinatorStreamMessage(String source, Object[] keyArray, Map<String, Object> messageMap) { this(keyArray, messageMap); if (!isDelete) { this.messageMap.put("values", new HashMap<String, String>()); setSource(source); setUsername(System.getProperty("user.name")); setTimestamp(System.currentTimeMillis()); try { setHost(Util.getLocalHost().getHostAddress()); } catch (Exception e) { log.warn("Unable to retrieve host for current machine. Setting coordinator stream message host field to an empty string."); setHost(""); } } setVersion(VERSION); }