<s> __author__ = "<STR_LIT>" <EOL> __date__ = "<STR_LIT>" <EOL> import os <EOL> class AppDBInterface : <EOL> def get_entity ( self , table_name , row_key , column_names , txnid = <NUM_LIT:0> ) : <EOL> raise NotImplementedError ( "<STR_LIT>" % self . __class__ ) <EOL> def put_entity ( self , table_name , row_key , column_names , cell_values , txnid = <NUM_LIT:0> ) : <EOL> raise NotImplementedError ( "<STR_LIT>" % self . __class__ ) <EOL> def put_entity_dict ( self , table_name , row_key , value_dict ) : <EOL> raise NotImplementedError ( "<STR_LIT>" % self . __class__ ) <EOL> def get_table ( self , table_name , column_names , txnid = <NUM_LIT:0> ) : <EOL> raise NotImplementedError ( "<STR_LIT>" % self . __class__ ) <EOL> def delete_row ( self , table_name , row_id , txnid = <NUM_LIT:0> ) : <EOL> raise NotImplementedError ( "<STR_LIT>" % self . __class__ ) <EOL> def get_schema ( self , table_name ) : <EOL> raise NotImplementedError ( "<STR_LIT>" % self . __class__ ) <EOL> def delete_table ( self , table_name ) : <EOL> raise NotImplementedError ( "<STR_LIT>" % self . __class__ ) <EOL> def commit ( self , txnid ) : <EOL> raise NotImplementedError ( "<STR_LIT>" % self . __class__ ) <EOL> def rollback ( self , txnid ) : <EOL> raise NotImplementedError ( "<STR_LIT>" % self . __class__ ) <EOL> def setup_transaction ( self , txnid ) : <EOL> raise NotImplementedError ( "<STR_LIT>" % self . __class__ ) <EOL> def get_local_ip ( self ) : <EOL> try : <EOL> local_ip = self . __local_ip <EOL> except AttributeError : <EOL> local_ip = None <EOL> if local_ip is None : <EOL> local_ip = os . environ . get ( "<STR_LIT>" ) <EOL> if local_ip is None : <EOL> raise Exception ( "<STR_LIT>" ) <EOL> else : <EOL> self . __local_ip = local_ip <EOL> return self . __local_ip <EOL> def get_master_ip ( self ) : <EOL> try : <EOL> master_ip = self . __master_ip <EOL> except AttributeError : <EOL> master_ip = None <EOL> if master_ip is None : <EOL> master_ip = os . environ . get ( "<STR_LIT>" ) <EOL> if master_ip is None : <EOL> raise Exception ( "<STR_LIT>" ) <EOL> else : <EOL> self . __master_ip = master_ip <EOL> return self . __master_ip </s>
