File tree 8 files changed +17
-15
lines changed
alts/src/main/java/io/grpc/alts/internal
api/src/main/java/io/grpc
binder/src/main/java/io/grpc/binder/internal
grpclb/src/main/java/io/grpc/grpclb
8 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,11 @@ public final class AltsProtocolNegotiator {
58
58
private static final AsyncSemaphore handshakeSemaphore = new AsyncSemaphore (32 );
59
59
60
60
@ Grpc .TransportAttr
61
- public static final Attributes .Key <TsiPeer > TSI_PEER_KEY = Attributes .Key .create ("TSI_PEER" );
61
+ public static final Attributes .Key <TsiPeer > TSI_PEER_KEY =
62
+ Attributes .Key .create ("internal:TSI_PEER" );
62
63
@ Grpc .TransportAttr
63
64
public static final Attributes .Key <Object > AUTH_CONTEXT_KEY =
64
- Attributes .Key .create ("AUTH_CONTEXT_KEY" );
65
+ Attributes .Key .create ("internal: AUTH_CONTEXT_KEY" );
65
66
66
67
private static final AsciiString SCHEME = AsciiString .of ("https" );
67
68
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public final class EquivalentAddressGroup {
44
44
@ Attr
45
45
@ ExperimentalApi ("https://github.com/grpc/grpc-java/issues/6138" )
46
46
public static final Attributes .Key <String > ATTR_AUTHORITY_OVERRIDE =
47
- Attributes .Key .create ("io.grpc.EquivalentAddressGroup.authorityOverride " );
47
+ Attributes .Key .create ("io.grpc.EquivalentAddressGroup.ATTR_AUTHORITY_OVERRIDE " );
48
48
private final List <SocketAddress > addrs ;
49
49
private final Attributes attrs ;
50
50
Original file line number Diff line number Diff line change @@ -38,23 +38,23 @@ private Grpc() {
38
38
@ ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1710" )
39
39
@ TransportAttr
40
40
public static final Attributes .Key <SocketAddress > TRANSPORT_ATTR_REMOTE_ADDR =
41
- Attributes .Key .create ("remote-addr " );
41
+ Attributes .Key .create ("io.grpc.Grpc.TRANSPORT_ATTR_REMOTE_ADDR " );
42
42
43
43
/**
44
44
* Attribute key for the local address of a transport.
45
45
*/
46
46
@ ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1710" )
47
47
@ TransportAttr
48
48
public static final Attributes .Key <SocketAddress > TRANSPORT_ATTR_LOCAL_ADDR =
49
- Attributes .Key .create ("local-addr " );
49
+ Attributes .Key .create ("io.grpc.Grpc.TRANSPORT_ATTR_LOCAL_ADDR " );
50
50
51
51
/**
52
52
* Attribute key for SSL session of a transport.
53
53
*/
54
54
@ ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1710" )
55
55
@ TransportAttr
56
56
public static final Attributes .Key <SSLSession > TRANSPORT_ATTR_SSL_SESSION =
57
- Attributes .Key .create ("ssl-session " );
57
+ Attributes .Key .create ("io.grpc.Grpc.TRANSPORT_ATTR_SSL_SESSION " );
58
58
59
59
/**
60
60
* Annotation for transport attributes. It follows the annotation semantics defined
Original file line number Diff line number Diff line change 32
32
public abstract class InternalConfigSelector {
33
33
@ NameResolver .ResolutionResultAttr
34
34
public static final Attributes .Key <io .grpc .InternalConfigSelector > KEY
35
- = Attributes .Key .create ("io.grpc.config-selector" );
35
+ = Attributes .Key .create ("internal: io.grpc.config-selector" );
36
36
37
37
// Use PickSubchannelArgs for SelectConfigArgs for now. May change over time.
38
38
/** Selects the config for an PRC. */
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public abstract class LoadBalancer {
114
114
@ Internal
115
115
@ NameResolver .ResolutionResultAttr
116
116
public static final Attributes .Key <Map <String , ?>> ATTR_HEALTH_CHECKING_CONFIG =
117
- Attributes .Key .create ("health-checking-config" );
117
+ Attributes .Key .create ("internal: health-checking-config" );
118
118
private int recursionCount ;
119
119
120
120
/**
Original file line number Diff line number Diff line change @@ -109,17 +109,18 @@ public abstract class BinderTransport
109
109
* active transport.
110
110
*/
111
111
@ Internal
112
- public static final Attributes .Key <Integer > REMOTE_UID = Attributes .Key .create ("remote-uid" );
112
+ public static final Attributes .Key <Integer > REMOTE_UID =
113
+ Attributes .Key .create ("internal:remote-uid" );
113
114
114
115
/** The authority of the server. */
115
116
@ Internal
116
117
public static final Attributes .Key <String > SERVER_AUTHORITY =
117
- Attributes .Key .create ("server-authority" );
118
+ Attributes .Key .create ("internal: server-authority" );
118
119
119
120
/** A transport attribute to hold the {@link InboundParcelablePolicy}. */
120
121
@ Internal
121
122
public static final Attributes .Key <InboundParcelablePolicy > INBOUND_PARCELABLE_POLICY =
122
- Attributes .Key .create ("inbound-parcelable-policy" );
123
+ Attributes .Key .create ("internal: inbound-parcelable-policy" );
123
124
124
125
/**
125
126
* Version code for this wire format.
Original file line number Diff line number Diff line change 40
40
public final class BinderTransportSecurity {
41
41
42
42
private static final Attributes .Key <TransportAuthorizationState > TRANSPORT_AUTHORIZATION_STATE =
43
- Attributes .Key .create ("transport-authorization-state" );
43
+ Attributes .Key .create ("internal: transport-authorization-state" );
44
44
45
45
private BinderTransportSecurity () {}
46
46
Original file line number Diff line number Diff line change @@ -46,23 +46,23 @@ public final class GrpclbConstants {
46
46
* Attribute key for gRPC LB server addresses.
47
47
*/
48
48
public static final Attributes .Key <List <EquivalentAddressGroup >> ATTR_LB_ADDRS =
49
- Attributes .Key .create ("io.grpc.grpclb.lbAddrs " );
49
+ Attributes .Key .create ("io.grpc.grpclb.GrpclbConstants.ATTR_LB_ADDRS " );
50
50
51
51
/**
52
52
* The naming authority of a gRPC LB server address. It is an address-group-level attribute,
53
53
* present when the address group is a LoadBalancer.
54
54
*/
55
55
@ EquivalentAddressGroup .Attr
56
56
public static final Attributes .Key <String > ATTR_LB_ADDR_AUTHORITY =
57
- Attributes .Key .create ("io.grpc.grpclb.lbAddrAuthority " );
57
+ Attributes .Key .create ("io.grpc.grpclb.GrpclbConstants.ATTR_LB_ADDR_AUTHORITY " );
58
58
59
59
/**
60
60
* Whether this EquivalentAddressGroup was provided by a GRPCLB server. It would be rare for this
61
61
* value to be {@code false}; generally it would be better to not have the key present at all.
62
62
*/
63
63
@ EquivalentAddressGroup .Attr
64
64
public static final Attributes .Key <Boolean > ATTR_LB_PROVIDED_BACKEND =
65
- Attributes .Key .create ("io.grpc.grpclb.lbProvidedBackend " );
65
+ Attributes .Key .create ("io.grpc.grpclb.GrpclbConstants.ATTR_LB_PROVIDED_BACKEND " );
66
66
67
67
private GrpclbConstants () { }
68
68
}
You can’t perform that action at this time.
0 commit comments