Package ai.vespa.metricsproxy.rpc
Class RpcConnector
java.lang.Object
com.yahoo.component.AbstractComponent
ai.vespa.metricsproxy.rpc.RpcConnector
- All Implemented Interfaces:
com.yahoo.component.Component,com.yahoo.component.Deconstructable,Comparable<com.yahoo.component.Component>
public final class RpcConnector
extends com.yahoo.component.AbstractComponent
Contains the connector for the rpc server, to prevent it from going down after component reconfiguration.
This will only be recreated if the rpc port changes, which should never happen under normal circumstances.
- Author:
- gjoranv
-
Field Summary
Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
-
Constructor Details
-
RpcConnector
-
-
Method Details
-
port
public int port() -
addMethod
public void addMethod(com.yahoo.jrt.Method method) Adds a method. If a method with the same name already exists, it will be replaced.- Parameters:
method- The method to add.
-
stop
public void stop() -
deconstruct
public void deconstruct()- Specified by:
deconstructin interfacecom.yahoo.component.Deconstructable- Overrides:
deconstructin classcom.yahoo.component.AbstractComponent
-