org.apache.oozie.service
Class SchemaService

java.lang.Object
  extended by org.apache.oozie.service.SchemaService
All Implemented Interfaces:
Service

public class SchemaService
extends Object
implements Service

Service that loads Oozie workflow definition schema and registered extension schemas.


Nested Class Summary
static class SchemaService.SchemaName
           
 
Field Summary
static String BUNDLE_CONF_EXT_SCHEMAS
           
static String CONF_PREFIX
           
static String COORD_CONF_EXT_SCHEMAS
           
static String COORDINATOR_NAMESPACE_URI_1
           
static String SLA_CONF_EXT_SCHEMAS
           
static String SLA_NAME_SPACE_URI
          Deprecated. 
static String SLA_NAMESPACE_URI_2
           
static String WF_CONF_EXT_SCHEMAS
           
 
Fields inherited from interface org.apache.oozie.service.Service
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND
 
Constructor Summary
SchemaService()
           
 
Method Summary
 void destroy()
          Destroy the service.
 Class<? extends Service> getInterface()
          Return the public interface of the service.
 Schema getSchema(SchemaService.SchemaName schemaName)
          Return the schema for XML validation of application definitions.
 void init(Services services)
          Initialize the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONF_PREFIX

public static final String CONF_PREFIX
See Also:
Constant Field Values

WF_CONF_EXT_SCHEMAS

public static final String WF_CONF_EXT_SCHEMAS
See Also:
Constant Field Values

COORD_CONF_EXT_SCHEMAS

public static final String COORD_CONF_EXT_SCHEMAS
See Also:
Constant Field Values

BUNDLE_CONF_EXT_SCHEMAS

public static final String BUNDLE_CONF_EXT_SCHEMAS
See Also:
Constant Field Values

SLA_CONF_EXT_SCHEMAS

public static final String SLA_CONF_EXT_SCHEMAS
See Also:
Constant Field Values

SLA_NAME_SPACE_URI

@Deprecated
public static final String SLA_NAME_SPACE_URI
Deprecated. 
See Also:
Constant Field Values

SLA_NAMESPACE_URI_2

public static final String SLA_NAMESPACE_URI_2
See Also:
Constant Field Values

COORDINATOR_NAMESPACE_URI_1

public static final String COORDINATOR_NAMESPACE_URI_1
See Also:
Constant Field Values
Constructor Detail

SchemaService

public SchemaService()
Method Detail

init

public void init(Services services)
          throws ServiceException
Initialize the service.

Specified by:
init in interface Service
Parameters:
services - services instance.
Throws:
ServiceException - thrown if the service could not be initialized.

getInterface

public Class<? extends Service> getInterface()
Return the public interface of the service.

Specified by:
getInterface in interface Service
Returns:
SchemaService.

destroy

public void destroy()
Destroy the service.

Specified by:
destroy in interface Service

getSchema

public Schema getSchema(SchemaService.SchemaName schemaName)
Return the schema for XML validation of application definitions.

Parameters:
schemaName: - Name of schema definition (i.e. WORKFLOW/COORDINATOR/BUNDLE)
Returns:
the schema for XML validation of application definitions.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.