public class SourceStub extends com.vmware.vapi.internal.bindings.Stub implements Source
Source
API service.
WARNING: Internal API, subject to change in future versions.
SourceTypes.CreateSpec, SourceTypes.Info
RESOURCE_TYPE
Constructor and Description |
---|
SourceStub(ApiProvider apiProvider,
StubConfigurationBase config) |
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 metamodel metadata source from the infrastructure.
|
void |
delete(String sourceId,
AsyncCallback<Void> asyncCallback)
Deletes an existing metamodel metadata source from the infrastructure.
|
void |
delete(String sourceId,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes an existing metamodel metadata source from the infrastructure.
|
void |
delete(String sourceId,
InvocationConfig invocationConfig)
Deletes an existing metamodel 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 metamodel 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 metamodel 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 metamodel metadata from all the metadata sources or of a particular
metadata source if
sourceId is specified. |
void |
reload(String sourceId,
InvocationConfig invocationConfig)
Reloads the metamodel metadata from all the metadata sources or of a particular
metadata source if
sourceId is specified. |
public SourceStub(ApiProvider apiProvider, StubConfigurationBase config)
public void create(String sourceId, SourceTypes.CreateSpec spec)
Source
com.vmware.vapi.metadata.metamodel
package.
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void create(String sourceId, SourceTypes.CreateSpec spec, InvocationConfig invocationConfig)
Source
com.vmware.vapi.metadata.metamodel
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.
public void create(String sourceId, SourceTypes.CreateSpec spec, AsyncCallback<Void> asyncCallback)
Source
com.vmware.vapi.metadata.metamodel
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 the 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 metamodel 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.metamodel
package.
NotFound
- if the file specified in CreateSpec#filepath
does not exist.
create
in interface Source
sourceId
- metadata source identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source
.spec
- create specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(String sourceId, SourceTypes.CreateSpec spec, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
Source
com.vmware.vapi.metadata.metamodel
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 the 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 metamodel 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.metamodel
package.
NotFound
- if the file specified in CreateSpec#filepath
does not exist.
create
in interface Source
sourceId
- metadata source identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source
.spec
- create specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void delete(String sourceId)
Source
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(String sourceId, InvocationConfig invocationConfig)
Source
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void delete(String sourceId, AsyncCallback<Void> asyncCallback)
Source
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the metadata source associated with sourceId
is not found.
public void delete(String sourceId, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
Source
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 associated with sourceId
is not found.
delete
in interface Source
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public SourceTypes.Info get(String sourceId)
Source
sourceId
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Source
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source
.SourceTypes.Info
instance that
corresponds to sourceId
public SourceTypes.Info get(String sourceId, InvocationConfig invocationConfig)
Source
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.
get
in interface Source
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source
.invocationConfig
- Configuration for the method invocation.SourceTypes.Info
instance that
corresponds to sourceId
public void get(String sourceId, AsyncCallback<SourceTypes.Info> asyncCallback)
Source
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 associated with sourceId
is not found.
public void get(String sourceId, AsyncCallback<SourceTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Source
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 associated with sourceId
is not found.
get
in interface Source
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public List<String> list()
Source
Synchronous method overload. Result of the invocation will be reported as a method return value.
public List<String> list(InvocationConfig invocationConfig)
Source
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void list(AsyncCallback<List<String>> asyncCallback)
Source
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.metamodel.source
.
public void list(AsyncCallback<List<String>> asyncCallback, InvocationConfig invocationConfig)
Source
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.metamodel.source
.
public void reload(String sourceId)
Source
sourceId
is specified.
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void reload(String sourceId, InvocationConfig invocationConfig)
Source
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.
reload
in interface Source
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source
.
If unspecified, all the metadata sources are reloaded.invocationConfig
- Configuration for the method invocation.public void reload(String sourceId, AsyncCallback<Void> asyncCallback)
Source
sourceId
is specified.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the metadata source associated with sourceId
is not found.
reload
in interface Source
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source
.
If unspecified, all the metadata sources are reloaded.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void reload(String sourceId, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
Source
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 associated with sourceId
is not found.
reload
in interface Source
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.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.public String fingerprint(String sourceId)
Source
sourceId
is specified.
Synchronous method overload. Result of the invocation will be reported as a method return value.
fingerprint
in interface Source
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source
.
If unspecified, the fingerprint of all the metadata sources is returned.public String fingerprint(String sourceId, InvocationConfig invocationConfig)
Source
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.
fingerprint
in interface Source
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source
.
If unspecified, the fingerprint of all the metadata sources is returned.invocationConfig
- Configuration for the method invocation.public void fingerprint(String sourceId, AsyncCallback<String> asyncCallback)
Source
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 associated with sourceId
is not found.
fingerprint
in interface Source
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source
.
If unspecified, the fingerprint of all the metadata sources is returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void fingerprint(String sourceId, AsyncCallback<String> asyncCallback, InvocationConfig invocationConfig)
Source
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 associated with sourceId
is not found.
fingerprint
in interface Source
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.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.