@@ -23,32 +23,37 @@ public class QiniuPfop extends Base<Map<String, String>> {
23
23
private OperationManager operationManager ;
24
24
25
25
public QiniuPfop (String accessKey , String secretKey , Configuration configuration , String bucket , String pipeline ,
26
- String pfopJsonPath , List <JsonObject > pfopConfigs , String fopsIndex ) throws IOException {
26
+ String notifyURL , boolean force , String pfopJsonPath , List <JsonObject > pfopConfigs ,
27
+ String fopsIndex ) throws IOException {
27
28
super ("pfop" , accessKey , secretKey , bucket );
28
- set (configuration , pipeline , pfopJsonPath , pfopConfigs , fopsIndex );
29
+ set (configuration , pipeline , notifyURL , force , pfopJsonPath , pfopConfigs , fopsIndex );
29
30
this .operationManager = new OperationManager (Auth .create (accessKey , secretKey ), configuration .clone ());
30
31
CloudApiUtils .checkQiniu (accessKey , secretKey , configuration , bucket );
31
32
}
32
33
33
34
public QiniuPfop (String accessKey , String secretKey , Configuration configuration , String bucket , String pipeline ,
34
- String pfopJsonPath , List < JsonObject > pfopConfigs , String fopsIndex , String savePath ,
35
- int saveIndex ) throws IOException {
35
+ String notifyURL , boolean force , String pfopJsonPath , List < JsonObject > pfopConfigs ,
36
+ String fopsIndex , String savePath , int saveIndex ) throws IOException {
36
37
super ("pfop" , accessKey , secretKey , bucket , savePath , saveIndex );
37
- set (configuration , pipeline , pfopJsonPath , pfopConfigs , fopsIndex );
38
+ set (configuration , pipeline , notifyURL , force , pfopJsonPath , pfopConfigs , fopsIndex );
38
39
this .operationManager = new OperationManager (Auth .create (accessKey , secretKey ), configuration .clone ());
39
40
CloudApiUtils .checkQiniu (accessKey , secretKey , configuration , bucket );
40
41
}
41
42
42
43
public QiniuPfop (String accessKey , String secretKey , Configuration configuration , String bucket , String pipeline ,
43
- String pfopJsonPath , List <JsonObject > pfopConfigs , String fopsIndex , String savePath )
44
- throws IOException {
45
- this (accessKey , secretKey , configuration , bucket , pipeline , pfopJsonPath , pfopConfigs , fopsIndex , savePath , 0 );
44
+ String notifyURL , boolean force , String pfopJsonPath , List <JsonObject > pfopConfigs ,
45
+ String fopsIndex , String savePath ) throws IOException {
46
+ this (accessKey , secretKey , configuration , bucket , pipeline , notifyURL , force , pfopJsonPath , pfopConfigs ,
47
+ fopsIndex , savePath , 0 );
46
48
}
47
49
48
- private void set (Configuration configuration , String pipeline , String pfopJsonPath , List < JsonObject > pfopConfigs ,
49
- String fopsIndex ) throws IOException {
50
+ private void set (Configuration configuration , String pipeline , String notifyURL , boolean force , String pfopJsonPath ,
51
+ List < JsonObject > pfopConfigs , String fopsIndex ) throws IOException {
50
52
this .configuration = configuration ;
51
- this .pfopParams = new StringMap ().putNotEmpty ("pipeline" , pipeline );
53
+ this .pfopParams = new StringMap ()
54
+ .putNotEmpty ("pipeline" , pipeline )
55
+ .putNotEmpty ("notifyURL" , notifyURL )
56
+ .putWhen ("force" , 1 , force );
52
57
if (pfopConfigs != null && pfopConfigs .size () > 0 ) {
53
58
this .pfopConfigs = pfopConfigs ;
54
59
} else if (pfopJsonPath != null && !"" .equals (pfopJsonPath )) {
0 commit comments