#!/usr/bin/env python import sys from stream_boss import StreamBoss USAGE = "USAGE: archive_stream.py streamname" sb = StreamBoss() try: sb.archive_stream(sys.argv[1]) except IndexError: sys.exit(USAGE)
#!/usr/bin/env python import sys from stream_boss import StreamBoss USAGE = "USAGE: stream_archive.py streamname" sb = StreamBoss() try: sb.stream_archive(sys.argv[1]) except IndexError: sys.exit(USAGE)
#!/usr/bin/env python import sys from stream_boss import StreamBoss USAGE = "USAGE: stop_archiving_stream.py streamname" sb = StreamBoss() try: sb.disable_archive_stream(sys.argv[1]) except IndexError: sys.exit(USAGE)
#!/usr/bin/env python import sys from stream_boss import StreamBoss USAGE = "USAGE: remove_operation.py operationname" sb = StreamBoss() try: sb.remove_operation(sys.argv[1]) except IndexError: sys.exit(USAGE)
#!/usr/bin/env python import sys from stream_boss import StreamBoss USAGE = "USAGE: create_stream.py stream_name" sb = StreamBoss() try: sb.create_stream(sys.argv[1]) except IndexError: sys.exit(USAGE)
#!/usr/bin/env python import sys from stream_boss import StreamBoss USAGE = "USAGE: create_operation.py operationname process_definition_id inputstream outputstream" sb = StreamBoss() try: sb.create_operation(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4]) except IndexError: sys.exit(USAGE)