public class YaessProfile extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX_COMMAND
The key prefix of command script handlers profile.
|
static String |
PREFIX_CORE
The key prefix of core profile.
|
static String |
PREFIX_HADOOP
The key prefix of Hadoop script handler profile.
|
static String |
PREFIX_LOCK
The key prefix of lock provider profile.
|
static String |
PREFIX_MONITOR
The key prefix of monitor profile.
|
static String |
PREFIX_SCHEDULER
The key prefix of job scheduler profile.
|
static char |
QUALIFIER
The qualifier delimiter for each property keys.
|
Constructor and Description |
---|
YaessProfile(ServiceProfile<CoreProfile> core,
ServiceProfile<ExecutionMonitorProvider> monitors,
ServiceProfile<ExecutionLockProvider> locks,
ServiceProfile<JobScheduler> scheduler,
ServiceProfile<HadoopScriptHandler> hadoopHandler,
Collection<ServiceProfile<CommandScriptHandler>> commandHandlers)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Map<String,ServiceProfile<CommandScriptHandler>> |
getCommandHandlers()
Returns command script handlers for each target profile name.
|
ServiceProfile<CoreProfile> |
getCore()
Returns a core profile.
|
ServiceProfile<HadoopScriptHandler> |
getHadoopHandler()
Returns a Hadoop script handler.
|
ServiceProfile<ExecutionLockProvider> |
getLocks()
Returns a lock provider.
|
ServiceProfile<ExecutionMonitorProvider> |
getMonitors()
Returns a monitor provider.
|
ServiceProfile<JobScheduler> |
getScheduler()
Returns a job scheduler.
|
static YaessProfile |
load(Properties properties,
ClassLoader classLoader)
Deprecated.
use
load(Properties, ProfileContext) instead |
static YaessProfile |
load(Properties properties,
ProfileContext context)
Loads a YAESS profile from the specified properties.
|
public static final char QUALIFIER
public static final String PREFIX_CORE
CoreProfile
service.public static final String PREFIX_MONITOR
ExecutionMonitorProvider
service.public static final String PREFIX_LOCK
ExecutionLockProvider
service.public static final String PREFIX_SCHEDULER
JobScheduler
service.public static final String PREFIX_HADOOP
HadoopScriptHandler
service.public static final String PREFIX_COMMAND
"command.<profile-name>"
as its prefix.
This profile must describes CommandScriptHandler
service.public YaessProfile(ServiceProfile<CoreProfile> core, ServiceProfile<ExecutionMonitorProvider> monitors, ServiceProfile<ExecutionLockProvider> locks, ServiceProfile<JobScheduler> scheduler, ServiceProfile<HadoopScriptHandler> hadoopHandler, Collection<ServiceProfile<CommandScriptHandler>> commandHandlers)
core
- core profilemonitors
- monitor profilelocks
- lock profilescheduler
- scheduler profilehadoopHandler
- hadoop handler profilecommandHandlers
- command handler profilesIllegalArgumentException
- if some parameters were null
@Deprecated public static YaessProfile load(Properties properties, ClassLoader classLoader)
load(Properties, ProfileContext)
insteadproperties
- source propertiesclassLoader
- the class loader to load the service classIllegalArgumentException
- if the target profile is invalid, or parameters contain null
public static YaessProfile load(Properties properties, ProfileContext context)
properties
- source propertiescontext
- the current profile contextIllegalArgumentException
- if the target profile is invalid, or parameters contain null
public ServiceProfile<CoreProfile> getCore()
public ServiceProfile<ExecutionMonitorProvider> getMonitors()
public ServiceProfile<ExecutionLockProvider> getLocks()
public ServiceProfile<JobScheduler> getScheduler()
public ServiceProfile<HadoopScriptHandler> getHadoopHandler()
public Map<String,ServiceProfile<CommandScriptHandler>> getCommandHandlers()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.