1) How to create new child resource in discovery component. I got the Server through my discovery component, i need one more child in that server.
2) How to specify resourcetype explicitly(server or service). i know only ResourceComponent.getResourceType().
I attempt like this. but i dont know how to do it and fully. i wrote in this in my discovery component.
public CreateResourceReport createResource(CreateResourceReport report)
CreateResourceReport reportsdetails=new CreateResourceReport(resourcename,newresourcetype,pluginconfiguration,resourceconfiguration,packagedetails);
Take a look at some existing plugin source code. I don't think you want to use 'CreateResourceReport' ordinarily.