Skip to content

Commit a8e83fc

Browse files
committed
Add copyright notice
1 parent b566ccb commit a8e83fc

5 files changed

Lines changed: 33 additions & 17 deletions

File tree

gpclient/gpclient-ca/src/main/java/org/epics/gpclient/datasource/ca/CAChannelHandler.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Copyright information and license terms for this software can be
3+
* found in the file LICENSE.TXT included with the distribution.
4+
*/
15
package org.epics.gpclient.datasource.ca;
26

37
import static org.epics.gpclient.datasource.ca.CADataSource.log;
@@ -357,4 +361,9 @@ static String toString(byte[] data) {
357361
return new String(data, 0, index);
358362
}
359363

364+
public boolean isLongString() {
365+
// TODO Auto-generated method stub
366+
return false;
367+
}
368+
360369
}

gpclient/gpclient-ca/src/main/java/org/epics/gpclient/datasource/ca/CAConnectionPayload.java

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
/**
2-
* Copyright (C) 2010-14 pvmanager developers. See COPYRIGHT.TXT
3-
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
4-
*/
5-
/*
6-
* To change this template, choose Tools | Templates
7-
* and open the template in the editor.
2+
* Copyright information and license terms for this software can be
3+
* found in the file LICENSE.TXT included with the distribution.
84
*/
95
package org.epics.gpclient.datasource.ca;
106

@@ -24,15 +20,15 @@ public class CAConnectionPayload {
2420
private final CADataSource caDataSource;
2521
private final Channel channel;
2622
private final boolean connected;
27-
// private final boolean longString;
23+
private final boolean longString;
2824
private final DBRType fieldType;
2925
private final Instant eventTime = Instant.now();
3026

3127
public CAConnectionPayload(CAChannelHandler channleHandler, Channel channel, CAConnectionPayload previousPayload) {
3228
this.caDataSource = channleHandler.getCADataSource();
3329
this.channel = channel;
3430
this.connected = channel != null && channel.getConnectionState() == Channel.ConnectionState.CONNECTED;
35-
// this.longString = channleHandler.isLongString();
31+
this.longString = channleHandler.isLongString();
3632
this.fieldType = channel.getFieldType();
3733
}
3834

@@ -76,14 +72,14 @@ public boolean isWriteConnected() {
7672
return isChannelConnected() && channel.getWriteAccess();
7773
}
7874

79-
// /**
80-
// * Whether the message payload should be handled as a long string.
81-
// *
82-
// * @return true if long string support should be used
83-
// */
84-
// public boolean isLongString() {
85-
// return longString;
86-
// }
75+
/**
76+
* Whether the message payload should be handled as a long string.
77+
*
78+
* @return true if long string support should be used
79+
*/
80+
public boolean isLongString() {
81+
return longString;
82+
}
8783

8884
/**
8985
* Returns the local time of the connection event.
@@ -98,5 +94,4 @@ public Instant getEventTime() {
9894
public String toString() {
9995
return "CAConnection [connected: " +isChannelConnected() + " writeConnected: " + isWriteConnected() + " channel: " + channel + "]";
10096
}
101-
10297
}

gpclient/gpclient-ca/src/main/java/org/epics/gpclient/datasource/ca/CADataSource.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Copyright information and license terms for this software can be
3+
* found in the file LICENSE.TXT included with the distribution.
4+
*/
15
package org.epics.gpclient.datasource.ca;
26

37
import java.util.concurrent.Executors;

gpclient/gpclient-ca/src/main/java/org/epics/gpclient/datasource/ca/CADataSourceProvider.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Copyright information and license terms for this software can be
3+
* found in the file LICENSE.TXT included with the distribution.
4+
*/
15
package org.epics.gpclient.datasource.ca;
26

37
import org.epics.gpclient.datasource.DataSource;

gpclient/gpclient-ca/src/main/java/org/epics/gpclient/datasource/ca/CAMessagePayload.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Copyright information and license terms for this software can be
3+
* found in the file LICENSE.TXT included with the distribution.
4+
*/
15
package org.epics.gpclient.datasource.ca;
26

37
import gov.aps.jca.Channel;

0 commit comments

Comments
 (0)