-
-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api,proxy): Add events for server registration/un-registration #1050
base: dev/3.0.0
Are you sure you want to change the base?
Conversation
These events are useful in the case of running velocity inside a k3s cluster.
api/src/main/java/com/velocitypowered/api/event/proxy/ServerRegisteredEvent.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/velocitypowered/api/event/proxy/ServerUnRegisteredEvent.java
Outdated
Show resolved
Hide resolved
import com.velocitypowered.api.proxy.server.ServerInfo; | ||
|
||
/** | ||
* This event is fired by the proxy after a new backend server is registered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably explain a bit more of what "registered" means
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"registered" means adding a new backend server to the proxy dynamically at runtime.
Will this do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a
@see ProxyServer.html#registerServer(com.velocitypowered.api.proxy.server.ServerInfo)
obviously format it right for the javadoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do
import com.velocitypowered.api.proxy.server.ServerInfo; | ||
|
||
/** | ||
* This event is fired by the proxy before a backend server is unregistered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
/** | ||
* This event is fired by the proxy before a backend server is unregistered | ||
*/ | ||
public class ServerUnRegisteredEvent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a fan of this name personally, specifically the "UnRegistered" part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have any suggestions for what the name should be?
These events are useful in the case of running velocity inside a k3s cluster.