public static class Controller2
Reference documentation and code samples for the Google Cloud Debugger v2 API class Controller2.
The Controller service provides the API for orchestrating a collection of debugger agents to perform debugging tasks. These agents are each attached to a process of an application which may include one or more replicas.
The debugger agents register with the Controller to identify the application
being debugged, the Debuggee. All agents that register with the same data,
represent the same Debuggee, and are assigned the same debuggee_id
.
The debugger agents call the Controller to retrieve the list of active
Breakpoints. Agents with the same debuggee_id
get the same breakpoints
list. An agent that can fulfill the breakpoint request updates the
Controller with the breakpoint result. The controller selects the first
result received and discards the rest of the results.
Agents that poll again for active breakpoints will no longer have
the completed breakpoint in the list and should remove that breakpoint from
their attached process.
The Controller service does not provide a way to retrieve the results of a completed breakpoint. This functionality is available using the Debugger service.
Namespace
Google.Cloud.Debugger.V2Assembly
Google.Cloud.Debugger.V2.dll
Methods
BindService(Controller2Base)
public static ServerServiceDefinition BindService(Controller2.Controller2Base serviceImpl)
Creates service definition that can be registered with a server
Parameter | |
---|---|
Name | Description |
serviceImpl | Controller2Controller2Base An object implementing the server-side handling logic. |
Returns | |
---|---|
Type | Description |
ServerServiceDefinition |
BindService(ServiceBinderBase, Controller2Base)
public static void BindService(ServiceBinderBase serviceBinder, Controller2.Controller2Base serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. Note: this method is part of an experimental API that can change or be removed without any prior notice.
Parameters | |
---|---|
Name | Description |
serviceBinder | ServiceBinderBase Service methods will be bound by calling |
serviceImpl | Controller2Controller2Base An object implementing the server-side handling logic. |