def put_instance(self, stream): ''' Destroy a stream instance Args: stream (any): Stream instance ''' unregister_instance('stream_' + stream.interface, stream) del stream
def put_instance(self, capability): ''' Destroy operator instance Args: capability (any): Capability instance ''' unregister_instance('operator_' + str(capability.cap_id), capability) unregister_instance('operator', capability) del capability
def put_instance(self, endpoint): ''' Destroy endpoint instance Args: endpoint (any): Endpoint instance ''' unregister_instance('endpoint_' + endpoint.interface, endpoint) unregister_instance('endpoint', endpoint) del endpoint