public interface Forwarding extends Service, ForwardingTypes
Forwarding
interface provides methods to manage forwarding of log
messages to remote logging servers. This interface was added in vSphere API 6.7.ForwardingTypes.Config, ForwardingTypes.ConnectionStatus, ForwardingTypes.Protocol
Modifier and Type | Method and Description |
---|---|
java.util.List<ForwardingTypes.Config> |
get()
Returns the configuration for forwarding log messages to remote logging servers.
|
void |
get(AsyncCallback<java.util.List<ForwardingTypes.Config>> asyncCallback)
Returns the configuration for forwarding log messages to remote logging servers.
|
void |
get(AsyncCallback<java.util.List<ForwardingTypes.Config>> asyncCallback,
InvocationConfig invocationConfig)
Returns the configuration for forwarding log messages to remote logging servers.
|
java.util.List<ForwardingTypes.Config> |
get(InvocationConfig invocationConfig)
Returns the configuration for forwarding log messages to remote logging servers.
|
void |
set(java.util.List<ForwardingTypes.Config> cfgList)
Sets the configuration for forwarding log messages to remote log servers.
|
void |
set(java.util.List<ForwardingTypes.Config> cfgList,
AsyncCallback<java.lang.Void> asyncCallback)
Sets the configuration for forwarding log messages to remote log servers.
|
void |
set(java.util.List<ForwardingTypes.Config> cfgList,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Sets the configuration for forwarding log messages to remote log servers.
|
void |
set(java.util.List<ForwardingTypes.Config> cfgList,
InvocationConfig invocationConfig)
Sets the configuration for forwarding log messages to remote log servers.
|
java.util.List<ForwardingTypes.ConnectionStatus> |
test(java.lang.Boolean sendTestMessage)
Validates the current log forwarding configuration by checking the liveness of
the remote machine and optionally sending a test diagnostic log message from the
appliance to all configured logging servers to allow manual end-to-end
validation.
|
void |
test(java.lang.Boolean sendTestMessage,
AsyncCallback<java.util.List<ForwardingTypes.ConnectionStatus>> asyncCallback)
Validates the current log forwarding configuration by checking the liveness of
the remote machine and optionally sending a test diagnostic log message from the
appliance to all configured logging servers to allow manual end-to-end
validation.
|
void |
test(java.lang.Boolean sendTestMessage,
AsyncCallback<java.util.List<ForwardingTypes.ConnectionStatus>> asyncCallback,
InvocationConfig invocationConfig)
Validates the current log forwarding configuration by checking the liveness of
the remote machine and optionally sending a test diagnostic log message from the
appliance to all configured logging servers to allow manual end-to-end
validation.
|
java.util.List<ForwardingTypes.ConnectionStatus> |
test(java.lang.Boolean sendTestMessage,
InvocationConfig invocationConfig)
Validates the current log forwarding configuration by checking the liveness of
the remote machine and optionally sending a test diagnostic log message from the
appliance to all configured logging servers to allow manual end-to-end
validation.
|
java.util.List<ForwardingTypes.ConnectionStatus> test(java.lang.Boolean sendTestMessage)
Synchronous method overload. Result of the invocation will be reported as a method return value.
sendTestMessage
- Flag specifying whether a default test message should be sent to the configured
logging servers.
If null
, no test message will be sent to the configured remote logging
servers.java.util.List<ForwardingTypes.ConnectionStatus> test(java.lang.Boolean sendTestMessage, 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.
sendTestMessage
- Flag specifying whether a default test message should be sent to the configured
logging servers.
If null
, no test message will be sent to the configured remote logging
servers.invocationConfig
- Configuration for the method invocation.void test(java.lang.Boolean sendTestMessage, AsyncCallback<java.util.List<ForwardingTypes.ConnectionStatus>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Information about the status of the connection to each of the remote logging
servers.
sendTestMessage
- Flag specifying whether a default test message should be sent to the configured
logging servers.
If null
, no test message will be sent to the configured remote logging
servers.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void test(java.lang.Boolean sendTestMessage, AsyncCallback<java.util.List<ForwardingTypes.ConnectionStatus>> 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 Result:
Information about the status of the connection to each of the remote logging
servers.
sendTestMessage
- Flag specifying whether a default test message should be sent to the configured
logging servers.
If null
, no test message will be sent to the configured remote logging
servers.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void set(java.util.List<ForwardingTypes.Config> cfgList)
Synchronous method overload. Result of the invocation will be reported as a method return value.
cfgList
- The cfgList is a list of Config structure that contains the log message
forwarding rules in terms of the host, port, protocol of the log message.InvalidArgument
- if an invalid configuration is provided.UnableToAllocateResource
- if the number of configurations exceeds the maximum number of supported
configurations.Error
- if there is any internal error during the execution of the operation.void set(java.util.List<ForwardingTypes.Config> cfgList, 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.
cfgList
- The cfgList is a list of Config structure that contains the log message
forwarding rules in terms of the host, port, protocol of the log message.invocationConfig
- Configuration for the method invocation.InvalidArgument
- if an invalid configuration is provided.UnableToAllocateResource
- if the number of configurations exceeds the maximum number of supported
configurations.Error
- if there is any internal error during the execution of the operation.void set(java.util.List<ForwardingTypes.Config> cfgList, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
InvalidArgument
- if an invalid configuration is provided.
UnableToAllocateResource
- if the number of configurations exceeds the maximum number of supported
configurations.
Error
- if there is any internal error during the execution of the operation.
cfgList
- The cfgList is a list of Config structure that contains the log message
forwarding rules in terms of the host, port, protocol of the log message.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void set(java.util.List<ForwardingTypes.Config> cfgList, 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:
InvalidArgument
- if an invalid configuration is provided.
UnableToAllocateResource
- if the number of configurations exceeds the maximum number of supported
configurations.
Error
- if there is any internal error during the execution of the operation.
cfgList
- The cfgList is a list of Config structure that contains the log message
forwarding rules in terms of the host, port, protocol of the log message.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.util.List<ForwardingTypes.Config> get()
Synchronous method overload. Result of the invocation will be reported as a method return value.
java.util.List<ForwardingTypes.Config> get(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.void get(AsyncCallback<java.util.List<ForwardingTypes.Config>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Information about the configuration for forwarding log messages to remote
logging servers.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(AsyncCallback<java.util.List<ForwardingTypes.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.
Operation Result:
Information about the configuration for forwarding log messages to remote
logging servers.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.