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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidfinal voidclose()Close the service connection manager.final voidConnect to the given service.final voidDisconnect from the current service.protected final boolean
-
Field Details
-
lock
-
service
-
-
Constructor Details
-
AbstractServiceConnectionManager
public AbstractServiceConnectionManager()
-
-
Method Details
-
connect
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()
-