Class UpgradePluginEvent
java.lang.Object
com.atlassian.bamboo.cluster.event.AbstractCrossNodesEvent<R,PluginCrossNodesEventsServiceGrpc.PluginCrossNodesEventsServiceStub>
com.atlassian.bamboo.cluster.event.plugin.PluginCrossNodesEvent<CrossNodesCommunication.UpgradePluginRequest>
com.atlassian.bamboo.cluster.event.plugin.UpgradePluginEvent
- All Implemented Interfaces:
CrossNodesEvent
,Serializable
public final class UpgradePluginEvent
extends PluginCrossNodesEvent<CrossNodesCommunication.UpgradePluginRequest>
Data holder for upgrade plugin event.
- Since:
- 9.5
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bamboo.cluster.event.plugin.PluginCrossNodesEvent
PluginCrossNodesEvent.AbstractPluginEventBuilder<T extends PluginCrossNodesEvent<?>,
B extends PluginCrossNodesEvent.AbstractPluginEventBuilder<T, B>> Nested classes/interfaces inherited from interface com.atlassian.bamboo.cluster.event.CrossNodesEvent
CrossNodesEvent.Type
-
Method Summary
Modifier and TypeMethodDescriptionstatic UpgradePluginEvent.Builder
void
send
(@NotNull PluginCrossNodesEventsServiceGrpc.PluginCrossNodesEventsServiceStub stub, @NotNull MetadataInfo metadataInfo, @NotNull io.grpc.stub.StreamObserver<CrossNodesCommunication.CommonResponse> responseObserver) Sends a gRPC request using the event specific data, provided stub and metadata information, and observes the response.toGrpcRequestMessage
(@NotNull MetadataInfo metadataInfo, String pluginKey, int pluginsVersion, String pluginName) Methods inherited from class com.atlassian.bamboo.cluster.event.plugin.PluginCrossNodesEvent
equals, getStubClass, getType, hashCode, isEmpty, toGrpcRequestMessage, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.cluster.event.CrossNodesEvent
isNotEmpty
-
Method Details
-
toGrpcRequestMessage
@NotNull protected CrossNodesCommunication.UpgradePluginRequest toGrpcRequestMessage(@NotNull @NotNull MetadataInfo metadataInfo, String pluginKey, int pluginsVersion, String pluginName) - Specified by:
toGrpcRequestMessage
in classPluginCrossNodesEvent<CrossNodesCommunication.UpgradePluginRequest>
-
send
public void send(@NotNull PluginCrossNodesEventsServiceGrpc.PluginCrossNodesEventsServiceStub stub, @NotNull @NotNull MetadataInfo metadataInfo, @NotNull @NotNull io.grpc.stub.StreamObserver<CrossNodesCommunication.CommonResponse> responseObserver) Description copied from class:AbstractCrossNodesEvent
Sends a gRPC request using the event specific data, provided stub and metadata information, and observes the response.- Specified by:
send
in classAbstractCrossNodesEvent<CrossNodesCommunication.UpgradePluginRequest,
PluginCrossNodesEventsServiceGrpc.PluginCrossNodesEventsServiceStub> - Parameters:
stub
- The gRPC stub instance used to send the request.metadataInfo
- Metadata information associated with the request.responseObserver
- Observer for handling responses from the server.
-
newBuilder
-