Package de.xima.fc.fs
Class FSConnection
- java.lang.Object
-
- de.xima.fc.fs.FSConnection
-
public class FSConnection extends Object
Klasse zum Verbinden und Trennen der Verbindung mit dem FServer- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <TEvent extends Serializable>
voidfireEvent(TEvent event)Fires an event on the frontend-server, if connected.FsServerInfoDtogetServerInfo()IFSSessiongetSession()EConnectionStatusgetStatus()booleanisConnected()FSConfigurablePropertiespullConfigurableProperties()Pulls the configuration from the frontend server that can be edited via the backend UI.voidpushConfigFile(File file)voidpushConfigurableProperties(FSConfigurableProperties configurableProperties)Pushes the given configuration to the frontend server.voidshutdown()voidstartReconnect()booleantestConnection()
-
-
-
Method Detail
-
getStatus
public EConnectionStatus getStatus()
- Returns:
- the current
EConnectionStatus
-
getSession
public IFSSession getSession()
- Returns:
- the current
IFSServer
-
getServerInfo
public FsServerInfoDto getServerInfo()
- Returns:
- the current
FsServerInfoDtoof the connection, if connected.
-
isConnected
public boolean isConnected()
-
pushConfigurableProperties
public void pushConfigurableProperties(FSConfigurableProperties configurableProperties) throws Exception
Pushes the given configuration to the frontend server.- Parameters:
configurableProperties- The error pages config to push.- Throws:
Exception- When the push fails.
-
pullConfigurableProperties
public FSConfigurableProperties pullConfigurableProperties() throws Exception
Pulls the configuration from the frontend server that can be edited via the backend UI.- Returns:
- The frontend server configuration. Never null, but may be empty.
- Throws:
Exception- When the pull fails.
-
fireEvent
public <TEvent extends Serializable> void fireEvent(TEvent event)
Fires an event on the frontend-server, if connected.- Type Parameters:
TEvent- the type of the event, must be serializable- Parameters:
event- the event to fire- Throws:
IllegalArgumentException- if the event is null
-
startReconnect
public void startReconnect()
-
shutdown
public void shutdown()
-
-