//
//  FBClusterMember.h
//  Client
//
//  Created by Peter Haff on Wed Jun 30 2004.
//  Copyright (c) 2004 FrontBase, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

// Implements the type MemberStatus (not FBCMemberStatus!)

@interface FBClusterMember : NSObject {
   NSDictionary* memberStatus;

   NSString* hostId;
   NSString* dbId;
   NSString* status;
   NSString* uniqueId;
   NSString* transaction;
   BOOL      isRunning;
   BOOL      majority;
   BOOL      readonly;

   NSArray* staticMembers;
   NSArray* connections;
}

+ (FBClusterMember*) initWithStatus : (NSDictionary*) aMemberStatus;

- (NSString*) hostName;
- (NSString*) databaseName;
- (NSString*) status;
- (NSString*) uniqueId;
- (NSString*) transaction;
- (BOOL)      isRunning;
- (BOOL)      majority;
- (BOOL)      readonly;

- (NSArray*) staticMembers;
- (NSArray*) connections;

@end
