org.apache.juddi.registry
Class RegistryEngine

java.lang.Object
  extended by org.apache.juddi.AbstractRegistry
      extended by org.apache.juddi.registry.RegistryEngine
All Implemented Interfaces:
IRegistry

public class RegistryEngine
extends AbstractRegistry

Author:
Steve Viens (sviens@apache.org), Kurt Stam (kurt@osconsulting.org)

Field Summary
static java.lang.String DEFAULT_ADMIN_EMAIL_ADDRESS
           
static java.lang.String DEFAULT_AUTH_CLASS_NAME
           
static java.lang.String DEFAULT_CRYPTOR_CLASS_NAME
           
static java.lang.String DEFAULT_DATASOURCE_NAME
           
static java.lang.String DEFAULT_DATASTORE_CLASS_NAME
           
static java.lang.String DEFAULT_DB_EXISTS_SQL
           
static java.lang.String DEFAULT_DISCOVERY_URL
           
static java.lang.String DEFAULT_I18N_COUNTRY_CODE
           
static java.lang.String DEFAULT_I18N_LANGUAGE_CODE
           
static java.lang.Boolean DEFAULT_IS_CREATE_DATABASE
           
static java.lang.Boolean DEFAULT_IS_USE_DATASOURCE
           
static java.lang.String DEFAULT_JAVA_NAMING_FACTORY_INITIAL
           
static java.lang.String DEFAULT_JAVA_NAMING_FACTORY_URL_PKGS
           
static java.lang.String DEFAULT_JAVA_NAMING_PROVIDER_URL
           
static java.lang.String DEFAULT_JDBC_DRIVER
           
static java.lang.String DEFAULT_JDBC_PASSWORD
           
static java.lang.String DEFAULT_JDBC_URL
           
static java.lang.String DEFAULT_JDBC_USERNAME
           
static int DEFAULT_MAX_BINDINGS_PER_SERVICE
           
static int DEFAULT_MAX_BUSINESSES_PER_PUBLISHER
           
static int DEFAULT_MAX_MESSAGE_SIZE
           
static int DEFAULT_MAX_NAME_ELEMENTS
           
static int DEFAULT_MAX_NAME_LENGTH
           
static int DEFAULT_MAX_ROWS_LIMIT
           
static int DEFAULT_MAX_SERVICES_PER_BUSINESS
           
static int DEFAULT_MAX_TMODELS_PER_PUBLISHER
           
static java.lang.String DEFAULT_OPERATOR_NAME
           
static java.lang.String DEFAULT_SQL_FILES
           
static java.lang.String DEFAULT_TABLE_PREFIX
           
static java.lang.String DEFAULT_UUIDGEN_CLASS_NAME
           
static java.lang.String DEFAULT_VALIDATOR_CLASS_NAME
           
static java.lang.String PROPNAME_ADMIN_EMAIL_ADDRESS
           
static java.lang.String PROPNAME_AUTH_CLASS_NAME
           
static java.lang.String PROPNAME_CRYPTOR_CLASS_NAME
           
static java.lang.String PROPNAME_DATASOURCE_NAME
           
static java.lang.String PROPNAME_DATASTORE_CLASS_NAME
           
static java.lang.String PROPNAME_DB_EXISTS_SQL
           
static java.lang.String PROPNAME_DISCOVERY_URL
           
static java.lang.String PROPNAME_I18N_COUNTRY_CODE
           
static java.lang.String PROPNAME_I18N_LANGUAGE_CODE
           
static java.lang.String PROPNAME_IS_CREATE_DATABASE
           
static java.lang.String PROPNAME_IS_USE_DATASOURCE
           
static java.lang.String PROPNAME_JAVA_NAMING_FACTORY_INITIAL
           
static java.lang.String PROPNAME_JAVA_NAMING_FACTORY_URL_PKGS
           
static java.lang.String PROPNAME_JAVA_NAMING_PROVIDER_URL
           
static java.lang.String PROPNAME_JDBC_DRIVER
           
static java.lang.String PROPNAME_JDBC_PASSWORD
           
static java.lang.String PROPNAME_JDBC_URL
           
static java.lang.String PROPNAME_JDBC_USERNAME
           
static java.lang.String PROPNAME_MAX_BINDINGS_PER_SERVICE
           
static java.lang.String PROPNAME_MAX_BUSINESSES_PER_PUBLISHER
           
static java.lang.String PROPNAME_MAX_MESSAGE_SIZE
           
static java.lang.String PROPNAME_MAX_NAME_ELEMENTS
           
static java.lang.String PROPNAME_MAX_NAME_LENGTH
           
