super("ConsumerSupplierRelationType_External");
try {
//
// The roles involved in this type of relation are
/// between 1-3 consumer MBeans and 1-3 supplier MBeans.
//
addRoleInfo(new RoleInfo("Consumer", // role name
"sample.standard.Consumer", // class name
true, // role can be read
false, // role cannot be modified
1, // must be at least one
3, // no more than two
"Consumer Role Information" // description
));
addRoleInfo(new RoleInfo("Supplier", // role name
"sample.standard.Supplier", // class name
true, // role can be read
false, // role cannot be modified
1, // must be at least one
3, // no more than two
"Supplier Role Information" // description
));
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}