Package de.xima.fc.api.system
Class FSConnectionAPI
- java.lang.Object
-
- de.xima.fc.api.ASubAPI
-
- de.xima.fc.api.entity.AEntityAPI<FrontendServer>
-
- de.xima.fc.api.system.FSConnectionAPI
-
public class FSConnectionAPI extends AEntityAPI<FrontendServer>
API class for manipulation ofFrontendServerentities and API-Klassse zur Manipulation vonFrontendServer-Entitäten und to invoke the appropriate connect / disconnect and connection testing operations- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
-
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass
-
-
Constructor Summary
Constructors Constructor Description FSConnectionAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleancloseAllConnections(UserContext uc)Method for disconnecting allFrontendServerconnections.Booleanconnect(UserContext uc, FrontendServer frontendServer)Method for establishing the connection to aFrontendServer.Booleandisconnect(UserContext uc, FrontendServer frontendServer)Method for disconnecting the connection to aFrontendServer.EConnectionStatusgetStatus(UserContext uc, long frontendserverId)Method for determining the status of aFrontendServers by his ID.BooleaninitConnections(UserContext uc)Method for initializing all existingFrontendServerconnections.BooleantestConnection(UserContext uc, FrontendServer frontendServer)Method to test a connection to aFrontendServer.-
Methods inherited from class de.xima.fc.api.entity.AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
-
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
-
-
-
Method Detail
-
testConnection
public Boolean testConnection(UserContext uc, FrontendServer frontendServer)
Method to test a connection to aFrontendServer.- Parameters:
uc-UserContextthe user context in which the action is to be performed.frontendServer-FrontendServerwhose connection is to be tested.- Returns:
Booleanwhether the connection could be established successfully or not.- Since:
- 2.4.3
-
connect
public Boolean connect(UserContext uc, FrontendServer frontendServer)
Method for establishing the connection to aFrontendServer.- Parameters:
uc-UserContextthe user context in which the action is to be performed.frontendServer-FrontendServerto be connected.- Returns:
Booleanwhether the connection could be established successfully.- Since:
- 2.4.3
-
disconnect
public Boolean disconnect(UserContext uc, FrontendServer frontendServer)
Method for disconnecting the connection to aFrontendServer.- Parameters:
uc-UserContextthe user context in which the action is to be performed.frontendServer-FrontendServerto be separated.- Returns:
Booleanwhether the connection could be successfully disconnected.- Since:
- 2.4.3
-
getStatus
public EConnectionStatus getStatus(UserContext uc, long frontendserverId)
Method for determining the status of aFrontendServers by his ID.- Parameters:
uc-UserContextthe user context in which the action is to be performed.frontendserverId-Integerthe id ofFrontendServers.- Returns:
EConnectionStatusthe connection status ofFrontendServers.- Since:
- 2.4.3
-
initConnections
public Boolean initConnections(UserContext uc)
Method for initializing all existingFrontendServerconnections.- Parameters:
uc-UserContextthe user context in which the action is to be performed.- Returns:
Booleanwhether the initialization was successful.- Since:
- 2.4.3
-
closeAllConnections
public Boolean closeAllConnections(UserContext uc)
Method for disconnecting allFrontendServerconnections.- Parameters:
uc-UserContextthe user context in which the action is to be performed.- Returns:
Booleanwhether the disconnecting was successful.- Since:
- 2.4.3
-
-