Class IntrospectionAutoConfiguration
java.lang.Object
com.netflix.genie.web.spring.autoconfigure.introspection.IntrospectionAutoConfiguration
@Configuration
@AutoConfigureAfter(AgentRpcServersAutoConfiguration.class)
public class IntrospectionAutoConfiguration
extends Object
Auto configuration for shared DTO instances within the web server.
- Since:
- 4.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet theGenieWebHostInfo
for this application.genieWebRpcInfo
(io.grpc.Server server) Provide aGenieWebRpcInfo
bean if one hasn't already been defined.
-
Constructor Details
-
IntrospectionAutoConfiguration
public IntrospectionAutoConfiguration()
-
-
Method Details
-
genieHostInfo
@Bean @ConditionalOnMissingBean(GenieWebHostInfo.class) public GenieWebHostInfo genieHostInfo() throws UnknownHostExceptionGet theGenieWebHostInfo
for this application. This is the default fallback implementation if no other bean instance of this type has been created.- Returns:
- A
GenieWebHostInfo
instance - Throws:
UnknownHostException
- When the host can't be calculatedIllegalStateException
- When an instance can't be created- See Also:
-
genieWebRpcInfo
@Bean @ConditionalOnMissingBean(GenieWebRpcInfo.class) public GenieWebRpcInfo genieWebRpcInfo(io.grpc.Server server) throws IllegalStateException Provide aGenieWebRpcInfo
bean if one hasn't already been defined.- Parameters:
server
- The gRPCServer
instance. Must not beServer.isShutdown()
orServer.isTerminated()
. Must be able to get the port the server is listening on.- Returns:
- A
GenieWebRpcInfo
instance - Throws:
IllegalStateException
- When an instance can't be created
-