Skip to content

Commit e080d1a

Browse files
authored
Merge pull request #70 from juanfem/patch-1
Removing unnecessary output from CA ClientFactory.
2 parents beefb28 + f0f9ff4 commit e080d1a

File tree

3 files changed

+40
-7
lines changed

3 files changed

+40
-7
lines changed

epics-vtype/vtype-json/src/main/java/org/epics/vtype/json/JsonArrays.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public static JsonArrayBuilder fromListNumber(ListNumber list) {
298298
for (int i = 0; i < list.size(); i++) {
299299
b.add(list.getInt(i));
300300
}
301-
} else if (list instanceof ListLong || list instanceof ListInteger) {
301+
} else if (list instanceof ListLong || list instanceof ListUInteger) {
302302
for (int i = 0; i < list.size(); i++) {
303303
b.add(list.getLong(i));
304304
}

gpclient/README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,38 @@
1-
# epicsVTypeJava
2-
A set of interfaces and utilities to work with EPICS types in Java
1+
# gpClient
2+
3+
The generic purpose client is meant to be used to build applications that
4+
are not specific to a particular deployment environment or to a particular use
5+
case. It provides a system of queuing and caching that is appropriate
6+
in most instances of multi-threaded applications. It isolates each reader
7+
and writer and therefore protects different parts of the applications.
8+
As such, it is not suitable for all purposes.
9+
10+
11+
You **WILL** want to use the gpclient if:
12+
13+
You want data access and do not care about protocol details
14+
You want something thread-safe without having to care about locks and race conditions
15+
You want to mix data from multiple sources (i.e. other protocols, databases, files, etc.)
16+
You are developing a user interface
17+
You are developing an extensible application where different user will
18+
want data access
19+
20+
21+
You may **NOT** want to use the gpclient if:
22+
23+
You need low level access to the EPICS communication protocol
24+
You need to implement an application specific real-time engine
25+
You want to lock the protocol until you have processed the data
26+
All your reads/write are tightly coupled to each other
27+
28+
29+
The generic purpose client provides the following functionality:
30+
31+
32+
* A client API that is always thread-safe
33+
the ability to specify on which thread or thread pool the notification
34+
should happen
35+
* A pluggable way to connect to different publish/subscribe sources of
36+
data (i.e. {@link DataSource})
37+
* The ability to create your own data channel implementations, even if
38+
they do not follow the common patterns

pvAccessJava/src/org/epics/ca/ClientFactory.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,7 @@ private CAThread(String threadName,int threadPriority, Context context)
301301
/* (non-Javadoc)
302302
* @see org.epics.ioc.util.RunnableReady#run(org.epics.ioc.util.ThreadReady)
303303
*/
304-
public void run(ThreadReady threadReady) {
305-
System.out.println("CaV3Client");
306-
context.printInfo();
307-
System.out.println();
304+
public void run(ThreadReady threadReady) {
308305
threadReady.ready();
309306
try {
310307
while(true) {

0 commit comments

Comments
 (0)