gov.bnl.gums
Class ResourceManager

java.lang.Object
  extended by gov.bnl.gums.ResourceManager

public class ResourceManager
extends java.lang.Object

The main interface of the core logic for GUMS, allows to update the groups, generate the gridMapfiles and to map a single user.

Author:
Gabriele Carcassi, Jay Packard

Constructor Summary
ResourceManager(GUMS gums)
          Creates a Resource Manager for a particular instance of the GUMS server.
 
Method Summary
 java.lang.String generateFqanMapfile(java.lang.String hostname)
          Generates a fqan to account mapping for a given host and prints it to out.
 java.lang.String generateGridMapfile(java.lang.String hostname, boolean includeFQAN)
          Generates a grid mapfile for a given host and prints it to out.
 java.lang.String generateOsgUserVoMap(java.lang.String hostname)
           
 java.lang.String map(java.lang.String hostname, GridUser user)
          Maps a user to a local account for a given host to a grid identity.
 java.lang.String mapAccount(java.lang.String accountName)
          Map a local account to a list of grid identity
 void updateGroups()
          Scans the configuration and calls updateMembers() on all the groups, updating the local database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceManager

public ResourceManager(GUMS gums)
Creates a Resource Manager for a particular instance of the GUMS server.

Parameters:
gums -
Method Detail

generateOsgUserVoMap

public java.lang.String generateOsgUserVoMap(java.lang.String hostname)
Parameters:
hostname -
Returns:

generateFqanMapfile

public java.lang.String generateFqanMapfile(java.lang.String hostname)
Generates a fqan to account mapping for a given host and prints it to out.

Parameters:
hostname -
Returns:

generateGridMapfile

public java.lang.String generateGridMapfile(java.lang.String hostname,
                                            boolean includeFQAN)
Generates a grid mapfile for a given host and prints it to out.

Parameters:
hostname -
includeFQAN -
Returns:

map

public java.lang.String map(java.lang.String hostname,
                            GridUser user)
Maps a user to a local account for a given host to a grid identity.

Parameters:
hostname -
user -
Returns:

mapAccount

public java.lang.String mapAccount(java.lang.String accountName)
Map a local account to a list of grid identity

Parameters:
accountName -
Returns:

updateGroups

public void updateGroups()
Scans the configuration and calls updateMembers() on all the groups, updating the local database.



Copyright © 2004-2008. All Rights Reserved.