edu.stanford.slac.aida.sys.daServer
Class DaServerI_impl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by edu.stanford.slac.aida.sys.daServer.DaServerIPOA
          extended by edu.stanford.slac.aida.sys.daServer.DaServerI_impl
All Implemented Interfaces:
DaServerIOperations, org.omg.CORBA.portable.InvokeHandler

public class DaServerI_impl
extends DaServerIPOA

Defines the primary AIDA client API. This class defines the primary methods utilized by AIDA clients for synchronous data access operations.

DaServerI_impl implements the IDL interface DaServerI. DaServerI is an aidaObject interface (generated from aidaObject.idl by Makefile by sed substitution.

Version:
28-Sep-2006, Bob Hall (rdh): Added args parameter to set method., 20-Sep-2006, Bob Hall (rdh): Implemented set method., 16-Sep-2004, Greg White (greg): Convert for Err singleton re-write., Greg White, Sep-2004: Added exception handling., 13-Nov-2002, Ron MacKenzie Change import of except from aida to package except., George McIntyre, July-2002: Newlabour prototype.
Author:
Greg White, Oct-2001

Constructor Summary
DaServerI_impl(_PersistentDaObject da)
           
DaServerI_impl(_PersistentDaObject da, org.omg.PortableServer.POA poa)
           
 
Method Summary
 org.omg.PortableServer.POA _default_POA()
           
 boolean get_boolean(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is boolean.
 boolean[] get_booleana(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of boolean.
 byte get_byte(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is byte.
 byte[] get_bytea(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of byte.
 char get_char(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is char.
 char[] get_chara(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of char.
 double get_double(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is double.
 double[] get_doublea(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of double.
 float get_float(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is float.
 float[] get_floata(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of float.
 int get_long(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is long.
 int[] get_longa(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of long.
 short get_short(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is short.
 short[] get_shorta(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of short.
 java.lang.String get_string(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is string.
 java.lang.String[] get_stringa(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of string.
 char get_wchar(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is wide-string.
 char[] get_wchara(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of wide-char.
 java.lang.String get_wstring(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the data type is wide-string.
 org.omg.CORBA.Any get(java.lang.String query, java.lang.String[] args)
          Gets AIDA accessible data given a query string (and possible paramters), where the returned data type is defined by the data provider (usually because the data type is either unknown a-prori, or is structured).
 void init()
          Initializes a DaServer servant.
 void set(java.lang.String query, java.lang.String[] args, org.omg.CORBA.AnyHolder value)
          Sets value or values of AIDA accessible data, given a query specifcation of that data, and CORBA Any.
 void shutdown()
          Performs clean shutdown of DaServer.
 void startMonitor(java.lang.String name)
          Initates monitoring for an AIDA accessible data item for asynchronous event handling.
 int status()
           
 void stopMonitor(java.lang.String name)
          Terminates monitoring for an AIDA accessible data item for asynchronous event handling.
 
Methods inherited from class edu.stanford.slac.aida.sys.daServer.DaServerIPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaServerI_impl

public DaServerI_impl(_PersistentDaObject da)

DaServerI_impl

public DaServerI_impl(_PersistentDaObject da,
                      org.omg.PortableServer.POA poa)
Method Detail

_default_POA

public org.omg.PortableServer.POA _default_POA()
Overrides:
_default_POA in class org.omg.PortableServer.Servant

init

public void init()
          throws edu.stanford.slac.except.ServerInitialisationException
Initializes a DaServer servant. Presently this method performs no operations. In fact, I think (greg) as yet it's never called.

Throws:
edu.stanford.slac.except.ServerInitialisationException

get

public org.omg.CORBA.Any get(java.lang.String query,
                             java.lang.String[] args)
                      throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the returned data type is defined by the data provider (usually because the data type is either unknown a-prori, or is structured).

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_byte

public byte get_byte(java.lang.String query,
                     java.lang.String[] args)
              throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is byte.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_short

public short get_short(java.lang.String query,
                       java.lang.String[] args)
                throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is short.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_long

public int get_long(java.lang.String query,
                    java.lang.String[] args)
             throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is long.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_boolean

public boolean get_boolean(java.lang.String query,
                           java.lang.String[] args)
                    throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is boolean.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_double

public double get_double(java.lang.String query,
                         java.lang.String[] args)
                  throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is double.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_float

public float get_float(java.lang.String query,
                       java.lang.String[] args)
                throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is float.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_string

public java.lang.String get_string(java.lang.String query,
                                   java.lang.String[] args)
                            throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is string.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_char

public char get_char(java.lang.String query,
                     java.lang.String[] args)
              throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is char.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_wstring

public java.lang.String get_wstring(java.lang.String query,
                                    java.lang.String[] args)
                             throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is wide-string.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_wchar

public char get_wchar(java.lang.String query,
                      java.lang.String[] args)
               throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is wide-string.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_bytea

public byte[] get_bytea(java.lang.String query,
                        java.lang.String[] args)
                 throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of byte.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_shorta

public short[] get_shorta(java.lang.String query,
                          java.lang.String[] args)
                   throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of short.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_longa

public int[] get_longa(java.lang.String query,
                       java.lang.String[] args)
                throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of long.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_booleana

public boolean[] get_booleana(java.lang.String query,
                              java.lang.String[] args)
                       throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of boolean.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_doublea

public double[] get_doublea(java.lang.String query,
                            java.lang.String[] args)
                     throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of double.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_floata

public float[] get_floata(java.lang.String query,
                          java.lang.String[] args)
                   throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of float.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_stringa

public java.lang.String[] get_stringa(java.lang.String query,
                                      java.lang.String[] args)
                               throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of string.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_chara

public char[] get_chara(java.lang.String query,
                        java.lang.String[] args)
                 throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of char.

Throws:
edu.stanford.slac.except.UnableToGetDataException

get_wchara

public char[] get_wchara(java.lang.String query,
                         java.lang.String[] args)
                  throws edu.stanford.slac.except.UnableToGetDataException
Gets AIDA accessible data given a query string (and possible paramters), where the data type is array of wide-char.

Throws:
edu.stanford.slac.except.UnableToGetDataException

set

public void set(java.lang.String query,
                java.lang.String[] args,
                org.omg.CORBA.AnyHolder value)
         throws edu.stanford.slac.except.UnableToSetDataException
Sets value or values of AIDA accessible data, given a query specifcation of that data, and CORBA Any.

Throws:
edu.stanford.slac.except.UnableToSetDataException

startMonitor

public void startMonitor(java.lang.String name)
                  throws edu.stanford.slac.except.MonitorStartupException
Initates monitoring for an AIDA accessible data item for asynchronous event handling. NOT YET IMPLEMENTED

Throws:
edu.stanford.slac.except.MonitorStartupException

stopMonitor

public void stopMonitor(java.lang.String name)
                 throws edu.stanford.slac.except.MonitorShutdownException
Terminates monitoring for an AIDA accessible data item for asynchronous event handling. NOT YET IMPLEMENTED

Throws:
edu.stanford.slac.except.MonitorShutdownException

status

public int status()

shutdown

public void shutdown()
Performs clean shutdown of DaServer.