-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add HelixGatewayParticipant and util tests.
- Loading branch information
Showing
18 changed files
with
592 additions
and
366 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
25 changes: 0 additions & 25 deletions
25
...ache/helix/gateway/api/participant/HelixGatewayMultiTopStateStateTransitionProcessor.java
This file was deleted.
Oops, something went wrong.
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
31 changes: 28 additions & 3 deletions
31
...eway/src/main/java/org/apache/helix/gateway/api/service/HelixGatewayServiceProcessor.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 |
---|---|---|
@@ -1,15 +1,40 @@ | ||
package org.apache.helix.gateway.api.service; | ||
|
||
import org.apache.helix.gateway.constant.MessageType; | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import org.apache.helix.model.Message; | ||
|
||
/** | ||
* Helix Gateway Service Processor interface allows sending state transition messages to | ||
* participants through services implementing this interface. | ||
* participants through service implementing this interface. | ||
*/ | ||
public interface HelixGatewayServiceProcessor { | ||
|
||
public void sendStateTransitionMessage(String instanceName, MessageType messageType, | ||
/** | ||
* Send a state transition message to a remote participant. | ||
* | ||
* @param instanceName the name of the participant | ||
* @param currentState the current state of the participant | ||
* @param message the message to send | ||
*/ | ||
void sendStateTransitionMessage(String instanceName, String currentState, | ||
Message message); | ||
|
||
} |
24 changes: 0 additions & 24 deletions
24
helix-gateway/src/main/java/org/apache/helix/gateway/constant/MessageStatus.java
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
helix-gateway/src/main/java/org/apache/helix/gateway/constant/MessageType.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.