static java.lang.String PROPNAME_MAX_ROWS_LIMIT
           
static java.lang.String PROPNAME_MAX_SERVICES_PER_BUSINESS
           
static java.lang.String PROPNAME_MAX_TMODELS_PER_PUBLISHER
           
static java.lang.String PROPNAME_OPERATOR_NAME
           
static java.lang.String PROPNAME_SQL_FILES
           
static java.lang.String PROPNAME_TABLE_PREFIX
           
static java.lang.String PROPNAME_UUIDGEN_CLASS_NAME
           
static java.lang.String PROPNAME_VALIDATOR_CLASS_NAME
           
 
Fields inherited from interface org.apache.juddi.IRegistry
JUDDI_V1_GENERIC, JUDDI_V1_NAMESPACE, UDDI_V1_GENERIC, UDDI_V1_NAMESPACE, UDDI_V2_GENERIC, UDDI_V2_NAMESPACE, UDDI_V3_GENERIC, UDDI_V3_NAMESPACE
 
Constructor Summary
RegistryEngine()
          Create a new instance of RegistryEngine.
RegistryEngine(java.util.Properties props)
          Creates a new instance of RegistryEngine.
 
Method Summary
 void dispose()
          Releases any acquired resources.
 RegistryObject execute(RegistryObject request)
           
 void executeSql(java.lang.String resource, java.sql.Connection conn, java.lang.String tablePrefix)
           
static java.lang.String getString(java.io.InputStream in)
           
 void init()
          Initialize required resources.
 boolean isAvailable()
          Returns 'true' if the registry is available to handle requests, otherwise returns 'false'.
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.apache.juddi.AbstractRegistry
addPublisherAssertions, deleteBinding, deleteBusiness, deletePublisher, deletePublisherAssertions, deleteService, deleteTModel, discardAuthToken, findBinding, findBusiness, findPublisher, findRelatedBusinesses, findService, findTModel, getAssertionStatusReport, getAuthToken, getBindingDetail, getBindingDetail, getBusinessDetail, getBusinessDetail, getBusinessDetailExt, getBusinessDetailExt, getPublisherAssertions, getPublisherDetail, getRegisteredInfo, getRegistryInfo, getServiceDetail, getServiceDetail, getTModelDetail, getTModelDetail, saveBinding, saveBusiness, savePublisher, saveService, saveTModel, setPublisherAssertions, validateValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPNAME_OPERATOR_NAME

public static final java.lang.String PROPNAME_OPERATOR_NAME
See Also:
Constant Field Values

PROPNAME_I18N_LANGUAGE_CODE

public static final java.lang.String PROPNAME_I18N_LANGUAGE_CODE
See Also:
Constant Field Values

PROPNAME_I18N_COUNTRY_CODE

public static final java.lang.String PROPNAME_I18N_COUNTRY_CODE
See Also:
Constant Field Values

PROPNAME_DISCOVERY_URL

public static final java.lang.String PROPNAME_DISCOVERY_URL
See Also:
Constant Field Values

PROPNAME_ADMIN_EMAIL_ADDRESS

public static final java.lang.String PROPNAME_ADMIN_EMAIL_ADDRESS
See Also:
Constant Field Values

PROPNAME_DATASOURCE_NAME

public static final java.lang.String PROPNAME_DATASOURCE_NAME
See Also:
Constant Field Values

PROPNAME_IS_USE_DATASOURCE

public static final java.lang.String PROPNAME_IS_USE_DATASOURCE
See Also:
Constant Field Values

PROPNAME_JDBC_DRIVER

public static final java.lang.String PROPNAME_JDBC_DRIVER
See Also:
Constant Field Values

PROPNAME_JDBC_URL

public static final java.lang.String PROPNAME_JDBC_URL
See Also:
Constant Field Values

PROPNAME_JDBC_USERNAME

public static final java.lang.String PROPNAME_JDBC_USERNAME
See Also:
Constant Field Values

PROPNAME_JDBC_PASSWORD

public static final java.lang.String PROPNAME_JDBC_PASSWORD
See Also:
Constant Field Values

PROPNAME_IS_CREATE_DATABASE

public static final java.lang.String PROPNAME_IS_CREATE_DATABASE
See Also:
Constant Field Values

PROPNAME_DB_EXISTS_SQL

public static final java.lang.String PROPNAME_DB_EXISTS_SQL
See Also:
Constant Field Values

PROPNAME_SQL_FILES

public static final java.lang.String PROPNAME_SQL_FILES
See Also:
Constant Field Values

PROPNAME_TABLE_PREFIX

public static final java.lang.String PROPNAME_TABLE_PREFIX
See Also:
Constant Field Values

