|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.aps.epics.jca.Context
|
+--gov.aps.epics.jca.jni.JNIContext
| Field Summary | |
protected int |
_ctxtID
|
protected gov.aps.epics.jca.ContextExceptionListener |
_exceptionListener
|
protected gov.aps.epics.jca.ContextMessageListener |
_messageListener
|
| Fields inherited from class gov.aps.epics.jca.Context |
_contextMap |
| Constructor Summary | |
JNIContext()
|
|
| Method Summary | |
void |
attachCurrentThread()
|
abstract gov.aps.epics.jca.jni.JNIMonitor |
ch_addMonitor(int type,
int count,
gov.aps.epics.jca.jni.JNIChannel ch,
gov.aps.epics.jca.MonitorListener l,
int mask)
|
abstract void |
ch_arrayGet(gov.aps.epics.jca.dbr.DBR dbr,
gov.aps.epics.jca.jni.JNIChannel ch)
|
abstract void |
ch_arrayGet(int type,
int count,
gov.aps.epics.jca.jni.JNIChannel ch,
gov.aps.epics.jca.GetListener l)
|
abstract void |
ch_arrayPut(int type,
int count,
gov.aps.epics.jca.jni.JNIChannel ch,
java.lang.Object value)
|
abstract void |
ch_arrayPut(int type,
int count,
gov.aps.epics.jca.jni.JNIChannel ch,
java.lang.Object value,
gov.aps.epics.jca.PutListener l)
|
abstract gov.aps.epics.jca.jni.JNIChannel |
ch_channelCreate(java.lang.String name,
gov.aps.epics.jca.ConnectionListener l)
|
abstract void |
ch_channelDestroy(gov.aps.epics.jca.jni.JNIChannel ch)
|
abstract void |
ch_clearMonitor(gov.aps.epics.jca.jni.JNIMonitor monitor)
|
abstract int |
ch_getElementCount(gov.aps.epics.jca.jni.JNIChannel ch)
|
abstract int |
ch_getFieldType(gov.aps.epics.jca.jni.JNIChannel ch)
|
abstract java.lang.String |
ch_getHostName(gov.aps.epics.jca.jni.JNIChannel ch)
|
abstract boolean |
ch_getReadAccess(gov.aps.epics.jca.jni.JNIChannel ch)
|
abstract int |
ch_getState(gov.aps.epics.jca.jni.JNIChannel ch)
|
abstract boolean |
ch_getWriteAccess(gov.aps.epics.jca.jni.JNIChannel ch)
|
abstract void |
ch_setAccessRightsListener(gov.aps.epics.jca.jni.JNIChannel ch,
gov.aps.epics.jca.AccessRightsListener l)
|
abstract void |
ch_setConnectionListener(gov.aps.epics.jca.jni.JNIChannel ch,
gov.aps.epics.jca.ConnectionListener l)
|
gov.aps.epics.jca.Channel |
createChannel(java.lang.String name,
gov.aps.epics.jca.ConnectionListener l)
Create a new Channel using this context to access a process variable with a ConnectionListener to receive ConnectionEvent from the newly created Channel. |
abstract void |
ctxt_attachThread()
|
abstract int |
ctxt_contextCreate(int mode)
|
abstract void |
ctxt_contextDestroy()
|
abstract void |
ctxt_flushIO()
|
abstract int |
ctxt_getCallbackMode()
|
abstract java.lang.String |
ctxt_getName()
|
abstract int |
ctxt_getThreadCtrlMode()
|
abstract void |
ctxt_pendEvent(double time)
|
abstract void |
ctxt_pendIO(double timeout)
|
abstract void |
ctxt_poll()
|
abstract void |
ctxt_setExceptionListener(gov.aps.epics.jca.ContextExceptionListener l)
|
abstract void |
ctxt_setMessageListener(gov.aps.epics.jca.ContextMessageListener l)
|
abstract boolean |
ctxt_testIO()
|
void |
destroy()
Destroys the Context and clear all associated ressources. |
void |
flushIO()
|
int |
getCallbackMode()
Returns the Context's callback mode. |
gov.aps.epics.jca.ContextExceptionListener |
getContextExceptionListener()
Returns the ContextExceptionListener registered with the Context. |
gov.aps.epics.jca.ContextMessageListener |
getContextMessageListener()
Returns the ContextMessageListener registered with the Context. |
protected int |
getCtxtID()
|
java.lang.String |
getName()
Returns the name of the Context. |
int |
getThreadCtrlMode()
Returns the Context's thread control mode. |
gov.aps.epics.jca.jni.JNIChannel |
lookupChannel(int channelID)
|
void |
pendEvent(double time)
Process all pending events. |
void |
pendIO(double timeout)
Process all pending IO operations. |
void |
poll()
|
void |
registerChannel(gov.aps.epics.jca.jni.JNIChannel ch)
|
void |
setContextExceptionListener(gov.aps.epics.jca.ContextExceptionListener l)
Sets the ContextExceptionListener which will receive ContextExceptionEvents from this Context. |
void |
setContextMessageListener(gov.aps.epics.jca.ContextMessageListener l)
Sets the ContextMessageListener which will receive ContextMessageEvents from this Context. |
protected void |
setCtxtID(int ctxtID)
|
boolean |
testIO()
Tests if there are some pending IO requests. |
void |
unregisterChannel(gov.aps.epics.jca.jni.JNIChannel ch)
|
| Methods inherited from class gov.aps.epics.jca.Context |
createChannel, dispose, getCallbackModeString, getContextList, getThreadCtrlModeString, lookupContext, printInfo, printInfo, registerContext, unregisterContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int _ctxtID
protected gov.aps.epics.jca.ContextMessageListener _messageListener
protected gov.aps.epics.jca.ContextExceptionListener _exceptionListener
| Constructor Detail |
public JNIContext()
| Method Detail |
protected void setCtxtID(int ctxtID)
protected int getCtxtID()
public java.lang.String getName()
Context
getName in class Contextpublic int getThreadCtrlMode()
Context
getThreadCtrlMode in class ContextCaConstantspublic int getCallbackMode()
Context
getCallbackMode in class ContextCaConstantspublic gov.aps.epics.jca.ContextMessageListener getContextMessageListener()
Context
getContextMessageListener in class Context
public void setContextMessageListener(gov.aps.epics.jca.ContextMessageListener l)
throws CaException
Context
setContextMessageListener in class Contextl - the ContextMessageListener.
CaExceptionpublic gov.aps.epics.jca.ContextExceptionListener getContextExceptionListener()
Context
getContextExceptionListener in class Context
public void setContextExceptionListener(gov.aps.epics.jca.ContextExceptionListener l)
throws CaException
Context
setContextExceptionListener in class Contextl - the ContextExceptionListener.
CaException
public void destroy()
throws CaException
Context
destroy in class ContextCaException
public gov.aps.epics.jca.Channel createChannel(java.lang.String name,
gov.aps.epics.jca.ConnectionListener l)
throws CaException
Context
createChannel in class Contextname - the process variable to connect to.l - the ConnectionListener.
CaException - is thrown if the Context has been destroyed.
public void pendIO(double timeout)
throws CaException
Context
pendIO in class Contexttimeout - the timeout limit.
CaException - is thrown if all the IO couldn't be processed.
public boolean testIO()
throws CaException
Context
testIO in class ContextCaException
public void pendEvent(double time)
throws CaException
Context
pendEvent in class Contexttime - the time during which the Context will process events.
CaException
public void poll()
throws CaException
poll in class ContextCaException
public void flushIO()
throws CaException
flushIO in class ContextCaException
public void attachCurrentThread()
throws CaException
attachCurrentThread in class ContextCaExceptionpublic void registerChannel(gov.aps.epics.jca.jni.JNIChannel ch)
public gov.aps.epics.jca.jni.JNIChannel lookupChannel(int channelID)
public void unregisterChannel(gov.aps.epics.jca.jni.JNIChannel ch)
public abstract int ctxt_getThreadCtrlMode()
public abstract int ctxt_getCallbackMode()
public abstract java.lang.String ctxt_getName()
public abstract int ctxt_contextCreate(int mode)
throws CaException
CaException
public abstract void ctxt_setMessageListener(gov.aps.epics.jca.ContextMessageListener l)
throws CaException
CaException
public abstract void ctxt_setExceptionListener(gov.aps.epics.jca.ContextExceptionListener l)
throws CaException
CaException
public abstract void ctxt_contextDestroy()
throws CaException
CaException
public abstract void ctxt_pendIO(double timeout)
throws CaException
CaException
public abstract boolean ctxt_testIO()
throws CaException
CaException
public abstract void ctxt_pendEvent(double time)
throws CaException
CaException
public abstract void ctxt_poll()
throws CaException
CaException
public abstract void ctxt_flushIO()
throws CaException
CaException
public abstract void ctxt_attachThread()
throws CaException
CaException
public abstract gov.aps.epics.jca.jni.JNIChannel ch_channelCreate(java.lang.String name,
gov.aps.epics.jca.ConnectionListener l)
throws CaException
CaException
public abstract void ch_channelDestroy(gov.aps.epics.jca.jni.JNIChannel ch)
throws CaException
CaException
public abstract void ch_setConnectionListener(gov.aps.epics.jca.jni.JNIChannel ch,
gov.aps.epics.jca.ConnectionListener l)
throws CaException
CaException
public abstract void ch_setAccessRightsListener(gov.aps.epics.jca.jni.JNIChannel ch,
gov.aps.epics.jca.AccessRightsListener l)
throws CaException
CaExceptionpublic abstract int ch_getFieldType(gov.aps.epics.jca.jni.JNIChannel ch)
public abstract int ch_getElementCount(gov.aps.epics.jca.jni.JNIChannel ch)
public abstract int ch_getState(gov.aps.epics.jca.jni.JNIChannel ch)
public abstract java.lang.String ch_getHostName(gov.aps.epics.jca.jni.JNIChannel ch)
public abstract boolean ch_getReadAccess(gov.aps.epics.jca.jni.JNIChannel ch)
public abstract boolean ch_getWriteAccess(gov.aps.epics.jca.jni.JNIChannel ch)
public abstract void ch_arrayPut(int type,
int count,
gov.aps.epics.jca.jni.JNIChannel ch,
java.lang.Object value)
throws CaException
CaException
public abstract void ch_arrayPut(int type,
int count,
gov.aps.epics.jca.jni.JNIChannel ch,
java.lang.Object value,
gov.aps.epics.jca.PutListener l)
throws CaException
CaException
public abstract void ch_arrayGet(gov.aps.epics.jca.dbr.DBR dbr,
gov.aps.epics.jca.jni.JNIChannel ch)
throws CaException
CaException
public abstract void ch_arrayGet(int type,
int count,
gov.aps.epics.jca.jni.JNIChannel ch,
gov.aps.epics.jca.GetListener l)
throws CaException
CaException
public abstract gov.aps.epics.jca.jni.JNIMonitor ch_addMonitor(int type,
int count,
gov.aps.epics.jca.jni.JNIChannel ch,
gov.aps.epics.jca.MonitorListener l,
int mask)
throws CaException
CaException
public abstract void ch_clearMonitor(gov.aps.epics.jca.jni.JNIMonitor monitor)
throws CaException
CaException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||