def __init__(self): PublishStep.__init__(self) self.description = "publishes documents via AMQP" self.time_out = 5 self._acceptParameter( "services", "A list of services to try to connect to. Each item is host[:port]. If no port is specified, port 5672 will be used for TCP connections and port 5671 will be used for SSL connections.", True) self._acceptParameter("username", "the user to authenticate as", False) self._acceptParameter("password", "the password to authenticate with", False) self._acceptParameter( "ssl_options", "A dictionary containing the SSL options to use to connect. See the Python ssl.wrap_socket function for keys and values. Any relative path names are relative to a path in $IPF_WORKFLOW_PATH", False) self._acceptParameter("vhost", "the AMQP virtual host to connect to", False) self._acceptParameter("exchange", "the AMQP exchange to publish to", False) self.services = [] self.username = None self.password = None self.ssl_options = None self.vhost = None self.exchange = None self.cur_service = None self.connection = None self.channel = None
def __init__(self): PublishStep.__init__(self) self.description = "publishes documents by PUTing or POSTing them" self.time_out = 10 self._acceptParameter("host","The host name of the server to publish to",True) self._acceptParameter("port","The port to publish to",False) self._acceptParameter("path","The path part of the URL",True) self._acceptParameter("method","PUT or POST (default PUT)",False)
def __init__(self): PublishStep.__init__(self) self.description = "publishes documents by PUTing or POSTing them" self.time_out = 10 self._acceptParameter("host", "The host name of the server to publish to", True) self._acceptParameter("port", "The port to publish to", False) self._acceptParameter("path", "The path part of the URL", True) self._acceptParameter("method", "PUT or POST (default PUT)", False)
def __init__(self): PublishStep.__init__(self) self.description = "publishes documents by writing them to a file" self.time_out = 5 self._acceptParameter("path", "Path to the file to write. If the path is relative, it is relative to IPF_VAR_PATH", True) self._acceptParameter("append", "Whether to append to the file or to overwrite it (default is overwrite).", False)
def __init__(self): PublishStep.__init__(self) self.description = "publishes documents by writing them to a file" self.time_out = 5 self._acceptParameter( "path", "Path to the file to write. If the path is relative, it is relative to IPF_VAR_PATH", True) self._acceptParameter( "append", "Whether to append to the file or to overwrite it (default is overwrite).", False)
def run(self): try: self.host = self.params["host"] except KeyError: raise StepError("host not specified") try: self.port = self.params["port"] except KeyError: self.port = 80 try: self.method = self.params["method"] except KeyError: self.method = "PUT" try: self.path = self.params["path"] except ConfigParser.Error: raise StepError("path not specified") PublishStep.run(self)
def __init__(self): PublishStep.__init__(self) self.description = "publishes documents via AMQP" self.time_out = 5 self._acceptParameter("services","A list of services to try to connect to. Each item is host[:port]. If no port is specified, port 5672 will be used for TCP connections and port 5671 will be used for SSL connections.",True) self._acceptParameter("username","the user to authenticate as",False) self._acceptParameter("password","the password to authenticate with",False) self._acceptParameter("ssl_options","A dictionary containing the SSL options to use to connect. See the Python ssl.wrap_socket function for keys and values. Any relative path names are relative to a path in $IPF_WORKFLOW_PATH",False) self._acceptParameter("vhost","the AMQP virtual host to connect to",False) self._acceptParameter("exchange","the AMQP exchange to publish to",False) self.services = [] self.username = None self.password = None self.ssl_options = None self.vhost = None self.exchange = None self.cur_service = None self.connection = None self.channel = None
def __init__(self): PublishStep.__init__(self) self.description = "publishes documents by writing them to stdout" self.time_out = 5