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 Details

    • testConnection

      public boolean testConnection() throws Exception
      Throws:
      Exception
    • getStatus

      public EConnectionStatus getStatus()
      Returns:
      the current EConnectionStatus
    • getSession

      public IFSSession getSession()
      Returns:
      the current IFSServer
    • getServerInfo

      public FsServerInfoDto getServerInfo()
      Returns:
      the current FsServerInfoDto of the connection, if connected.
    • isConnected

      public boolean isConnected()
    • pushConfigFile

      public void pushConfigFile(File file) throws Exception
      Throws:
      Exception
    • 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()