[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cosmos-dev] How to add values for registration / query processing to the map
|
Hubert / Sheldon / Anyone
I have an internal MDR that publishes its query / registration services with URLs of the following form:
http://localhost:8080/axis/services/Query
http://localhost:8080/axis/services/Registration
My goal: I am trying to execute CMDBf queries against this internal MDR using the COSMOS i9 webUI
I ran the MDR toolkit wizard in i9 and generated the code shown snipper shown below. Some questions:
1. Which methods are a must fill?
2. Should I be execute the generated code WITHOUT making any changes? Obviously, nothing should happen..
3. How do I map the query / registration service URLs given above to what needs to be filled in the methods below? Is there any code sample available for this purpose?
Thanks,
Jimmy
=========================================Generated Code ========================================
package com.ca.myOwnMdr;
import org.eclipse.cosmos.dc.mdr.registration.AbstractFederatingCMDB;
import org.eclipse.cosmos.me.management.annotations.ManagedResource;
import org.eclipse.cosmos.dc.cmdbf.services.query.service.IQueryHandlerFactory;
import org.eclipse.cosmos.dc.cmdbf.services.common.INotificationHandlerFactory;
@ManagedResource
public class myMdr extends AbstractFederatingCMDB {
public myMdr() {
java.util.Map<String, Object> init = new java.util.Hashtable<String, Object>();
// TODO add values required for query or registration processing to the map
getQueryOperation().initialize(init);
getRegistrationOperation().initialize(init);
getDeregistrationOperation().initialize(init);
}
@Override
public IQueryHandlerFactory getQueryHandlerFactory() {
// TODO implement query handler factory
return null;
}
@Override
public INotificationHandlerFactory getNotificationHandlerFactory() {
// TODO implement notification handler factory
return null;
}
}