public class ReplicaSelectorFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PACKAGE_NAME
The default package where the all the implementing classes provided with
the VDS reside.
|
static String |
DEFAULT_REPLICA_SELECTOR
The name of the class in the DEFAULT package, that corresponds to the
default replica selector.
|
Constructor and Description |
---|
ReplicaSelectorFactory() |
Modifier and Type | Method and Description |
---|---|
static ReplicaSelector |
loadInstance()
A no hassle factory method that loads the replica selector specified
in the properties.
|
static ReplicaSelector |
loadInstance(PegasusProperties properties)
Loads the implementing class corresponding to the mode specified by the user
at runtime in the properties file.
|
static ReplicaSelector |
loadInstance(PegasusProperties properties,
String className)
Loads the implementing class corresponding to the class.
|
public static final String DEFAULT_PACKAGE_NAME
public static final String DEFAULT_REPLICA_SELECTOR
public static ReplicaSelector loadInstance() throws ReplicaSelectorFactoryException
ReplicaSelectorFactoryException
- that chains any error that
might occur during the instantiationDEFAULT_PACKAGE_NAME
,
DEFAULT_REPLICA_SELECTOR
public static ReplicaSelector loadInstance(PegasusProperties properties) throws ReplicaSelectorFactoryException
properties
- the PegasusProperties
object containing all
the properties required by Pegasus.ReplicaSelectorFactoryException
- that chains any error that
might occur during the instantiationDEFAULT_PACKAGE_NAME
,
DEFAULT_REPLICA_SELECTOR
public static ReplicaSelector loadInstance(PegasusProperties properties, String className) throws ReplicaSelectorFactoryException
className
- the name of the class that implements the mode. It is the
name of the class, not the complete name with package. That
is added by itself.properties
- the PegasusProperties
object containing all
the properties required by Pegasus.ReplicaSelectorFactoryException
- that chains any error that
might occur during the instantiationDEFAULT_PACKAGE_NAME
Copyright © 2011 The University of Southern California. All Rights Reserved.