gov.lanl.RAD
Class CreateResource

java.lang.Object
  |
  +--gov.lanl.RAD.CreateResource

public class CreateResource
extends java.lang.Object

Read in the PolicyEvaluators and DecisionCombinator associated with a ResourceName

 

Constructor Summary
CreateResource(org.omg.CORBA.ORB inOrb, java.lang.String configFile)
          Build the CreateResource object
CreateResource(gov.lanl.SSLTools.ServiceInterface service, java.lang.String configFile)
          Construct with ServiceInterface instead of Orb
 
Method Summary
 org.omg.DfResourceAccessDecision.DecisionCombinator getDecisionCombinator(java.lang.String dcName)
          Get the appropriate Decision Combinator by name either locally in the evaluators hashtable or from the NamingService
 org.omg.DfResourceAccessDecision.DynamicAttributeService getDynamicAttribute(java.lang.String daName)
          get the DynamicAttributeService
static gov.lanl.RAD.CreateResource getInstance()
          Return the already created resource or create it.
static gov.lanl.RAD.CreateResource getInstance(org.omg.CORBA.ORB orb, java.lang.String configFile)
          create a new CreateResource object.
static gov.lanl.RAD.CreateResource getInstance(gov.lanl.SSLTools.ServiceInterface inService, java.lang.String configFile)
          create a new CreateResource object;
 org.omg.DfResourceAccessDecision.PolicyEvaluator getPolicyEvaluator(java.lang.String peName)
          get the Policy Evaluator associated with the requested Name
 java.util.Vector getResourceListVector()
          Return the resourceList
static void main(java.lang.String[] argv)
          Standalone application to create the necessary CORBA objects so that another RAD application can use them.
 void read(java.lang.String fileName)
          read the input file and populate the relevant hashtables
static void setNameService(gov.lanl.Utility.NameService nService)
          set the NameService
static void setOrb(org.omg.CORBA.ORB inOrb)
          set the Orb
static void setProperties(java.lang.String file)
          set the properties for the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateResource

public CreateResource(org.omg.CORBA.ORB inOrb,
                      java.lang.String configFile)
Build the CreateResource object

Parameters:
inOrb -
configFile -
See Also:

CreateResource

public CreateResource(gov.lanl.SSLTools.ServiceInterface service,
                      java.lang.String configFile)
Construct with ServiceInterface instead of Orb

Parameters:
service -
configFile -
Method Detail

setOrb

public static void setOrb(org.omg.CORBA.ORB inOrb)
set the Orb

Parameters:
inOrb - to be set

setProperties

public static void setProperties(java.lang.String file)
set the properties for the object

Parameters:
file - containing the properties

setNameService

public static void setNameService(gov.lanl.Utility.NameService nService)
set the NameService

Parameters:
nService - is the external NameService object created elsewhere.

getInstance

public static gov.lanl.RAD.CreateResource getInstance(org.omg.CORBA.ORB orb,
                                                      java.lang.String configFile)
create a new CreateResource object.

Parameters:
orb -
configFile -

getInstance

public static gov.lanl.RAD.CreateResource getInstance(gov.lanl.SSLTools.ServiceInterface inService,
                                                      java.lang.String configFile)
create a new CreateResource object;

Parameters:
inService -
configFile -

getInstance

public static gov.lanl.RAD.CreateResource getInstance()
Return the already created resource or create it.


getPolicyEvaluator

public org.omg.DfResourceAccessDecision.PolicyEvaluator getPolicyEvaluator(java.lang.String peName)
get the Policy Evaluator associated with the requested Name

Parameters:
peName - (name of PolicyEvaluator)
Returns:
PolicyEvaluator
See Also:

getDecisionCombinator

public org.omg.DfResourceAccessDecision.DecisionCombinator getDecisionCombinator(java.lang.String dcName)
Get the appropriate Decision Combinator by name either locally in the evaluators hashtable or from the NamingService

Parameters:
dcName - name of the DecisionCombinator
Returns:
DecisionCombinator
See Also:

getDynamicAttribute

public org.omg.DfResourceAccessDecision.DynamicAttributeService getDynamicAttribute(java.lang.String daName)
get the DynamicAttributeService

Parameters:
daName - of the DynamicAttributeService to retrieve

read

public void read(java.lang.String fileName)
read the input file and populate the relevant hashtables

Parameters:
fileName -
See Also:

getResourceListVector

public java.util.Vector getResourceListVector()
Return the resourceList

Returns:
Vector
See Also:

main

public static void main(java.lang.String[] argv)
Standalone application to create the necessary CORBA objects so that another RAD application can use them.