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 ofFrontendServer
entities 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 Boolean
closeAllConnections(UserContext uc)
Method for disconnecting allFrontendServer
connections.Boolean
connect(UserContext uc, FrontendServer frontendServer)
Method for establishing the connection to aFrontendServer
.Boolean
disconnect(UserContext uc, FrontendServer frontendServer)
Method for disconnecting the connection to aFrontendServer
.EConnectionStatus
getStatus(UserContext uc, long frontendserverId)
Method for determining the status of aFrontendServer
s by his ID.Boolean
initConnections(UserContext uc)
Method for initializing all existingFrontendServer
connections.Boolean
testConnection(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
-UserContext
the user context in which the action is to be performed.frontendServer
-FrontendServer
whose connection is to be tested.- Returns:
Boolean
whether 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
-UserContext
the user context in which the action is to be performed.frontendServer
-FrontendServer
to be connected.- Returns:
Boolean
whether 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
-UserContext
the user context in which the action is to be performed.frontendServer
-FrontendServer
to be separated.- Returns:
Boolean
whether the connection could be successfully disconnected.- Since:
- 2.4.3
-
getStatus
public EConnectionStatus getStatus(UserContext uc, long frontendserverId)
Method for determining the status of aFrontendServer
s by his ID.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.frontendserverId
-Integer
the id ofFrontendServer
s.- Returns:
EConnectionStatus
the connection status ofFrontendServer
s.- Since:
- 2.4.3
-
initConnections
public Boolean initConnections(UserContext uc)
Method for initializing all existingFrontendServer
connections.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.- Returns:
Boolean
whether the initialization was successful.- Since:
- 2.4.3
-
closeAllConnections
public Boolean closeAllConnections(UserContext uc)
Method for disconnecting allFrontendServer
connections.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.- Returns:
Boolean
whether the disconnecting was successful.- Since:
- 2.4.3
-
-