|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.aps.epics.jca.Channel
|
+--gov.aps.epics.jca.jni.JNIChannel
| Field Summary | |
protected java.util.ArrayList |
_accessListenerList
|
protected int |
_channelID
|
protected java.util.ArrayList |
_cnxListenerList
|
protected gov.aps.epics.jca.jni.JNIContext |
_jnicontext
|
protected java.lang.String |
_name
|
| Constructor Summary | |
protected |
JNIChannel(gov.aps.epics.jca.jni.JNIContext context,
java.lang.String name,
gov.aps.epics.jca.ConnectionListener l)
|
| Method Summary | |
void |
addAccessRightsListener(gov.aps.epics.jca.AccessRightsListener l)
Adds a AccessRightsListener which will be notified of the access rights's changes of this Channel. |
void |
addConnectionListener(gov.aps.epics.jca.ConnectionListener l)
Adds a ConnectionListener which will be notified of the connection state's changes of this Channel. |
gov.aps.epics.jca.Monitor |
addMonitorListener(int type,
int count,
gov.aps.epics.jca.MonitorListener l,
int mask)
Adds a monitor to this Channel with a specified type,count and mask. |
protected void |
assertValidity()
|
void |
destroy()
Clear the ressources used by this channel. |
void |
dispose()
|
gov.aps.epics.jca.dbr.DBR |
get(int type,
int count)
Reads a specified number of elements of a specified type from this Channel. |
void |
get(int type,
int count,
gov.aps.epics.jca.GetListener l)
Reads a specified number of elements of a specified type from this Channel with a GetListener to be notified when the operation has been completed. |
gov.aps.epics.jca.AccessRightsListener[] |
getAccessRightsListeners()
Returns the AccessRightsListener registered with this Channel. |
int |
getChannelID()
|
gov.aps.epics.jca.ConnectionListener[] |
getConnectionListeners()
Returns the ConnectionListener registered with this Channel. |
gov.aps.epics.jca.Context |
getContext()
Returns the context which created this channel. |
int |
getElementCount()
return the pv's element count. |
int |
getFieldType()
return the pv's channel access type. |
java.lang.String |
getHostName()
return the pv's hostname. |
java.lang.String |
getName()
return the name of the process variable. |
boolean |
getReadAccess()
return the pv's read access right. |
int |
getState()
return the pv's connection state. |
boolean |
getWriteAccess()
return the pv's write access right. |
void |
put(byte[] value)
Writes an array to this Channel. |
void |
put(byte[] value,
gov.aps.epics.jca.PutListener l)
Writes an array to this Channel with a PutListener to be notified when the operation has been completed. |
void |
put(double[] value)
Writes an array to this Channel. |
void |
put(double[] value,
gov.aps.epics.jca.PutListener l)
Writes an array to this Channel with a PutListener to be notified when the operation has been completed. |
void |
put(float[] value)
Writes an array to this Channel. |
void |
put(float[] value,
gov.aps.epics.jca.PutListener l)
Writes an array to this Channel with a PutListener to be notified when the operation has been completed. |
void |
put(int[] value)
Writes an array to this Channel. |
void |
put(int[] value,
gov.aps.epics.jca.PutListener l)
Writes an array to this Channel with a PutListener to be notified when the operation has been completed. |
protected void |
put(int type,
int count,
java.lang.Object value)
|
protected void |
put(int type,
int count,
java.lang.Object value,
gov.aps.epics.jca.PutListener l)
|
void |
put(short[] value)
Writes an array to this Channel. |
void |
put(short[] value,
gov.aps.epics.jca.PutListener l)
Writes an array to this Channel with a PutListener to be notified when the operation has been completed. |
void |
put(java.lang.String[] value)
Writes an array to this Channel. |
void |
put(java.lang.String[] value,
gov.aps.epics.jca.PutListener l)
Writes an array to this Channel with a PutListener to be notified when the operation has been completed. |
void |
removeAccessRightsListener(gov.aps.epics.jca.AccessRightsListener l)
Removes a AccessRightsListener which will be notified of the access rights's changes of this Channel. |
void |
removeConnectionListener(gov.aps.epics.jca.ConnectionListener l)
Removes a ConnectionListener . |
protected void |
setChannelID(int channelID)
|
| Methods inherited from class gov.aps.epics.jca.Channel |
addMonitorListener, get, get, get, get, getFieldTypeString, getStateString, printInfo, printInfo, put, put, put, put, put, put, put, put, put, put, put, put |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected gov.aps.epics.jca.jni.JNIContext _jnicontext
protected int _channelID
protected java.lang.String _name
protected java.util.ArrayList _cnxListenerList
protected java.util.ArrayList _accessListenerList
| Constructor Detail |
protected JNIChannel(gov.aps.epics.jca.jni.JNIContext context,
java.lang.String name,
gov.aps.epics.jca.ConnectionListener l)
| Method Detail |
protected void setChannelID(int channelID)
public gov.aps.epics.jca.Context getContext()
Channel
getContext in class Channel
public void destroy()
throws CaException
Channel
destroy in class ChannelCaExceptionpublic gov.aps.epics.jca.ConnectionListener[] getConnectionListeners()
Channel
getConnectionListeners in class Channel
public void addConnectionListener(gov.aps.epics.jca.ConnectionListener l)
throws CaException
Channel
addConnectionListener in class Channell - the ConnectionListener to be registered.
CaException
public void removeConnectionListener(gov.aps.epics.jca.ConnectionListener l)
throws CaException
Channel
removeConnectionListener in class Channell - the ConnectionListener to be removed.
CaExceptionpublic gov.aps.epics.jca.AccessRightsListener[] getAccessRightsListeners()
Channel
getAccessRightsListeners in class Channel
public void addAccessRightsListener(gov.aps.epics.jca.AccessRightsListener l)
throws CaException
Channel
addAccessRightsListener in class Channell - the ConnectionListener to be registered.
CaException
public void removeAccessRightsListener(gov.aps.epics.jca.AccessRightsListener l)
throws CaException
Channel
removeAccessRightsListener in class Channell - the ConnectionListener to be removed.
CaExceptionpublic java.lang.String getName()
getName in class ChannelIllegalOperationException - is thrown if the process variable has been disposed.public int getFieldType()
getFieldType in class ChannelIllegalOperationException - is thrown if the process variable has been disposed.CaConstantspublic int getElementCount()
getElementCount in class ChannelIllegalOperationException - is thrown if the process variable has been disposed.public int getState()
getState in class ChannelIllegalOperationException - is thrown if the process variable has been disposed.CaConstantspublic java.lang.String getHostName()
getHostName in class ChannelIllegalOperationException - is thrown if the process variable has been disposed.public boolean getReadAccess()
getReadAccess in class ChannelIllegalOperationException - is thrown if the process variable has been disposed.public boolean getWriteAccess()
getWriteAccess in class ChannelIllegalOperationException - is thrown if the process variable has been disposed.public void dispose()
public int getChannelID()
public void put(byte[] value)
throws CaException
Channel
put in class Channelvalue - the value.
CaException
public void put(byte[] value,
gov.aps.epics.jca.PutListener l)
throws CaException
Channel
put in class Channelvalue - the value.
CaException
public void put(short[] value)
throws CaException
Channel
put in class Channelvalue - the value.
CaException
public void put(short[] value,
gov.aps.epics.jca.PutListener l)
throws CaException
Channel
put in class Channelvalue - the value.
CaException
public void put(int[] value)
throws CaException
Channel
put in class Channelvalue - the value.
CaException
public void put(int[] value,
gov.aps.epics.jca.PutListener l)
throws CaException
Channel
put in class Channelvalue - the value.
CaException
public void put(float[] value)
throws CaException
Channel
put in class Channelvalue - the value.
CaException
public void put(float[] value,
gov.aps.epics.jca.PutListener l)
throws CaException
Channel
put in class Channelvalue - the value.
CaException
public void put(double[] value)
throws CaException
Channel
put in class Channelvalue - the value.
CaException
public void put(double[] value,
gov.aps.epics.jca.PutListener l)
throws CaException
Channel
put in class Channelvalue - the value.
CaException
public void put(java.lang.String[] value)
throws CaException
Channel
put in class Channelvalue - the value.
CaException
public void put(java.lang.String[] value,
gov.aps.epics.jca.PutListener l)
throws CaException
Channel
put in class Channelvalue - the value.
CaException
protected void put(int type,
int count,
java.lang.Object value)
throws CaException
CaException
protected void put(int type,
int count,
java.lang.Object value,
gov.aps.epics.jca.PutListener l)
throws CaException
CaException
public gov.aps.epics.jca.dbr.DBR get(int type,
int count)
throws CaException
Channel
get in class Channelcount - the number of element to read.
CaException
public void get(int type,
int count,
gov.aps.epics.jca.GetListener l)
throws CaException
Channel
get in class Channeltype - the element type.count - the number of element to read.l - the GetListener.
CaException
public gov.aps.epics.jca.Monitor addMonitorListener(int type,
int count,
gov.aps.epics.jca.MonitorListener l,
int mask)
throws CaException
Channel
addMonitorListener in class Channeltype - the monitor element type.count - the monitor element count.l - the MonitorListener to be notified.mask - the mask value indicating when the listener need to be notified.
CaExceptionprotected void assertValidity()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||