File file = new File( streamContext.getTargetFile() );
String fileName = file.getName();
String [] temp = fileName.split("-");
//Open the file to see if all parts are now here
SSTableReader sstable = null;
try
{
sstable = SSTableWriter.renameAndOpen(streamContext.getTargetFile());
//TODO add a sanity check that this sstable has all its parts and is ok
Table.open(tableName).getColumnFamilyStore(temp[0]).addToList(sstable);
logger_.info("Bootstrap added " + sstable.getFilename());
}
catch (IOException e)
{
logger_.error("Not able to bootstrap with file " + streamContext.getTargetFile(), e);
}