PROPNAME_JAVA_NAMING_FACTORY_INITIAL

public static final java.lang.String PROPNAME_JAVA_NAMING_FACTORY_INITIAL
See Also:
Constant Field Values

PROPNAME_JAVA_NAMING_PROVIDER_URL

public static final java.lang.String PROPNAME_JAVA_NAMING_PROVIDER_URL
See Also:
Constant Field Values

PROPNAME_JAVA_NAMING_FACTORY_URL_PKGS

public static final java.lang.String PROPNAME_JAVA_NAMING_FACTORY_URL_PKGS
See Also:
Constant Field Values

PROPNAME_AUTH_CLASS_NAME

public static final java.lang.String PROPNAME_AUTH_CLASS_NAME
See Also:
Constant Field Values

PROPNAME_DATASTORE_CLASS_NAME

public static final java.lang.String PROPNAME_DATASTORE_CLASS_NAME
See Also:
Constant Field Values

PROPNAME_CRYPTOR_CLASS_NAME

public static final java.lang.String PROPNAME_CRYPTOR_CLASS_NAME
See Also:
Constant Field Values

PROPNAME_UUIDGEN_CLASS_NAME

public static final java.lang.String PROPNAME_UUIDGEN_CLASS_NAME
See Also:
Constant Field Values

PROPNAME_VALIDATOR_CLASS_NAME

public static final java.lang.String PROPNAME_VALIDATOR_CLASS_NAME
See Also:
Constant Field Values

PROPNAME_MAX_NAME_ELEMENTS

public static final java.lang.String PROPNAME_MAX_NAME_ELEMENTS
See Also:
Constant Field Values

PROPNAME_MAX_NAME_LENGTH

public static final java.lang.String PROPNAME_MAX_NAME_LENGTH
See Also:
Constant Field Values

PROPNAME_MAX_BUSINESSES_PER_PUBLISHER

public static final java.lang.String PROPNAME_MAX_BUSINESSES_PER_PUBLISHER
See Also:
Constant Field Values

PROPNAME_MAX_SERVICES_PER_BUSINESS

public static final java.lang.String PROPNAME_MAX_SERVICES_PER_BUSINESS
See Also:
Constant Field Values

PROPNAME_MAX_BINDINGS_PER_SERVICE

public static final java.lang.String PROPNAME_MAX_BINDINGS_PER_SERVICE
See Also:
Constant Field Values

PROPNAME_MAX_TMODELS_PER_PUBLISHER

public static final java.lang.String PROPNAME_MAX_TMODELS_PER_PUBLISHER
See Also:
Constant Field Values

PROPNAME_MAX_MESSAGE_SIZE

public static final java.lang.String PROPNAME_MAX_MESSAGE_SIZE
See Also:
Constant Field Values

PROPNAME_MAX_ROWS_LIMIT

public static final java.lang.String PROPNAME_MAX_ROWS_LIMIT
See Also:
Constant Field Values

DEFAULT_OPERATOR_NAME

public static final java.lang.String DEFAULT_OPERATOR_NAME
See Also:
Constant Field Values

DEFAULT_I18N_LANGUAGE_CODE

public static final java.lang.String DEFAULT_I18N_LANGUAGE_CODE
See Also:
Constant Field Values

DEFAULT_I18N_COUNTRY_CODE

public static final java.lang.String DEFAULT_I18N_COUNTRY_CODE
See Also:
Constant Field Values

DEFAULT_DISCOVERY_URL

public static final java.lang.String DEFAULT_DISCOVERY_URL
See Also:
Constant Field Values

DEFAULT_ADMIN_EMAIL_ADDRESS

public static final java.lang.String DEFAULT_ADMIN_EMAIL_ADDRESS
See Also:
Constant Field Values

DEFAULT_DATASOURCE_NAME

public static final java.lang.String DEFAULT_DATASOURCE_NAME
See Also:
Constant Field Values

DEFAULT_IS_USE_DATASOURCE

public static final java.lang.Boolean DEFAULT_IS_USE_DATASOURCE

DEFAULT_JDBC_DRIVER

public static final java.lang.String DEFAULT_JDBC_DRIVER
See Also:
Constant Field Values

DEFAULT_JDBC_URL

public static final java.lang.String DEFAULT_JDBC_URL
See Also:
Constant Field Values

DEFAULT_JDBC_USERNAME

public static final java.lang.String DEFAULT_JDBC_USERNAME
See Also:
Constant Field Values

DEFAULT_JDBC_PASSWORD

public static final java.lang.String DEFAULT_JDBC_PASSWORD
See Also:
Constant Field Values

