You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Tapeti.Cmd/Verbs/ImportVerb.cs
+26-16
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,12 @@ public class ImportOptions : BaseMessageSerializerOptions
28
28
29
29
[Option('e',"exchange",HelpText="If specified publishes to the originating exchange using the original routing key. By default these are ignored and the message is published directly to the originating queue.")]
30
30
publicboolPublishToExchange{get;set;}
31
+
32
+
[Option("skip",HelpText="(Default: 0) Number of messages in the input to skip. Useful if a previous import was interrupted.",Default=0)]
33
+
publicintSkip{get;set;}
34
+
35
+
[Option('n',"maxcount",HelpText="(Default: all) Maximum number of messages to import.")]
36
+
publicint?MaxCount{get;set;}
31
37
32
38
[Option("maxrate",HelpText="The maximum amount of messages per second to import.")]
33
39
publicint?MaxRate{get;set;}
@@ -61,6 +67,7 @@ public void Execute(IConsole console)
Copy file name to clipboardexpand all lines: docs/tapeticmd.rst
+15
Original file line number
Diff line number
Diff line change
@@ -45,9 +45,15 @@ Fetches messages from a queue and writes them to disk.
45
45
-o <target>, --output <target>
46
46
*Required*. Path or filename (depending on the chosen serialization method) where the messages will be output to.
47
47
48
+
-y, --overwrite
49
+
If the output exists, do not ask to overwrite.
50
+
48
51
-r, --remove
49
52
If specified messages are acknowledged and removed from the queue. If not messages are kept.
50
53
54
+
--skip <count>
55
+
Number of messages in the input to skip. Useful if a previous non-removing export was interrupted.
56
+
51
57
-n <count>, --maxcount <count>
52
58
Maximum number of messages to retrieve from the queue. If not specified all messages are exported.
53
59
@@ -79,6 +85,12 @@ Read messages from disk as previously exported and publish them to a queue.
79
85
-e, --exchange
80
86
If specified publishes to the originating exchange using the original routing key. By default these are ignored and the message is published directly to the originating queue.
81
87
88
+
--skip <count>
89
+
Number of messages in the input to skip. Useful if a previous import was interrupted.
90
+
91
+
-n <count>, --maxcount <count>
92
+
Maximum number of messages to import. If not specified all messages are imported.
93
+
82
94
-s <method>, --serialization <method>
83
95
The method used to serialize the message for import or export. Valid options: SingleFileJSON, EasyNetQHosepipe. Defaults to SingleFileJSON. See Serialization methods below for more information.
84
96
@@ -115,6 +127,9 @@ Reads messages from a queue and publishes them to another queue, optionally to a
115
127
-r, --remove
116
128
If specified messages are acknowledged and removed from the queue. If not messages are kept.
117
129
130
+
--skip <count>
131
+
Number of messages in the input to skip. Useful if a previous non-removing shovel was interrupted.
132
+
118
133
-n <count>, --maxcount <count>
119
134
Maximum number of messages to retrieve from the queue. If not specified all messages are exported.
0 commit comments