Class FSClientImpl

java.lang.Object
de.xima.fc.fs.FSClientImpl
All Implemented Interfaces:
de.root1.simon.SimonUnreferenced, IFSClient, Serializable

public class FSClientImpl extends Object implements IFSClient, Serializable, de.root1.simon.SimonUnreferenced
Implementation of the client-side of the FS communication.
See Also:
  • Constructor Details

    • FSClientImpl

      public FSClientImpl(FSConnection fsConnection)
  • Method Details

    • getHandler

      public <T extends IAPIHandler> T getHandler(Class<T> handlerInterface)
      Description copied from interface: IFSClient
      Gets the remote instance of the given handler-interface
      Specified by:
      getHandler in interface IFSClient
      Parameters:
      handlerInterface - IAPIHandler-Class-interface for which an remote instance should be returned
      Returns:
      IAPIHandler-instance or null
    • getRpcHandler

      public <THandler extends RpcHandler> THandler getRpcHandler(Class<THandler> handlerInterface)
      Description copied from interface: IFSClient
      Gets the remote instance of the given handler-interface
      Specified by:
      getRpcHandler in interface IFSClient
      Parameters:
      handlerInterface - RpcHandler-Class-interface for which the remote instance should be returned
      Returns:
      RpcHandler-instance or null
    • ping

      public boolean ping()
      Description copied from interface: IFSClient
      Method to ping the master-server
      Specified by:
      ping in interface IFSClient
      Returns:
      true if successful, false or Exception otherwise
    • unreferenced

      public void unreferenced()
      Specified by:
      unreferenced in interface de.root1.simon.SimonUnreferenced