org.optimizationservices.oscommon.util
Class DefaultRegistry

java.lang.Object
  extended by org.optimizationservices.oscommon.util.DefaultRegistry

public class DefaultRegistry
extends java.lang.Object

The DefaultRegistry class is a default registry that is to be implemented by a registry that needs to be implemented as an optimization service using OSServiceUtil.

Since:
OS 1.0
Version:
1.0, 03/14/2005
Author:
Robert Fourer, Jun Ma, Kipp Martin
See Also:
OSServiceUtil

Field Summary
 java.lang.String osel
          osel holds the OSeL entity input string to be registered.
 java.lang.String osolFind
          osolFind holds the OSoL find option string (input).
 java.lang.String osolKnock
          osolKnock holds the OSoL knock option string (input).
 java.lang.String osolRegister
          osolRegister holds the OSoL register option string (input).
 java.lang.String osolValidate
          osolValidate holds the OSoL validate option string (input).
 java.lang.String osplKnockInput
          osplInput hols the OSpL knock process string (input)
 java.lang.String osplKnockOutput
          osplKnockOutput hols the OSpL knock process string (output)
 java.lang.String osplRegisterOutput
          osplRegisterOutput hols the OSpL register process string (output)
 java.lang.String osplValidateOutput
          osplValidateOutput hols the OSpL validate process string (output)
 java.lang.String osql
          osql holds the OSqL query input string.
static OSRegistry osRegistry
          osRegistry holds the registry database information in the standard OSRegistry data structure.
 java.lang.String osul
          osul holds the os uri/url string (output)
 java.lang.String osxl
          osxl holds the OSxL input string to be validated.
static java.util.Hashtable<java.lang.String,ServiceEntry> serviceHashTable
          serviceHashTable holds a hash table of registered services.
 java.lang.String serviceName
          serviceName holds the service name.
 java.lang.String serviceType
          serviceType holds the service type.
 java.lang.String serviceURI
          serviceURI holds the service uri.
 
Constructor Summary
DefaultRegistry()
          Default constructor.
 
Method Summary
 void find()
          Discover an Optimization Service whose instance is given by a string following the Optimization Services query Language (OSqL) schema and returns the location information in a string that follows the Optimization Services URI, or Universal Resource Indentifier Language, (OSuL) schema.
 void knock()
          This method is called by one optimization service on another optimization service to provide runtime dynamic process information (push mechanism).
static void main(java.lang.String[] args)
          main for test purposes.
 void register()
          register an Optimization Service whose instance is given by a string following the Optimization Services entity Language (OSeL) schema and returns a string that contains an XSLT style sheet transformation so that it can be used for standard web pubblication of the Optimization Service that just joined.
 void validate()
          Validate an osxl string according to the corresponding OSxL schema.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceName

public java.lang.String serviceName
serviceName holds the service name.


serviceURI

public java.lang.String serviceURI
serviceURI holds the service uri.


serviceType

public java.lang.String serviceType
serviceType holds the service type.


osql

public java.lang.String osql
osql holds the OSqL query input string.


osel

public java.lang.String osel
osel holds the OSeL entity input string to be registered.


osxl

public java.lang.String osxl
osxl holds the OSxL input string to be validated.


osplKnockInput

public java.lang.String osplKnockInput
osplInput hols the OSpL knock process string (input)


osolKnock

public java.lang.String osolKnock
osolKnock holds the OSoL knock option string (input).


osolRegister

public java.lang.String osolRegister
osolRegister holds the OSoL register option string (input).


osolFind

public java.lang.String osolFind
osolFind holds the OSoL find option string (input).


osolValidate

public java.lang.String osolValidate
osolValidate holds the OSoL validate option string (input).


osplKnockOutput

public java.lang.String osplKnockOutput
osplKnockOutput hols the OSpL knock process string (output)


osplValidateOutput

public java.lang.String osplValidateOutput
osplValidateOutput hols the OSpL validate process string (output)


osplRegisterOutput

public java.lang.String osplRegisterOutput
osplRegisterOutput hols the OSpL register process string (output)


osul

public java.lang.String osul
osul holds the os uri/url string (output)


osRegistry

public static OSRegistry osRegistry
osRegistry holds the registry database information in the standard OSRegistry data structure.


serviceHashTable

public static java.util.Hashtable<java.lang.String,ServiceEntry> serviceHashTable
serviceHashTable holds a hash table of registered services. The key is the serviceURI, and the value is the service of type ServiceEntry

Constructor Detail

DefaultRegistry

public DefaultRegistry()
Default constructor.

Method Detail

register

public void register()
register an Optimization Service whose instance is given by a string following the Optimization Services entity Language (OSeL) schema and returns a string that contains an XSLT style sheet transformation so that it can be used for standard web pubblication of the Optimization Service that just joined. The XSLT is espcially used to publish the OSeL.


validate

public void validate()
Validate an osxl string according to the corresponding OSxL schema.


find

public void find()
Discover an Optimization Service whose instance is given by a string following the Optimization Services query Language (OSqL) schema and returns the location information in a string that follows the Optimization Services URI, or Universal Resource Indentifier Language, (OSuL) schema.


knock

public void knock()
This method is called by one optimization service on another optimization service to provide runtime dynamic process information (push mechanism).


main

public static void main(java.lang.String[] args)
main for test purposes.

Parameters:
argv - command line arguments.