public interface Proxy extends Service, ProxyTypes
Proxy
interface provides methods Proxy configuration. This interface
was added in vSphere API 6.7.ProxyTypes.Config, ProxyTypes.Protocol, ProxyTypes.ServerStatus, ProxyTypes.TestResult
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.String protocol)
Deletes a proxy configuration for a specific protocol.
|
void |
delete(java.lang.String protocol,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes a proxy configuration for a specific protocol.
|
void |
delete(java.lang.String protocol,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes a proxy configuration for a specific protocol.
|
void |
delete(java.lang.String protocol,
InvocationConfig invocationConfig)
Deletes a proxy configuration for a specific protocol.
|
ProxyTypes.Config |
get(java.lang.String protocol)
Gets the proxy configuration for a specific protocol.
|
void |
get(java.lang.String protocol,
AsyncCallback<ProxyTypes.Config> asyncCallback)
Gets the proxy configuration for a specific protocol.
|
void |
get(java.lang.String protocol,
AsyncCallback<ProxyTypes.Config> asyncCallback,
InvocationConfig invocationConfig)
Gets the proxy configuration for a specific protocol.
|
ProxyTypes.Config |
get(java.lang.String protocol,
InvocationConfig invocationConfig)
Gets the proxy configuration for a specific protocol.
|
java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config> |
list()
Gets proxy configuration for all configured protocols.
|
void |
list(AsyncCallback<java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config>> asyncCallback)
Gets proxy configuration for all configured protocols.
|
void |
list(AsyncCallback<java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config>> asyncCallback,
InvocationConfig invocationConfig)
Gets proxy configuration for all configured protocols.
|
java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config> |
list(InvocationConfig invocationConfig)
Gets proxy configuration for all configured protocols.
|
void |
set(java.lang.String protocol,
ProxyTypes.Config config)
Configures which proxy server to use for the specified protocol.
|
void |
set(java.lang.String protocol,
ProxyTypes.Config config,
AsyncCallback<java.lang.Void> asyncCallback)
Configures which proxy server to use for the specified protocol.
|
void |
set(java.lang.String protocol,
ProxyTypes.Config config,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Configures which proxy server to use for the specified protocol.
|
void |
set(java.lang.String protocol,
ProxyTypes.Config config,
InvocationConfig invocationConfig)
Configures which proxy server to use for the specified protocol.
|
ProxyTypes.TestResult |
test(java.lang.String host,
java.lang.String protocol,
ProxyTypes.Config config)
Tests a proxy configuration by testing the connection to the proxy server and
test host.
|
void |
test(java.lang.String host,
java.lang.String protocol,
ProxyTypes.Config config,
AsyncCallback<ProxyTypes.TestResult> asyncCallback)
Tests a proxy configuration by testing the connection to the proxy server and
test host.
|
void |
test(java.lang.String host,
java.lang.String protocol,
ProxyTypes.Config config,
AsyncCallback<ProxyTypes.TestResult> asyncCallback,
InvocationConfig invocationConfig)
Tests a proxy configuration by testing the connection to the proxy server and
test host.
|
ProxyTypes.TestResult |
test(java.lang.String host,
java.lang.String protocol,
ProxyTypes.Config config,
InvocationConfig invocationConfig)
Tests a proxy configuration by testing the connection to the proxy server and
test host.
|
ProxyTypes.TestResult test(java.lang.String host, java.lang.String protocol, ProxyTypes.Config config)
Synchronous method overload. Result of the invocation will be reported as a method return value.
host
- A hostname, IPv4 or Ipv6 address.protocol
- Protocol whose proxy is to be tested.config
- Proxy configuration to test.Error
- Generic error.ProxyTypes.TestResult test(java.lang.String host, java.lang.String protocol, ProxyTypes.Config config, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
host
- A hostname, IPv4 or Ipv6 address.protocol
- Protocol whose proxy is to be tested.config
- Proxy configuration to test.invocationConfig
- Configuration for the method invocation.Error
- Generic error.void test(java.lang.String host, java.lang.String protocol, ProxyTypes.Config config, AsyncCallback<ProxyTypes.TestResult> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Status of proxy settings.
Operation Errors:
Error
- Generic error.
host
- A hostname, IPv4 or Ipv6 address.protocol
- Protocol whose proxy is to be tested.config
- Proxy configuration to test.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void test(java.lang.String host, java.lang.String protocol, ProxyTypes.Config config, AsyncCallback<ProxyTypes.TestResult> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Status of proxy settings.
Operation Errors:
Error
- Generic error.
host
- A hostname, IPv4 or Ipv6 address.protocol
- Protocol whose proxy is to be tested.config
- Proxy configuration to test.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void set(java.lang.String protocol, ProxyTypes.Config config)
Synchronous method overload. Result of the invocation will be reported as a method return value.
protocol
- The protocol for which proxy should be set.config
- Proxy configuration for the specific protocol.Error
- Generic error.void set(java.lang.String protocol, ProxyTypes.Config config, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
protocol
- The protocol for which proxy should be set.config
- Proxy configuration for the specific protocol.invocationConfig
- Configuration for the method invocation.Error
- Generic error.void set(java.lang.String protocol, ProxyTypes.Config config, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error.
protocol
- The protocol for which proxy should be set.config
- Proxy configuration for the specific protocol.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void set(java.lang.String protocol, ProxyTypes.Config config, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- Generic error.
protocol
- The protocol for which proxy should be set.config
- Proxy configuration for the specific protocol.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void delete(java.lang.String protocol)
Synchronous method overload. Result of the invocation will be reported as a method return value.
protocol
- ID whose proxy is to be deleted.Error
- Generic error.void delete(java.lang.String protocol, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
protocol
- ID whose proxy is to be deleted.invocationConfig
- Configuration for the method invocation.Error
- Generic error.void delete(java.lang.String protocol, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error.
protocol
- ID whose proxy is to be deleted.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void delete(java.lang.String protocol, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- Generic error.
protocol
- ID whose proxy is to be deleted.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error
- Generic error.java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config> list(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.Error
- Generic error.void list(AsyncCallback<java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Proxy configuration for all configured protocols.
Operation Errors:
Error
- Generic error.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config>> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Proxy configuration for all configured protocols.
Operation Errors:
Error
- Generic error.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.ProxyTypes.Config get(java.lang.String protocol)
Synchronous method overload. Result of the invocation will be reported as a method return value.
protocol
- The protocol whose proxy configuration is requested.Error
- Generic error.ProxyTypes.Config get(java.lang.String protocol, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
protocol
- The protocol whose proxy configuration is requested.invocationConfig
- Configuration for the method invocation.Error
- Generic error.void get(java.lang.String protocol, AsyncCallback<ProxyTypes.Config> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Proxy configuration for a specific protocol.
Operation Errors:
Error
- Generic error.
protocol
- The protocol whose proxy configuration is requested.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String protocol, AsyncCallback<ProxyTypes.Config> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Proxy configuration for a specific protocol.
Operation Errors:
Error
- Generic error.
protocol
- The protocol whose proxy configuration is requested.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.