HTTPResponse response = connection.addNode(putFile, ("__the_data_in_nt+file__").getBytes(), "text/plain");
if (response.getStatusCode() == HTTPStatus.CREATED)
{
resultCollector.addResult(false, System.currentTimeMillis() - start);
nodesPath.add(new NodeInfo(putFile, System.currentTimeMillis()));
}
else
{
System.out.println(Thread.currentThread().getName() + " : Can not add (response code "
+ response.getStatusCode() + new String(response.getData()) + " ) file with path : " + putFile);