edu.stanford.slac.aida.dp.dpCa
Class DpCaI_impl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by edu.stanford.slac.aida.dp.dpCa.DpCaIPOA
          extended by edu.stanford.slac.aida.dp.dpCa.DpCaI_impl
All Implemented Interfaces:
DpCaIOperations, org.omg.CORBA.portable.InvokeHandler

public class DpCaI_impl
extends DpCaIPOA

This class defines the AIDA Data Provider for EPICS Channel Access. DpCaI_impl implements the AIDA Data Provider "DpCaI" CORBA interface, by extending DpCaIPOA The inderlying EPICS Data Source is accessed through the (new COSYLAB) JCA interface.


Method Summary
 org.omg.PortableServer.POA _default_POA()
           
 boolean get_boolean(java.lang.String query, java.lang.String[] args)
           
 boolean[] get_booleana(java.lang.String query, java.lang.String[] args)
           
 byte get_byte(java.lang.String query, java.lang.String[] args)
           
 byte[] get_bytea(java.lang.String query, java.lang.String[] args)
           
 char get_char(java.lang.String query, java.lang.String[] args)
           
 char[] get_chara(java.lang.String query, java.lang.String[] args)
           
 double get_double(java.lang.String query, java.lang.String[] args)
           
 double[] get_doublea(java.lang.String query, java.lang.String[] args)
           
 float get_float(java.lang.String query, java.lang.String[] args)
           
 float[] get_floata(java.lang.String query, java.lang.String[] args)
           
 int get_long(java.lang.String query, java.lang.String[] args)
           
 int[] get_longa(java.lang.String query, java.lang.String[] args)
           
 short get_short(java.lang.String query, java.lang.String[] args)
           
 short[] get_shorta(java.lang.String query, java.lang.String[] args)
           
 java.lang.String get_string(java.lang.String query, java.lang.String[] args)
           
 java.lang.String[] get_stringa(java.lang.String query, java.lang.String[] args)
           
 char get_wchar(java.lang.String query, java.lang.String[] args)
           
 char[] get_wchara(java.lang.String query, java.lang.String[] args)
           
 java.lang.String get_wstring(java.lang.String query, java.lang.String[] args)
           
 org.omg.CORBA.Any get(java.lang.String query, java.lang.String[] args)
          Returns CORBA Any representation of EPICS DBR_TIME_XXX
protected  gov.aps.jca.Channel getChannel(java.lang.String query)
          Acquires access to a JCA Channel for a given EPICS Channel Name.
protected  edu.stanford.slac.aida.dp.dpCa.DpCaI_impl.MetaChannel getMetaChannel(java.lang.String query)
          Acquires access to a JCA Channel for a given EPICS Channel Name.
 void init()
           
 void set(java.lang.String query, java.lang.String[] args, org.omg.CORBA.AnyHolder value)
           
 void shutdown()
           
 void startMonitor(java.lang.String name)
           
 int status()
           
 void stopMonitor(java.lang.String name)
           
 
Methods inherited from class edu.stanford.slac.aida.dp.dpCa.DpCaIPOA
_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
 

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
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
Returns CORBA Any representation of EPICS DBR_TIME_XXX

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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Throws:
edu.stanford.slac.except.UnableToGetDataException

getMetaChannel

protected edu.stanford.slac.aida.dp.dpCa.DpCaI_impl.MetaChannel getMetaChannel(java.lang.String query)
                                                                        throws java.lang.IllegalArgumentException,
                                                                               gov.aps.jca.CAException,
                                                                               gov.aps.jca.TimeoutException
Acquires access to a JCA Channel for a given EPICS Channel Name.

Throws:
java.lang.IllegalArgumentException - query is invalid, may be not an instance//attribute pair?
gov.aps.jca.CAException
gov.aps.jca.TimeoutException

getChannel

protected gov.aps.jca.Channel getChannel(java.lang.String query)
                                  throws java.lang.IllegalArgumentException,
                                         gov.aps.jca.CAException,
                                         gov.aps.jca.TimeoutException
Acquires access to a JCA Channel for a given EPICS Channel Name.

Throws:
java.lang.IllegalArgumentException - query is invalid, may be not an instance//attribute pair?
gov.aps.jca.CAException
gov.aps.jca.TimeoutException

set

public void set(java.lang.String query,
                java.lang.String[] args,
                org.omg.CORBA.AnyHolder value)
         throws edu.stanford.slac.except.UnableToSetDataException
Throws:
edu.stanford.slac.except.UnableToSetDataException

startMonitor

public void startMonitor(java.lang.String name)
                  throws edu.stanford.slac.except.MonitorStartupException
Throws:
edu.stanford.slac.except.MonitorStartupException

stopMonitor

public void stopMonitor(java.lang.String name)
                 throws edu.stanford.slac.except.MonitorShutdownException
Throws:
edu.stanford.slac.except.MonitorShutdownException

status

public int status()

shutdown

public void shutdown()