Skip to contentSkip to conversation

widening Messenger::create

DISCUSSION Matt W. Benjamin 3 participants 6 messages Jan 29, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

I'm looking at ways to pass potentially messenger-specific options through the Messenger factory. The immediate parameter I need to provide is the number of Accelio portals to set up (this should vary by Messenger instance), but I expect others will be needed in future. I don't think this fits cleanly on to the Policy mechanism, though I looked at that. I think I'd like to provide a generalized argument to the Messenger factory, which can do the right thing for a given Messenger (e.g., constructor).

Thanks,

Matt

Signature · 10 lines
Matt Benjamin
CohortFS, LLC.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://cohortfs.com

tel.  734-761-4689 
fax.  734-769-8938 
cel.  734-216-5309 
#1 lore raw
Quoted 8 lines · Matt W. Benjamin

Hi,

I'm looking at ways to pass potentially messenger-specific options through the Messenger factory. The immediate parameter I need to provide is the number of Accelio portals to set up (this should vary by Messenger instance), but I expect others will be needed in future. I don't think this fits cleanly on to the Policy mechanism, though I looked at that. I think I'd like to provide a generalized argument to the Messenger factory, which can do the right thing for a given Messenger (e.g., constructor).

In the past we've mostly gotten away with impl-specific config options. Is that not sufficient here? Because you need to pass different parameters to different instances maybe?

sage

#2 lore raw

Hi,

Quoted 11 lines · ----- "Sage Weil
Quoted 3 lines · Matt W. Benjamin

Hi,

I'm looking at ways to pass potentially messenger-specific options

through the Messenger factory.

Quoted 1 line

The immediate parameter I need to provide is the number of Accelio

portals to set up (this should

Quoted 1 line

vary by Messenger instance), but I expect others will be needed in

future. I don't think this fits

Quoted 1 line

cleanly on to the Policy mechanism, though I looked at that. I

think I'd like to provide a

Quoted 8 lines
Quoted 1 line

generalized argument to the Messenger factory, which can do the

right thing for a given Messenger

Quoted 1 line

(e.g., constructor).

In the past we've mostly gotten away with impl-specific config options.
Is that not sufficient here? Because you need to pass different parameters to different instances maybe?

Yes, exactly.

Quoted 2 lines

sage

Signature · 10 lines
Matt Benjamin
CohortFS, LLC.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://cohortfs.com

tel.  734-761-4689 
fax.  734-769-8938 
cel.  734-216-5309 
#3 lore raw

I think it may better that Messenger impl can introspect itself by "type", "policy", config and related infos?

Quoted 45 lines · Matt W. Benjamin

Hi,

Quoted 11 lines · ----- "Sage Weil
Quoted 3 lines · Matt W. Benjamin

Hi,

I'm looking at ways to pass potentially messenger-specific options

through the Messenger factory.

Quoted 1 line

The immediate parameter I need to provide is the number of Accelio

portals to set up (this should

Quoted 1 line

vary by Messenger instance), but I expect others will be needed in

future. I don't think this fits

Quoted 1 line

cleanly on to the Policy mechanism, though I looked at that. I

think I'd like to provide a

Quoted 8 lines
Quoted 1 line

generalized argument to the Messenger factory, which can do the

right thing for a given Messenger

Quoted 1 line

(e.g., constructor).

In the past we've mostly gotten away with impl-specific config options.
Is that not sufficient here? Because you need to pass different parameters to different instances maybe?

Yes, exactly.

Quoted 2 lines

sage

--
Matt Benjamin
CohortFS, LLC.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://cohortfs.com

tel.  734-761-4689
fax.  734-769-8938
cel.  734-216-5309

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
Best Regards,

Wheat
#4 lore raw

There is obvious overlap with policy, but policy is currently not well structured for this use.

Changing or extending the policy interface seemed plausible, but also seemed likely to run into more objections.

Matt

Quoted 66 lines · ----- "Haomai Wang

I think it may better that Messenger impl can introspect itself by "type", "policy", config and related infos?

Quoted 8 lines · Matt W. Benjamin

Hi,

Quoted 4 lines · ----- "Sage Weil
Quoted 3 lines · Matt W. Benjamin

Hi,

I'm looking at ways to pass potentially messenger-specific

options

Quoted 2 lines
Quoted 2 lines

through the Messenger factory.

Quoted 1 line

The immediate parameter I need to provide is the number of

Accelio

Quoted 2 lines
Quoted 2 lines

portals to set up (this should

Quoted 1 line

vary by Messenger instance), but I expect others will be needed

in

Quoted 24 lines
Quoted 11 lines

future. I don't think this fits

Quoted 1 line

cleanly on to the Policy mechanism, though I looked at that. I

think I'd like to provide a

Quoted 1 line

generalized argument to the Messenger factory, which can do the

right thing for a given Messenger

Quoted 1 line

(e.g., constructor).

In the past we've mostly gotten away with impl-specific config options.
Is that not sufficient here? Because you need to pass different parameters to different instances maybe?

Yes, exactly.

Quoted 2 lines

sage

--
Matt Benjamin
CohortFS, LLC.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

Quoted 7 lines

http://cohortfs.com

tel.  734-761-4689
fax.  734-769-8938
cel.  734-216-5309

--
To unsubscribe from this list: send the line "unsubscribe

ceph-devel" in

Quoted 2 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 8 lines
Best Regards,

Wheat
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel"
in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 10 lines
Matt Benjamin
CohortFS, LLC.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://cohortfs.com

tel.  734-761-4689 
fax.  734-769-8938 
cel.  734-216-5309 
#5 lore raw
In reply to Matt W. Benjamin
Quoted 16 lines · Matt W. Benjamin

Hi,

Quoted 12 lines · ----- "Sage Weil
Quoted 10 lines · Matt W. Benjamin

Hi,

I'm looking at ways to pass potentially messenger-specific options through the Messenger factory. The immediate parameter I need to provide is the number of Accelio portals to set up (this should vary by Messenger instance), but I expect others will be needed in future. I don't think this fits cleanly on to the Policy mechanism, though I looked at that. I think I'd like to provide a generalized argument to the Messenger factory, which can do the right thing for a given Messenger (e.g., constructor).

Quoted 6 lines
Quoted 4 lines

In the past we've mostly gotten away with impl-specific config options.
Is that not sufficient here? Because you need to pass different parameters to different instances maybe?

Yes, exactly.

Hmm, in that case I'd say if you can make it as generic as possible that's about all we can do that this point. Just a single arg now? We can easily expand the interface to a param struct later. (Or do that now if you prefer.. whatever works and looks reasonable!)

sage