Exemple #1
0
    def _occur(self, message):
        assert isinstance(message, types.StringTypes)

        logging.info("{0}:  Parsing from {1}".format(self.name, message))

        view = AssetView(self.segment, **decoder(message))

        logging.info("{0}:  Parsed to {1}".format(self.name, view.name))

        return view
Exemple #2
0
 def _occur(self,message):
     assert isinstance(message,types.StringTypes)
     
     logging.info("{0}:  Parsing from {1}".\
                  format(self.name,message))
     
     controller =  AssetController(self.segment,**decoder(message))
     
     logging.info("{0}:  Parsed to {1}".\
                  format(self.name,controller.name))
                  
     return controller
Exemple #3
0
 def _occur(self,message):
     assert isinstance(message,types.StringTypes)
     
     logging.info("{0}:  Parsing from {1}".\
                  format(self.name,message))
     
     epoch =  EpochState(**decoder(message))
     
     logging.info("{0}:  Parsed to {1}".\
                  format(self.name,epoch.epoch))
                  
     return epoch
Exemple #4
0
 def _occur(self,message):
     assert isinstance(message,types.StringTypes)
     
     logging.info("{0}:  Parsing from {1}".\
                  format(self.name,message))
     
     telemetry =  TelemetryMessage(**decoder(message))
     
     logging.info("{0}:  Parsed to {1}".\
                  format(self.name,telemetry.epoch))
                  
     return telemetry
Exemple #5
0
 def _occur(self,message):
     assert isinstance(message,types.StringTypes)
     
     logging.info("{0}:  Parsing from {1}".\
                  format(self.name,message))
     
     model =  AssetModel(self.segment,**decoder(message))
     
     logging.info("{0}:  Parsed to {1}".\
                  format(self.name,model.name))
                  
     return model