Re: Cluster API
From: Chuck Haeberle (ChuckHaeberle_at_discussions.microsoft.com)
Date: 02/11/05
- Next message: ALI-R: "returning Datagrid selection to the caller form"
- Previous message: Willy Denoyette [MVP]: "Re: Writing a C++ DLL in C#"
- In reply to: Willy Denoyette [MVP]: "Re: Cluster API"
- Next in thread: leny ortega: "Re: Cluster API"
- Reply: leny ortega: "Re: Cluster API"
- Reply: Willy Denoyette [MVP]: "Re: Cluster API"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Feb 2005 11:29:05 -0800
Willy,
I would be very interested in seeing such a sample. What are the WMI
Cluster Classes you mention? I have a similar need - to monitor and restart
if needed a service on a cluster, and have not had much luck to date finding
manged objects to allow me to perform this simple task. I could always issue
shell commands, but thats just ... klugy. :)
Your help would be MOST appreciated!
Chuck Haeberle
"Willy Denoyette [MVP]" wrote:
> The management API's are also available through COM, that doesn't mean you
> can't use C# to access them, simply create a interop assembly from the
> automation server dll (msclus.dll) and use the API's from C#.
> However, the "automation server API's" don't support notifications, a much
> better "managed" option is to use System.Management namespace classes and
> the WMI cluster classes MSCluster_XXXX to build cluster management
> applications using C#.
>
> I can post a sample of the latter if you are interested.
>
> Willy.
>
> "Peter Ericsson" <peter.l.ericsson@ericsson.com> wrote in message
> news:252901c5061d$92caa720$a601280a@phx.gbl...
> > My only interest is to manage the cluster. Start and stop
> > resorces, get notifications when they fail, find out what
> > kind of resources are available in the cluster and so on.
> > I mean these kind of methods are available for windows
> > services but not for clustered resources.
> >
> > I'm not an COM expert so I'd rather stick to C#.
> >
> > /Peter
> >>-----Original Message-----
> >>There is a big difference between a wrapper and
> > implementing an API.
> >>The MS cluster API's (cluster resources) are implemented
> > using C/C++ , the
> >>reason is high reliability, efficiency and a low memory
> > footprint, something
> >>that managed code doesn't offer, as it was not designed
> > to be used as a
> >>system level platform.
> >>The cluster management API's are available as native
> > C/C++ API's and a set
> >>of COM interfaces, so if you only need to manage MS
> > cluster server, you
> >>could wrap the COM api.
> >>
> >>Willy.
> >>
> >>"Peter Ericsson" <peter.l.ericsson@ericsson.com> wrote
> > in message
> >>news:1df801c50517$2fbba320$a601280a@phx.gbl...
> >>> Does anyone know if Microsoft plans to implement an C#
> >>> (.net) API for MS Cluster like the one in C++?
> >>>
> >>> Or has someone else written a C# wrapper for the C++
> > API?
> >>
> >>
> >>.
> >>
>
>
>
- Next message: ALI-R: "returning Datagrid selection to the caller form"
- Previous message: Willy Denoyette [MVP]: "Re: Writing a C++ DLL in C#"
- In reply to: Willy Denoyette [MVP]: "Re: Cluster API"
- Next in thread: leny ortega: "Re: Cluster API"
- Reply: leny ortega: "Re: Cluster API"
- Reply: Willy Denoyette [MVP]: "Re: Cluster API"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|