Check out the new USENIX Web site. next up previous
Next: DirectoryInterface Implementation Up: Metis Implementation Previous: VEMInterface Implementation

ControllerInterface Implementation

  Controllers that implement the ControllerInterface provide AFEs with access to system services. In the current version, two types of controller classes are available: PrintController and DataController. The PrintController provides access to printers while the DataController provides access to data stores. Note that there is only one instance of the Controller for each system service. The interface consists of the method below.

public Object getController(int type) {
  switch (type) {
    case ControllerInterface.PRINTER:
      return printController;
    case ControllerInterface.DATASTORE:
      return DataController;
    default:
      return null;
  }
}



A. Purakayastha
Mon May 5 15:03:42 EDT 1997