producer.send(textMessage);
}
private EntityInstanceMessage getMockIvoryMessage(int i) {
EntityInstanceMessage message = new EntityInstanceMessage();
message.getKeyValueMap().put(ARG.brokerImplClass, BROKER_IMPL_CLASS);
message.getKeyValueMap().put(ARG.brokerUrl, BROKER_URL);
message.getKeyValueMap().put(ARG.entityName, "process1");
message.getKeyValueMap().put(ARG.entityType, "PROCESS");
message.getKeyValueMap().put(ARG.feedInstancePaths,
"/clicks/hour/00/0" + i);
message.getKeyValueMap().put(ARG.feedNames, "clicks");
message.getKeyValueMap().put(ARG.logFile, "/logfile");
message.getKeyValueMap().put(ARG.nominalTime, "2012-10-10-10-10");
message.getKeyValueMap().put(ARG.operation, "GENERATE");
message.getKeyValueMap().put(ARG.runId, "0");
message.getKeyValueMap().put(ARG.timeStamp, "2012-10-10-10-1" + i);
message.getKeyValueMap().put(ARG.workflowId, "workflow-" + i);
message.getKeyValueMap().put(ARG.topicName, TOPIC_NAME);
message.getKeyValueMap().put(ARG.status, "SUCCEEDED");
return message;
}