Search in sources :

Example 1 with GemFireMemberStatus

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;
}
Also used : InternalCache(org.apache.geode.internal.cache.InternalCache) GemFireMemberStatus(org.apache.geode.admin.GemFireMemberStatus) DistributedSystem(org.apache.geode.distributed.DistributedSystem) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 GemFireMemberStatus (org.apache.geode.admin.GemFireMemberStatus)1 DistributedSystem (org.apache.geode.distributed.DistributedSystem)1 InternalCache (org.apache.geode.internal.cache.InternalCache)1