org.griphyn.cPlanner.engine
Class AuthenticateEngine

java.lang.Object
  extended by org.griphyn.cPlanner.engine.Engine
      extended by org.griphyn.cPlanner.engine.AuthenticateEngine

public class AuthenticateEngine
extends Engine

It authenticates the user with the sites, that the user specifies at the execution time. It spawns out a thread for each pool that authenticates against the jobmanager for the vanilla universe as specified in the pool configuration file.

Version:
$Revision: 50 $
Author:
Karan Vahi

Field Summary
private  Set mExecPools
          The Set of pools that need to be authenticated against.
 
Fields inherited from class org.griphyn.cPlanner.engine.Engine
mLogger, mLogMsg, mOutputPool, mPoolClass, mPoolFile, mPoolHandle, mPOptions, mProps, mRLIUrl, mTCFile, mTCHandle, mTCMode, REGISTRATION_UNIVERSE, TRANSFER_UNIVERSE
 
Constructor Summary
AuthenticateEngine(PegasusProperties props, Set pools)
          The overloaded constructor.
 
Method Summary
 Set authenticate()
          It returns a set of pools against which the user can authenticate to.
static void main(String[] args)
          The main testing method.
private  void purgePools()
          It removies from the list of pools the pool that was not authenticated against.
 
Methods inherited from class org.griphyn.cPlanner.engine.Engine
addVector, appendArrayList, loadProperties, printVector, stringInList, stringInPegVector, stringInVector, vectorToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mExecPools

private Set mExecPools
The Set of pools that need to be authenticated against.

Constructor Detail

AuthenticateEngine

public AuthenticateEngine(PegasusProperties props,
                          Set pools)
The overloaded constructor.

Parameters:
props - the PegasusProperties to be used.
pools - The set of pools against which you want to authenticate the user.
Method Detail

authenticate

public Set authenticate()
It returns a set of pools against which the user can authenticate to.

Returns:
the set of authenticated pools.

purgePools

private void purgePools()
It removies from the list of pools the pool that was not authenticated against. It queries the soft state of the pool config to see if there are at least one jobmanager and gridftp server on the pool. Due to the authentication the unauthenticated jobmanagers and servers would have been removed from the soft state of the pool config.


main

public static void main(String[] args)
The main testing method.



Copyright © 2007 The University of Southern California. All Rights Reserved.