Class RefreshAdministrationConfigurationEvent
java.lang.Object
com.atlassian.bamboo.cluster.event.AbstractCrossNodesEvent<R,BambooCrossNodesEventsServiceGrpc.BambooCrossNodesEventsServiceStub>
com.atlassian.bamboo.cluster.event.bamboo.BambooCrossNodesEvent<CrossNodesCommunication.RefreshAdministrationConfigurationRequest>
com.atlassian.bamboo.cluster.event.bamboo.administration.RefreshAdministrationConfigurationEvent
- All Implemented Interfaces:
CrossNodesEvent
,Serializable
public class RefreshAdministrationConfigurationEvent
extends BambooCrossNodesEvent<CrossNodesCommunication.RefreshAdministrationConfigurationRequest>
implements CrossNodesEvent, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.cluster.event.CrossNodesEvent
CrossNodesEvent.Type
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
@NotNull CrossNodesEvent.Type
getType()
Returns the type of the event.boolean
isEmpty()
Returns whether the event is empty.void
send
(@NotNull BambooCrossNodesEventsServiceGrpc.BambooCrossNodesEventsServiceStub 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) Converts event specific data and provided metadata information into the corresponding gRPC request message.@NotNull String
toString()
Returns a string representation of the object.Methods inherited from class com.atlassian.bamboo.cluster.event.bamboo.BambooCrossNodesEvent
getStubClass
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.cluster.event.CrossNodesEvent
equals, hashCode, isNotEmpty
-
Method Details
-
create
-
getType
Description copied from interface:CrossNodesEvent
Returns the type of the event.- Specified by:
getType
in interfaceCrossNodesEvent
- Returns:
- the type of the event
-
isEmpty
public boolean isEmpty()Description copied from interface:CrossNodesEvent
Returns whether the event is empty. May be needed to avoid sending empty events.- Specified by:
isEmpty
in interfaceCrossNodesEvent
- Returns:
- true if the event is empty, false otherwise.
-
toGrpcRequestMessage
@NotNull public CrossNodesCommunication.RefreshAdministrationConfigurationRequest toGrpcRequestMessage(@NotNull @NotNull MetadataInfo metadataInfo) Description copied from class:AbstractCrossNodesEvent
Converts event specific data and provided metadata information into the corresponding gRPC request message.- Specified by:
toGrpcRequestMessage
in classAbstractCrossNodesEvent<CrossNodesCommunication.RefreshAdministrationConfigurationRequest,
BambooCrossNodesEventsServiceGrpc.BambooCrossNodesEventsServiceStub> - Parameters:
metadataInfo
- Metadata information to be used.- Returns:
- The gRPC request message
-
send
public void send(@NotNull BambooCrossNodesEventsServiceGrpc.BambooCrossNodesEventsServiceStub 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.RefreshAdministrationConfigurationRequest,
BambooCrossNodesEventsServiceGrpc.BambooCrossNodesEventsServiceStub> - 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.
-
toString
Description copied from interface:CrossNodesEvent
Returns a string representation of the object.- Specified by:
toString
in interfaceCrossNodesEvent
- Overrides:
toString
in classObject
- Returns:
- a string representation of the object
-