-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NIFI-13635 Expose processor bulletins as a part of FlowInfo
- Loading branch information
Showing
10 changed files
with
250 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
148 changes: 148 additions & 0 deletions
148
...ocol/c2-protocol-api/src/main/java/org/apache/nifi/c2/protocol/api/ProcessorBulletin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.nifi.c2.protocol.api; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.io.Serializable; | ||
import java.util.Date; | ||
|
||
public class ProcessorBulletin implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private Date timestamp; | ||
private long id; | ||
private String nodeAddress; | ||
private String level; | ||
private String category; | ||
private String message; | ||
private String groupId; | ||
private String groupName; | ||
private String groupPath; | ||
private String sourceId; | ||
private String sourceName; | ||
private String flowFileUuid; | ||
|
||
@Schema(description = "When this bulletin was generated.") | ||
public Date getTimestamp() { | ||
return timestamp; | ||
} | ||
|
||
public void setTimestamp(Date timestamp) { | ||
this.timestamp = timestamp; | ||
} | ||
|
||
@Schema(description = "The id of the bulletin.") | ||
public long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(long id) { | ||
this.id = id; | ||
} | ||
|
||
@Schema(description = "If clustered, the address of the node from which the bulletin originated.") | ||
public String getNodeAddress() { | ||
return nodeAddress; | ||
} | ||
|
||
public void setNodeAddress(String nodeAddress) { | ||
this.nodeAddress = nodeAddress; | ||
} | ||
|
||
@Schema(description = "The level of the bulletin.") | ||
public String getLevel() { | ||
return level; | ||
} | ||
|
||
public void setLevel(String level) { | ||
this.level = level; | ||
} | ||
|
||
@Schema(description = "The category of this bulletin.") | ||
public String getCategory() { | ||
return category; | ||
} | ||
|
||
public void setCategory(String category) { | ||
this.category = category; | ||
} | ||
|
||
@Schema(description = "The bulletin message.") | ||
public String getMessage() { | ||
return message; | ||
} | ||
|
||
public void setMessage(String message) { | ||
this.message = message; | ||
} | ||
|
||
@Schema(description = "The group id of the source component.") | ||
public String getGroupId() { | ||
return groupId; | ||
} | ||
|
||
public void setGroupId(String groupId) { | ||
this.groupId = groupId; | ||
} | ||
|
||
@Schema(description = "The group name of the source component.") | ||
public String getGroupName() { | ||
return groupName; | ||
} | ||
|
||
public void setGroupName(String groupName) { | ||
this.groupName = groupName; | ||
} | ||
|
||
@Schema(description = "The group path of the source component.") | ||
public String getGroupPath() { | ||
return groupPath; | ||
} | ||
|
||
public void setGroupPath(String groupPath) { | ||
this.groupPath = groupPath; | ||
} | ||
|
||
@Schema(description = "The id of the source component.") | ||
public String getSourceId() { | ||
return sourceId; | ||
} | ||
|
||
public void setSourceId(String sourceId) { | ||
this.sourceId = sourceId; | ||
} | ||
|
||
@Schema(description = "The name of the source component.") | ||
public String getSourceName() { | ||
return sourceName; | ||
} | ||
|
||
public void setSourceName(String sourceName) { | ||
this.sourceName = sourceName; | ||
} | ||
|
||
@Schema(description = "The id of the flow file.") | ||
public String getFlowFileUuid() { | ||
return flowFileUuid; | ||
} | ||
|
||
public void setFlowFileUuid(String flowFileUuid) { | ||
this.flowFileUuid = flowFileUuid; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.