public interface Source extends Service, SourceTypes
Source
interface provides methods to manage the sources of command
line interface (CLI) metadata information.
The interface definition language infrastructure provides tools to generate various kinds of metadata in JSON format from the interface definition files and additional properties files. One of the generated files contains CLI information.
A CLI metadata file contains information about one component element. When a CLI metadata file is added as a source, each source contributes only one component element's metadata.
CLI metadata can also be discovered from a remote server that
supports the CLI metadata services (see com.vmware.vapi.metadata.cli
)
package. Since multiple components can be registered with a single metadata
server, when a remote server is registered as a source, that source can
contribute more than one component.
SourceTypes.CreateSpec, SourceTypes.Info
Modifier and Type | Method and Description |
---|---|
void |
create(String sourceId,
SourceTypes.CreateSpec spec)
Creates a new metadata source.
|
void |
create(String sourceId,
SourceTypes.CreateSpec spec,
AsyncCallback<Void> asyncCallback)
Creates a new metadata source.
|
void |
create(String sourceId,
SourceTypes.CreateSpec spec,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Creates a new metadata source.
|
void |
create(String sourceId,
SourceTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a new metadata source.
|
void |
delete(String sourceId)
Deletes an existing CLI metadata source from the infrastructure.
|
void |
delete(String sourceId,
AsyncCallback<Void> asyncCallback)
Deletes an existing CLI metadata source from the infrastructure.
|
void |
delete(String sourceId,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes an existing CLI metadata source from the infrastructure.
|
void |
delete(String sourceId,
InvocationConfig invocationConfig)
Deletes an existing CLI metadata source from the infrastructure.
|
String |
fingerprint(String sourceId)
Returns the aggregate fingerprint of metadata from all the metadata sources or
from a particular metadata source if
sourceId is specified. |
void |
fingerprint(String sourceId,
AsyncCallback<String> asyncCallback)
Returns the aggregate fingerprint of metadata from all the metadata sources or
from a particular metadata source if
sourceId is specified. |
void |
fingerprint(String sourceId,
AsyncCallback<String> asyncCallback,
InvocationConfig invocationConfig)
Returns the aggregate fingerprint of metadata from all the metadata sources or
from a particular metadata source if
sourceId is specified. |
String |
fingerprint(String sourceId,
InvocationConfig invocationConfig)
Returns the aggregate fingerprint of metadata from all the metadata sources or
from a particular metadata source if
sourceId is specified. |
SourceTypes.Info |
get(String sourceId)
Retrieves information about the metadata source corresponding to
sourceId . |
void |
get(String sourceId,
AsyncCallback<SourceTypes.Info> asyncCallback)
Retrieves information about the metadata source corresponding to
sourceId . |
void |
get(String sourceId,
AsyncCallback<SourceTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves information about the metadata source corresponding to
sourceId . |
SourceTypes.Info |
get(String sourceId,
InvocationConfig invocationConfig)
Retrieves information about the metadata source corresponding to
sourceId . |
List<String> |
list()
Returns the identifiers of the metadata sources currently registered with the
infrastructure.
|
void |
list(AsyncCallback<List<String>> asyncCallback)
Returns the identifiers of the metadata sources currently registered with the
infrastructure.
|
void |
list(AsyncCallback<List<String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifiers of the metadata sources currently registered with the
infrastructure.
|
List<String> |
list(InvocationConfig invocationConfig)
Returns the identifiers of the metadata sources currently registered with the
infrastructure.
|
void |
reload(String sourceId)
Reloads the CLI metadata from all the metadata sources or of a particular
metadata source if
sourceId is specified. |
void |
reload(String sourceId,
AsyncCallback<Void> asyncCallback)
Reloads the CLI metadata from all the metadata sources or of a particular
metadata source if
sourceId is specified. |
void |
reload(String sourceId,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Reloads the CLI metadata from all the metadata sources or of a particular
metadata source if
sourceId is specified. |
void |
reload(String sourceId,
InvocationConfig invocationConfig)
Reloads the CLI metadata from all the metadata sources or of a particular
metadata source if
sourceId is specified. |
void create(String sourceId, SourceTypes.CreateSpec spec)
com.vmware.vapi.metadata.cli
package.
Synchronous method overload. Result of the invocation will be reported as a method return value.
sourceId
- metadata source identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.spec
- create specification.AlreadyExists
- If the metadata source identifier is already registered with the infrastructure.InvalidArgument
- If type of the source specified in CreateSpec#type
is invalid.InvalidArgument
- If the file specified in CreateSpec#filepath
is not a valid JSON file or
if the format of the CLI metadata in the JSON file is invalid.InvalidArgument
- If the URI specified in CreateSpec#address
is unreachable or if there is
a transport protocol or message protocol mismatch between the client and the
server or if the remote server do not have interfaces present in com.vmware.vapi.metadata.cli
package.NotFound
- If the file specified in CreateSpec#filepath
does not exist.void create(String sourceId, SourceTypes.CreateSpec spec, InvocationConfig invocationConfig)
com.vmware.vapi.metadata.cli
package.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
sourceId
- metadata source identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.spec
- create specification.invocationConfig
- Configuration for the method invocation.AlreadyExists
- If the metadata source identifier is already registered with the infrastructure.InvalidArgument
- If type of the source specified in CreateSpec#type
is invalid.InvalidArgument
- If the file specified in CreateSpec#filepath
is not a valid JSON file or
if the format of the CLI metadata in the JSON file is invalid.InvalidArgument
- If the URI specified in CreateSpec#address
is unreachable or if there is
a transport protocol or message protocol mismatch between the client and the
server or if the remote server do not have interfaces present in com.vmware.vapi.metadata.cli
package.NotFound
- If the file specified in CreateSpec#filepath
does not exist.void create(String sourceId, SourceTypes.CreateSpec spec, AsyncCallback<Void> asyncCallback)
com.vmware.vapi.metadata.cli
package.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
AlreadyExists
- If the metadata source identifier is already registered with the infrastructure.
InvalidArgument
- If type of the source specified in CreateSpec#type
is invalid.
InvalidArgument
- If the file specified in CreateSpec#filepath
is not a valid JSON file or
if the format of the CLI metadata in the JSON file is invalid.
InvalidArgument
- If the URI specified in CreateSpec#address
is unreachable or if there is
a transport protocol or message protocol mismatch between the client and the
server or if the remote server do not have interfaces present in com.vmware.vapi.metadata.cli
package.
NotFound
- If the file specified in CreateSpec#filepath
does not exist.
sourceId
- metadata source identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.spec
- create specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(String sourceId, SourceTypes.CreateSpec spec, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
com.vmware.vapi.metadata.cli
package.
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:
AlreadyExists
- If the metadata source identifier is already registered with the infrastructure.
InvalidArgument
- If type of the source specified in CreateSpec#type
is invalid.
InvalidArgument
- If the file specified in CreateSpec#filepath
is not a valid JSON file or
if the format of the CLI metadata in the JSON file is invalid.
InvalidArgument
- If the URI specified in CreateSpec#address
is unreachable or if there is
a transport protocol or message protocol mismatch between the client and the
server or if the remote server do not have interfaces present in com.vmware.vapi.metadata.cli
package.
NotFound
- If the file specified in CreateSpec#filepath
does not exist.
sourceId
- metadata source identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.spec
- create specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void delete(String sourceId)
Synchronous method overload. Result of the invocation will be reported as a method return value.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.NotFound
- If the metadata source identifier is not found.void delete(String sourceId, 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.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.invocationConfig
- Configuration for the method invocation.NotFound
- If the metadata source identifier is not found.void delete(String sourceId, AsyncCallback<Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- If the metadata source identifier is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void delete(String sourceId, AsyncCallback<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:
NotFound
- If the metadata source identifier is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.SourceTypes.Info get(String sourceId)
sourceId
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.SourceTypes.Info
instance that
corresponds to sourceId
NotFound
- If the metadata source identifier is not found.SourceTypes.Info get(String sourceId, InvocationConfig invocationConfig)
sourceId
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.invocationConfig
- Configuration for the method invocation.SourceTypes.Info
instance that
corresponds to sourceId
NotFound
- If the metadata source identifier is not found.void get(String sourceId, AsyncCallback<SourceTypes.Info> asyncCallback)
sourceId
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The SourceTypes.Info
instance that
corresponds to sourceId
Operation Errors:
NotFound
- If the metadata source identifier is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(String sourceId, AsyncCallback<SourceTypes.Info> asyncCallback, InvocationConfig invocationConfig)
sourceId
.
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:
The SourceTypes.Info
instance that
corresponds to sourceId
Operation Errors:
NotFound
- If the metadata source identifier is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.List<String> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
com.vmware.vapi.metadata.source
.List<String> 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.com.vmware.vapi.metadata.source
.void list(AsyncCallback<List<String>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The list of identifiers for metadata sources currently registered.
The return value will contain identifiers for the resource type: com.vmware.vapi.metadata.source
.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<List<String>> 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:
The list of identifiers for metadata sources currently registered.
The return value will contain identifiers for the resource type: com.vmware.vapi.metadata.source
.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void reload(String sourceId)
sourceId
is specified.
Synchronous method overload. Result of the invocation will be reported as a method return value.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.
If unspecified, all the metadata sources are reloaded.NotFound
- If the metadata source identifier is not found.void reload(String sourceId, InvocationConfig invocationConfig)
sourceId
is specified.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.
If unspecified, all the metadata sources are reloaded.invocationConfig
- Configuration for the method invocation.NotFound
- If the metadata source identifier is not found.void reload(String sourceId, AsyncCallback<Void> asyncCallback)
sourceId
is specified.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- If the metadata source identifier is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.
If unspecified, all the metadata sources are reloaded.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void reload(String sourceId, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
sourceId
is specified.
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:
NotFound
- If the metadata source identifier is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.
If unspecified, all the metadata sources are reloaded.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.String fingerprint(String sourceId)
sourceId
is specified.
Synchronous method overload. Result of the invocation will be reported as a method return value.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.
If unspecified, the fingerprint of all the metadata sources is returned.NotFound
- If the metadata source identifier is not found.String fingerprint(String sourceId, InvocationConfig invocationConfig)
sourceId
is specified.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.
If unspecified, the fingerprint of all the metadata sources is returned.invocationConfig
- Configuration for the method invocation.NotFound
- If the metadata source identifier is not found.void fingerprint(String sourceId, AsyncCallback<String> asyncCallback)
sourceId
is specified.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Aggregate fingerprint of all the metadata sources or of a particular metadata
source.
Operation Errors:
NotFound
- If the metadata source identifier is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.
If unspecified, the fingerprint of all the metadata sources is returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void fingerprint(String sourceId, AsyncCallback<String> asyncCallback, InvocationConfig invocationConfig)
sourceId
is specified.
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:
Aggregate fingerprint of all the metadata sources or of a particular metadata
source.
Operation Errors:
NotFound
- If the metadata source identifier is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source
.
If unspecified, the fingerprint of all the metadata sources is returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.Copyright © 2015. All Rights Reserved.