use of org.apache.geode.admin.GemFireMemberStatus in project geode by apache.
the class RefreshMemberSnapshotResponse method create.
/**
* Returns a {@code FetchSysCfgResponse} that will be returned to the specified recipient. The
* message will contains a copy of the local manager's config.
*/
public static RefreshMemberSnapshotResponse create(DistributionManager dm, InternalDistributedMember recipient) {
RefreshMemberSnapshotResponse m = new RefreshMemberSnapshotResponse();
m.setRecipient(recipient);
try {
DistributedSystem sys = dm.getSystem();
InternalCache c = (InternalCache) CacheFactory.getInstance(sys);
m.snapshot = new GemFireMemberStatus(c);
} catch (Exception ignore) {
m.snapshot = null;
}
return m;
}
Aggregations