[BACK]Return to README CVS log [TXT][DIR] Up to [Development] / failsafe / FailSafe-mgr / taskRegistry

File: [Development] / failsafe / FailSafe-mgr / taskRegistry / README (download)

Revision 1.1, Wed Jul 1 22:14:29 1998 UTC (19 years, 3 months ago) by rogerc
Branch: MAIN

Instructions for maintaining taskRegistry.

Adding tasks to the task registry

Each subdirectory of this directory represents a Category:

    ClusterCategory
    FailoverPolicyCategory
    MachineCategory
    ResourceCategory
    ResourceGroupCategory
    ResourceTypeCategory

Within each of these subdirectories are files whose names
are the fully-qualified class names of tasks which are relevant
to the Category for that subdirectory.  The contents of the
files are not used, so the files should be of 0 length.

When adding a task to a Category, the Makefile for that
Category's subdirectory needs to be updated.

Example: I'm adding the task "Delete Cluster" to the task registry.
I decide that it should go into the ClusterCategory directory.  The
full name of the class that implements "Delete Cluster" is
com.sgi.fsmgr.task.DeleteClusterTask.

1. cd $WORKAREA/taskRegistry/ClusterCategory
2. touch com.sgi.fsmgr.task.DeleteClusterTask
3. p_modify -f com.sgi.fsmgr.task.DeleteClusterTask
4. p_modify Makefile
5. Edit Makefile, adding com.sgi.fsmgr.task.DeleteClusterTask
   to the "TASKS" macro.
6. p_integrate
7. p_finalize