package com.marinilli.b2.c7.deploylet;
import java.rmi.*;

/**
 * Chapter 7 - ServerRepository remote interface
 *
 * @author Mauro Marinilli
 * @version 1.0
 */
public interface ServerRepository extends Remote {

  /**
   * obtains the server-side deploylet name
   */
  public String getDeployletName(String clientHost) throws RemoteException;

  /**
   * implements the application configuration phase
   */
  public Deploylet getServerDeploylet(String deployletName) throws RemoteException;

  /**
   * removes the serverDeploylet
   */
  public void remove(String clientHost) throws RemoteException;

}