Package de.xima.fc.fs
Class FSConnectionManager
- java.lang.Object
-
- de.xima.fc.fs.FSConnectionManager
-
public final class FSConnectionManager extends Object
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancleanup(FrontendServer fServerEntity)static booleanconnect(FrontendServer fServerEntity)static booleandisconnect(FrontendServer fServerEntity)static BooleandisconnectAll()static FSConnectiongetConnection(long fsConnectionID)static FSConnectiongetConnection(FrontendServer frontendServer)Gets the connection for the given frontend server, if available.static Map<Long,FSConnection>getConnectionsMap()static EConnectionStatusgetStatus(Long frontendserver_id)static booleanreconnect(FrontendServer fs)static BooleanstartConnectThread(FrontendServer fs)static BooleanstartConnectThreads()static voidstopConnectThreads()static voidstopReconnect(FrontendServer fs)static booleantestConnection(long fsConnectionID)static booleantestConnection(FrontendServer fs)static BooleantestLookup(FrontendServer fs)Method to test the connection to a frontend-server (lookup only)
-
-
-
Method Detail
-
getConnectionsMap
public static Map<Long,FSConnection> getConnectionsMap()
-
getConnection
public static FSConnection getConnection(long fsConnectionID)
-
getConnection
public static FSConnection getConnection(FrontendServer frontendServer)
Gets the connection for the given frontend server, if available.- Parameters:
frontendServer- The frontend server to get the connection for- Returns:
- The connection for the given frontend server, or null if no connection is available
-
connect
public static boolean connect(FrontendServer fServerEntity)
-
disconnect
public static boolean disconnect(FrontendServer fServerEntity)
-
cleanup
public static boolean cleanup(FrontendServer fServerEntity)
-
disconnectAll
public static Boolean disconnectAll()
-
reconnect
public static boolean reconnect(FrontendServer fs)
-
stopReconnect
public static void stopReconnect(FrontendServer fs)
-
getStatus
public static EConnectionStatus getStatus(Long frontendserver_id)
-
startConnectThread
public static Boolean startConnectThread(FrontendServer fs)
-
startConnectThreads
public static Boolean startConnectThreads()
-
stopConnectThreads
public static void stopConnectThreads()
-
testLookup
public static Boolean testLookup(FrontendServer fs)
Method to test the connection to a frontend-server (lookup only)- Parameters:
fs- the frontend-server to test the lookup- Returns:
Booleanif the server can be reached
-
testConnection
public static boolean testConnection(FrontendServer fs)
-
testConnection
public static boolean testConnection(long fsConnectionID)
-
-