Skip to content

Conversation

@garrettjonesgoogle
Copy link
Member

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 16, 2017
@garrettjonesgoogle garrettjonesgoogle force-pushed the master branch 2 times, most recently from 14d346c to 8b036cb Compare July 6, 2017 19:49
@garrettjonesgoogle
Copy link
Member Author

This is ready to review; it is only WIP because gax-java won't be released until this PR is approved.

@garrettjonesgoogle
Copy link
Member Author

gax-java and toolkit are approved, PTAL here

@michaelbausor
Copy link
Contributor

LGTM, others should approve also

Copy link
Contributor

@shinfan shinfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me. Just a few comments & questions

}

/**
* Returns a builder for this class with recommened defaults for API methods, and the given

This comment was marked as spam.

This comment was marked as spam.

settingsBuilder =
ImmutableMap.Builder<String, RetrySettings> definitions = ImmutableMap.builder();
RetrySettings settings = null;
settings =

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

// AUTO-GENERATED DOCUMENTATION AND CLASS
@Generated("by GAPIC v0.0.5")
@BetaApi
public abstract class DlpServiceStub implements BackgroundResource {

This comment was marked as spam.

This comment was marked as spam.


/**
* Initiates an orderly shutdown in which preexisting calls continue but new calls are immediately
* cancelled.

This comment was marked as spam.

This comment was marked as spam.


@Override
public void shutdown() {
backgroundResources.shutdown();

This comment was marked as spam.

This comment was marked as spam.

// AUTO-GENERATED DOCUMENTATION AND CLASS
@Generated("by GAPIC v0.0.5")
@BetaApi
public class GrpcDlpServiceStub extends DlpServiceStub {

This comment was marked as spam.

This comment was marked as spam.

ListRootCategoriesRequest.getDefaultInstance()),
io.grpc.protobuf.ProtoUtils.marshaller(
ListRootCategoriesResponse.getDefaultInstance())));
private final BackgroundResource backgroundResources;

This comment was marked as spam.

This comment was marked as spam.


/**
* Constructs an instance of GrpcDlpServiceStub, using the given settings. This is protected so
* that it easy to make a subclass, but otherwise, the static factory methods should be preferred.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@pongad
Copy link
Contributor

pongad commented Jul 19, 2017

The code LGTM, assuming @shinfan 's concerns are addressed.

I'm not sure if this could cause a performance hit because we're wrapping more stuff. Though I'm not sure if we should block on this.

@garrettjonesgoogle
Copy link
Member Author

Addressed Shin's comments, PTAL @shinfan

@garrettjonesgoogle
Copy link
Member Author

@pongad I don't think the extra stack frame matters. I think what does matter is that gax was refactored a bit to make this happen, so allocation characteristics may have changed at that level. Like you say, I don't think possible performance changes should impact this PR; however, I think it might be worth doing a perf test before we do a release of google-cloud-java.

Copy link
Contributor

@shinfan shinfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pongad
Copy link
Contributor

pongad commented Jul 19, 2017

@garrettjonesgoogle I agree. That's what I meant; I just didn't think of this when looking at the gax PR. I'll work on measurement when I get cycles.

@garrettjonesgoogle garrettjonesgoogle changed the title [WIP] Refactoring to allow multiple transports Refactoring to allow multiple transports in GAPIC clients Jul 20, 2017
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d5575d8 on garrettjonesgoogle:master into ** on GoogleCloudPlatform:master**.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants