Skip to content.
Pipeline > DeveloperDocumentation > RNorExitDocumentation > AddingNewServerCommandTutorial
This document outlines the steps necessary to add a new ServerCommand for remote server administration

  1. Create the ServerCommand class
    1. Use package edu.ucla.loni.pipeline.server.command in the core package
    2. Extend from provided classes if possible
      1. AbstractServerCommand
        1. Basic implementation of interface methods
        2. get/set attribute methods
      2. RefreshServerCommand
        1. To request target data (TARGET_ONTOLOGY, TARGET_USERGROUPS, etc.)
      3. ReloadServerCommand
        1. To reload target data server side
      4. AddEditRemoveServerCommand
        1. To add/edit/remove target data
  2. Add specific instantiation based on Element to ServerCommandFactory.getInstance() method
    1. Used by ServerCommandWrapper to instantiate the ServerCommand object
  3. Add specific processing of ServerCommand in edu.ucla.loni.pipeline.server.ServerManager in server package
    1. processEvent() method

-- RonNor - 30 Jan 2006