jca
Class Ca

java.lang.Object
  |
  +--jca.Ca

Deprecated. Use gov.apsjca.Ca instead.

public final class Ca
extends java.lang.Object

The Java Channel Access class.

See Also:
PV, Monitor

Field Summary
protected static java.util.Vector _queue
          Deprecated.  
protected static gov.aps.epics.jca.Context _theContext
          Deprecated.  
static int OP_ADD_EVENT
          Deprecated.  
static int OP_CLEAR_EVENT
          Deprecated.  
static int OP_CONN_DOWN
          Deprecated.  
static int OP_CONN_UP
          Deprecated.  
static int OP_GET
          Deprecated.  
static int OP_OTHER
          Deprecated.  
static int OP_PUT
          Deprecated.  
static int OP_SEARCH
          Deprecated.  
 
Constructor Summary
Ca()
          Deprecated.  
 
Method Summary
protected static void clearQueue()
          Deprecated.  
static void exit()
          Deprecated. Frees all CA resources and exits the Channel Access thread
protected  void finalize()
          Deprecated.  
static void flushIO()
          Deprecated. Sends all buffered IO requests.
protected static void get(jca.PV pv, jca.dbr.DBR ivalue)
          Deprecated.  
protected static gov.aps.epics.jca.Context getContext()
          Deprecated.  
static void init()
          Deprecated. Initializes the Channel Access threads.
static void init(int requestPriority, int eventPriority)
          Deprecated.  
static void pendEvent(double period)
          Deprecated. Flushes the send buffer and waits for asynchronous event.
static void pendIO(double timeout)
          Deprecated. Flushes the send buffer and waits until outstanding queries complete.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OP_GET

public static final int OP_GET
Deprecated. 
See Also:
Constant Field Values

OP_PUT

public static final int OP_PUT
Deprecated. 
See Also:
Constant Field Values

OP_SEARCH

public static final int OP_SEARCH
Deprecated. 
See Also:
Constant Field Values

OP_ADD_EVENT

public static final int OP_ADD_EVENT
Deprecated. 
See Also:
Constant Field Values

OP_CLEAR_EVENT

public static final int OP_CLEAR_EVENT
Deprecated. 
See Also:
Constant Field Values

OP_OTHER

public static final int OP_OTHER
Deprecated. 
See Also:
Constant Field Values

OP_CONN_UP

public static final int OP_CONN_UP
Deprecated. 
See Also:
Constant Field Values

OP_CONN_DOWN

public static final int OP_CONN_DOWN
Deprecated. 
See Also:
Constant Field Values

_theContext

protected static gov.aps.epics.jca.Context _theContext
Deprecated. 

_queue

protected static java.util.Vector _queue
Deprecated. 
Constructor Detail

Ca

public Ca()
Deprecated. 
Method Detail

init

public static void init()
Deprecated. 
Initializes the Channel Access threads.


init

public static void init(int requestPriority,
                        int eventPriority)
Deprecated. 

exit

public static void exit()
Deprecated. 
Frees all CA resources and exits the Channel Access thread


flushIO

public static void flushIO()
Deprecated. 
Sends all buffered IO requests. Usually performed by pendIO or pendEvent. However, some users may wish to flush remote operation requests early so that they can perform operations in parallel with outstanding remote operations.

See Also:
pendEvent(double), pendIO(double)

pendIO

public static void pendIO(double timeout)
                   throws TimeOutException
Deprecated. 
Flushes the send buffer and waits until outstanding queries complete. At this time queries include calls to PV(name) and PV.get(value).

Comments: Any values written into your program's variables by a CA synchronous request should not be referenced by your program until Ca.pendIO() has been called.

Parameters:
timeout - time in seconds to wait before the function times out. A timeout of zero means wait forever.
Throws:
TimeOutException - The timeout has expire and all outstanding queries were not completed.

pendEvent

public static void pendEvent(double period)
Deprecated. 
Flushes the send buffer and waits for asynchronous event. Asynchronous event include all call to PV(name,listener), PV.get(value,listener), PV.put(value,listener) and all monitors events. This routine will not return before the period expires and all unfinished channel access labor has been processed.

Comments: A very short timeout such as 0.0001 seconds will result in a poll (i.e. channel access will just check for file descriptor activity and then return).

Parameters:
period - time in seconds to wait before the function returns. A period of zero means wait forever.

clearQueue

protected static void clearQueue()
Deprecated. 

get

protected static void get(jca.PV pv,
                          jca.dbr.DBR ivalue)
                   throws BadTypeException,
                          BadCountException,
                          GetFailException
Deprecated. 
BadTypeException
BadCountException
GetFailException

getContext

protected static gov.aps.epics.jca.Context getContext()
Deprecated. 

finalize

protected void finalize()
                 throws java.lang.Throwable
Deprecated. 
Overrides:
finalize in class java.lang.Object
java.lang.Throwable