DEFAULT_IS_CREATE_DATABASE

public static final java.lang.Boolean DEFAULT_IS_CREATE_DATABASE

DEFAULT_DB_EXISTS_SQL

public static final java.lang.String DEFAULT_DB_EXISTS_SQL
See Also:
Constant Field Values

DEFAULT_SQL_FILES

public static final java.lang.String DEFAULT_SQL_FILES
See Also:
Constant Field Values

DEFAULT_TABLE_PREFIX

public static final java.lang.String DEFAULT_TABLE_PREFIX
See Also:
Constant Field Values

DEFAULT_AUTH_CLASS_NAME

public static final java.lang.String DEFAULT_AUTH_CLASS_NAME
See Also:
Constant Field Values

DEFAULT_DATASTORE_CLASS_NAME

public static final java.lang.String DEFAULT_DATASTORE_CLASS_NAME
See Also:
Constant Field Values

DEFAULT_CRYPTOR_CLASS_NAME

public static final java.lang.String DEFAULT_CRYPTOR_CLASS_NAME
See Also:
Constant Field Values

DEFAULT_UUIDGEN_CLASS_NAME

public static final java.lang.String DEFAULT_UUIDGEN_CLASS_NAME
See Also:
Constant Field Values

DEFAULT_VALIDATOR_CLASS_NAME

public static final java.lang.String DEFAULT_VALIDATOR_CLASS_NAME
See Also:
Constant Field Values

DEFAULT_JAVA_NAMING_FACTORY_INITIAL

public static final java.lang.String DEFAULT_JAVA_NAMING_FACTORY_INITIAL
See Also:
Constant Field Values

DEFAULT_JAVA_NAMING_PROVIDER_URL

public static final java.lang.String DEFAULT_JAVA_NAMING_PROVIDER_URL
See Also:
Constant Field Values

DEFAULT_JAVA_NAMING_FACTORY_URL_PKGS

public static final java.lang.String DEFAULT_JAVA_NAMING_FACTORY_URL_PKGS
See Also:
Constant Field Values

DEFAULT_MAX_NAME_ELEMENTS

public static final int DEFAULT_MAX_NAME_ELEMENTS
See Also:
Constant Field Values

DEFAULT_MAX_NAME_LENGTH

public static final int DEFAULT_MAX_NAME_LENGTH
See Also:
Constant Field Values

DEFAULT_MAX_MESSAGE_SIZE

public static final int DEFAULT_MAX_MESSAGE_SIZE
See Also:
Constant Field Values

DEFAULT_MAX_BUSINESSES_PER_PUBLISHER

public static final int DEFAULT_MAX_BUSINESSES_PER_PUBLISHER
See Also:
Constant Field Values

DEFAULT_MAX_SERVICES_PER_BUSINESS

public static final int DEFAULT_MAX_SERVICES_PER_BUSINESS
See Also:
Constant Field Values

DEFAULT_MAX_BINDINGS_PER_SERVICE

public static final int DEFAULT_MAX_BINDINGS_PER_SERVICE
See Also:
Constant Field Values

DEFAULT_MAX_TMODELS_PER_PUBLISHER

public static final int DEFAULT_MAX_TMODELS_PER_PUBLISHER
See Also:
Constant Field Values

DEFAULT_MAX_ROWS_LIMIT

public static final int DEFAULT_MAX_ROWS_LIMIT
See Also:
Constant Field Values
Constructor Detail

RegistryEngine

public RegistryEngine()
Create a new instance of RegistryEngine. This constructor looks in the classpath for a file named 'juddi.properties' and uses property values in this file to initialize the new instance. Default values are used if the file does not exist or if a particular property value is not present.


RegistryEngine

public RegistryEngine(java.util.Properties props)
Creates a new instance of RegistryEngine. This constructor uses the property values passed in the Properties parameter to initialize the new RegistryProxy instance. Default values are used if the file does not exist or if a particular property value is not present.

Method Detail

init

public void init()
Initialize required resources.


dispose

public void dispose()
Releases any acquired resources. Will stop these if they are currently running.


isAvailable

public boolean isAvailable()
Returns 'true' if the registry is available to handle requests, otherwise returns 'false'.


execute

public RegistryObject execute(RegistryObject request)
                       throws RegistryException
Throws:
RegistryException

executeSql

public void executeSql(java.lang.String resource,
                       java.sql.Connection conn,
                       java.lang.String tablePrefix)
                throws java.lang.Exception
Throws:
java.lang.Exception

getString

public static java.lang.String getString(java.io.InputStream in)
                                  throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2004-2007. All Rights Reserved.