Class AbstractServiceConnectionManager<S>
- java.lang.Object
-
- org.apache.flink.runtime.jobmaster.slotpool.AbstractServiceConnectionManager<S>
-
- All Implemented Interfaces:
ServiceConnectionManager<S>
public class AbstractServiceConnectionManager<S> extends Object implements ServiceConnectionManager<S>
Base class for service connection managers, taking care of the connection handling.
-
-
Constructor Summary
Constructors Constructor Description AbstractServiceConnectionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckNotClosed()voidclose()Close the service connection manager.voidconnect(S service)Connect to the given service.voiddisconnect()Disconnect from the current service.protected booleanisConnected()
-
-
-
Method Detail
-
connect
public final void connect(S service)
Description copied from interface:ServiceConnectionManagerConnect to the given service.- Specified by:
connectin interfaceServiceConnectionManager<S>- Parameters:
service- service to connect to
-
disconnect
public final void disconnect()
Description copied from interface:ServiceConnectionManagerDisconnect from the current service.- Specified by:
disconnectin interfaceServiceConnectionManager<S>
-
close
public final void close()
Description copied from interface:ServiceConnectionManagerClose the service connection manager. A closed manager must not be used again.- Specified by:
closein interfaceServiceConnectionManager<S>
-
checkNotClosed
protected final void checkNotClosed()
-
isConnected
protected final boolean isConnected()
-
-