Enum WebMonitorExtension.EmptyWebMonitorExtension
- java.lang.Object
-
- java.lang.Enum<WebMonitorExtension.EmptyWebMonitorExtension>
-
- org.apache.flink.runtime.webmonitor.WebMonitorExtension.EmptyWebMonitorExtension
-
- All Implemented Interfaces:
Serializable,AutoCloseable,Comparable<WebMonitorExtension.EmptyWebMonitorExtension>,WebMonitorExtension,org.apache.flink.util.AutoCloseableAsync
- Enclosing interface:
- WebMonitorExtension
public static enum WebMonitorExtension.EmptyWebMonitorExtension extends Enum<WebMonitorExtension.EmptyWebMonitorExtension> implements WebMonitorExtension
Empty web monitor extension which can be used as a null object.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.webmonitor.WebMonitorExtension
WebMonitorExtension.EmptyWebMonitorExtension
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>closeAsync()Collection<org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>>getHandlers()Gets the collection of extension handlers to register at theWebMonitorEndpoint.static WebMonitorExtension.EmptyWebMonitorExtensionvalueOf(String name)Returns the enum constant of this type with the specified name.static WebMonitorExtension.EmptyWebMonitorExtension[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final WebMonitorExtension.EmptyWebMonitorExtension INSTANCE
-
-
Method Detail
-
values
public static WebMonitorExtension.EmptyWebMonitorExtension[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WebMonitorExtension.EmptyWebMonitorExtension c : WebMonitorExtension.EmptyWebMonitorExtension.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebMonitorExtension.EmptyWebMonitorExtension valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getHandlers
public Collection<org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> getHandlers()
Description copied from interface:WebMonitorExtensionGets the collection of extension handlers to register at theWebMonitorEndpoint.- Specified by:
getHandlersin interfaceWebMonitorExtension- Returns:
- Collection of handlers to register at the
WebMonitorEndpoint.
-
closeAsync
public CompletableFuture<Void> closeAsync()
- Specified by:
closeAsyncin interfaceorg.apache.flink.util.AutoCloseableAsync
-
-