現在、vsphere Web サービスを作成しようとしています。必要なすべてのバックエンド クラスとその他のパーサーをエクスポートしました。アイデアは、おそらく GUI から情報を送受信するために DataProviderAdapter を拡張する必要があるということです。ここで問題が発生します。私はテクノロジーの経験がありません。残念ながら、VMware SDK のドキュメントはそれほど明確ではなく、私はまだ迷っています。アイデアは、GUI に従ってさまざまなデータを送受信する方法です。たとえば、GUI は、ホストに関する情報を表示し、その要求を私に送信し、何をどのように行う必要があるかを示します。これまでに行ったことの例を次に示します。
パブリック抽象クラス DataObject は DataProviderAdapter を実装します {
class ResourceType implements ResourceTypeResolver
{
/**
* A method parses a given URI and return a String containing the type of
* custom object to which the URI pertains. For example,
* for a URI that referred to a given custom DataObject object,
* the getResourceType() method must return the String “samples:DataObject”.
*/
@Override
public String getResourceType(URI uri)
{
return null;
}
/**
* The getServerGuid() method parsed a given URI and returns a String containing
* the server global unique identifier for the URI target object, if any.
*/
@Override
public String getServerGuid(URI uri)
{
return null;
}
public DataObject(DataService dataService, ResourceTypeResolverRegistry typeResolverRegistry)
{
if (null == dataService || null == typeResolverRegistry)
{
throw new NullPointerException("Some of the arguments is null!");
}
this.dataService = dataService;
try
{
}catch(UnsupportedOperationException unsupportedOperation)
{
logger.warning("ModelObjectUriResolver registration failed:" + unsupportedOperation.getMessage());
}
}
あなたの誰かが経験を持っていて、例を共有できるなら、私は本当に感謝しています. 乾杯!