Package com.streamreduce

Examples of com.streamreduce.OutboundStorageException


            } else if (dto.getDataType() == OutboundDataType.INSIGHT) {
                SobaMessageResponseDTO responseDTO =
                        objectMapper.readValue(dto.getPayload(), SobaMessageResponseDTO.class);
                outboundClient.putInsightMessage(responseDTO);
            } else {
                throw new OutboundStorageException("The received OutboundConfigurationWithPayloadDTO does not " +
                        "specify a valid dataType.  Was " + dto.getDataType() +
                        " but was expecting one of [RAW, PROCESSED, or Insight]");
            }
        } catch (Exception e) {
            logger.error("Unable to send payload outbound", e);
View Full Code Here


            byte[] payloadAsBytes = payload.toString().getBytes();
            String filepath = String.format("%s%s-%s", RAW_PAYLOAD_PREFIX, System.currentTimeMillis(), payload.hashCode());
            sendPayloadToWebHDFS(filepath,payloadAsBytes);
        }
        catch (Exception e) {
            throw new OutboundStorageException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            byte[] payload = convertSobaMessageToDTOAsBytes(sobaMessage);
            String filepath = createProcessedMessagePath(sobaMessage);
            sendPayloadToWebHDFS(filepath, payload);
        } catch (Exception e) {
            throw new OutboundStorageException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            byte[] payload = convertSobaMessageToDTOAsBytes(sobaMessage);
            String filepath = createProcessedMessagePath(sobaMessage);
            sendPayloadToWebHDFS(filepath,payload);
        } catch (Exception e) {
            throw new OutboundStorageException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            byte[] payload = convertSobaMessageToDTOAsBytes(sobaMessage);
            String filepath = createInsightMessagePath(sobaMessage);
            sendPayloadToWebHDFS(filepath,payload);
        } catch (Exception e) {
            throw new OutboundStorageException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            byte[] payload = convertSobaMessageToDTOAsBytes(sobaMessage);
            String filepath = createInsightMessagePath(sobaMessage);
            sendPayloadToWebHDFS(filepath,payload);
        } catch (Exception e) {
            throw new OutboundStorageException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            String key = createRawPayloadKey(payload);
            byte[] payloadAsBytes = payload.toString().getBytes();
            sendPayload(key,payloadAsBytes);
        } catch (Exception e) {
            throw new OutboundStorageException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            String key = createProcessedMessagePath(sobaMessage);
            byte[] payload = convertSobaMessageToDTOAsBytes(sobaMessage);
            sendPayload(key, payload);
        } catch (Exception e) {
            throw new OutboundStorageException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            String key = createProcessedMessagePath(sobaMessage);
            byte[] payload = convertSobaMessageToDTOAsBytes(sobaMessage);
            sendPayload(key, payload);
        } catch (Exception e) {
            throw new OutboundStorageException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            String key = createInsightMessagePath(sobaMessage);
            byte[] payload = convertSobaMessageToDTOAsBytes(sobaMessage);
            sendPayload(key, payload);
        } catch (Exception e) {
            throw new OutboundStorageException(e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of com.streamreduce.OutboundStorageException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.