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 void
checkNotClosed()
void
close()
Close the service connection manager.void
connect(S service)
Connect to the given service.void
disconnect()
Disconnect from the current service.protected boolean
isConnected()
-
-
-
Method Detail
-
connect
public final void connect(S service)
Description copied from interface:ServiceConnectionManager
Connect to the given service.- Specified by:
connect
in interfaceServiceConnectionManager<S>
- Parameters:
service
- service to connect to
-
disconnect
public final void disconnect()
Description copied from interface:ServiceConnectionManager
Disconnect from the current service.- Specified by:
disconnect
in interfaceServiceConnectionManager<S>
-
close
public final void close()
Description copied from interface:ServiceConnectionManager
Close the service connection manager. A closed manager must not be used again.- Specified by:
close
in interfaceServiceConnectionManager<S>
-
checkNotClosed
protected final void checkNotClosed()
-
isConnected
protected final boolean isConnected()
-
-