def create_chunk_data(self,message):
     data = Data(self.db_path)
     file_id=message.split(" ")[2]
     chunk_number=message.split(" ")[3]
     minimum_replication_degree=message.split(" ")[4].split(CRLF+CRLF)[0]
     data.add_only_modification(file_id)
     data.add_chunk(file_id, chunk_number, minimum_replication_degree)
     data.increment_replication_degree(file_id, chunk_number,"localhost")
 def increment_chunk_replication_degree(self,message,addr):
     ip=addr[0]
     data = Data(self.db_path)
     file_id=message.split(" ")[2]
     chunk_number=message.split(" ")[3]
     print "file_id: *"+file_id+"*"
     print "chunk_number: *"+chunk_number+"*"
     if(data.increment_replication_degree(file_id, chunk_number,ip)):
         print "replication degree: " + str(data.get_chunk_replication_degree(file_id, chunk_number))