Package io.hekate.rpc
Interface RpcServerJmx
-
@MXBean @JmxTypeName("RpcServer") public interface RpcServerJmx
JMX interface forRpcServerConfig
.Instances of this interface are registered to the
JmxService
for each combination ofRPC interface
(that is implemented by theRPC handler
) and eachtag
(if specified)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getHandlerType()
Returns the class name of the servers's handler (seeRpcServerConfig.setHandler(Object)
).int
getInterfaceMinClientVersion()
Returns the value ofRpcInterfaceInfo.minClientVersion()
.String
getInterfaceType()
Returns the class name of the server'sRPC interface
.int
getInterfaceVersion()
Returns the value ofRpcInterfaceInfo.version()
.String
getTag()
Returns thetag
of this server ornull
if server doesn't have tags.ClusterNodeJmx[]
getTopology()
Returns the cluster topology of this server (i.e. all nodes that have a server for the same combination ofRpcInterfaceInfo
andgetTag()
)
-
-
-
Method Detail
-
getInterfaceType
String getInterfaceType()
Returns the class name of the server'sRPC interface
.- Returns:
- Class name of the server's RPC interface.
- See Also:
RpcInterfaceInfo.javaType()
-
getInterfaceVersion
int getInterfaceVersion()
Returns the value ofRpcInterfaceInfo.version()
.- Returns:
- Value of
RpcInterfaceInfo.version()
.
-
getInterfaceMinClientVersion
int getInterfaceMinClientVersion()
Returns the value ofRpcInterfaceInfo.minClientVersion()
.- Returns:
- Value of
RpcInterfaceInfo.minClientVersion()
.
-
getHandlerType
String getHandlerType()
Returns the class name of the servers's handler (seeRpcServerConfig.setHandler(Object)
).- Returns:
- Class name of the servers's handler (see
RpcServerConfig.setHandler(Object)
).
-
getTag
String getTag()
Returns thetag
of this server ornull
if server doesn't have tags.- Returns:
Tag
of this server ornull
if server doesn't have tags.
-
getTopology
ClusterNodeJmx[] getTopology()
Returns the cluster topology of this server (i.e. all nodes that have a server for the same combination ofRpcInterfaceInfo
andgetTag()
)- Returns:
- Cluster topology of this server.
-
-