Class IntrospectionAutoConfiguration
- java.lang.Object
-
- com.netflix.genie.web.spring.autoconfigure.introspection.IntrospectionAutoConfiguration
-
@Configuration @AutoConfigureAfter(AgentRpcServersAutoConfiguration.class) public class IntrospectionAutoConfiguration extends java.lang.Object
Auto configuration for shared DTO instances within the web server.- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Constructor Description IntrospectionAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenieWebHostInfogenieHostInfo()Get theGenieWebHostInfofor this application.GenieWebRpcInfogenieWebRpcInfo(io.grpc.Server server)Provide aGenieWebRpcInfobean if one hasn't already been defined.
-
-
-
Method Detail
-
genieHostInfo
@Bean @ConditionalOnMissingBean(GenieWebHostInfo.class) public GenieWebHostInfo genieHostInfo() throws java.net.UnknownHostException
Get theGenieWebHostInfofor this application. This is the default fallback implementation if no other bean instance of this type has been created.- Returns:
- A
GenieWebHostInfoinstance - Throws:
java.net.UnknownHostException- When the host can't be calculatedjava.lang.IllegalStateException- When an instance can't be created- See Also:
InetAddress.getCanonicalHostName()
-
genieWebRpcInfo
@Bean @ConditionalOnMissingBean(GenieWebRpcInfo.class) public GenieWebRpcInfo genieWebRpcInfo(io.grpc.Server server) throws java.lang.IllegalStateException
Provide aGenieWebRpcInfobean if one hasn't already been defined.- Parameters:
server- The gRPCServerinstance. Must not beServer.isShutdown()orServer.isTerminated(). Must be able to get the port the server is listening on.- Returns:
- A
GenieWebRpcInfoinstance - Throws:
java.lang.IllegalStateException- When an instance can't be created
-
-