Index

DKResourceMgrDefICM

Purpose:

Use this class to represent a resource manager in your program. This class provides the facilities to manage the details of a resource manager. This object can be used with DKRMConfigurationMgmtICM to add, update, delete and list resource managers in the ICM datastore.

Since: Version 8

Class summary:

class DKEXPORT DKResourceMgrDefICM
 {
   public:
     DKResourceMgrDefICM();
     DKResourceMgrDefICM(const DKResourceMgrDefICM& rmObj);
     virtual ~DKResourceMgrDefICM();
     DKResourceMgrDefICM(const char* name);
     void setName(const char* name);
     DKString getName();
     void setPlatform(short platform);
     short getPlatform();
     DKString getUserid();
     void setLastChanged(const char* lastChanged);
     DKString getLastChanged();
     void setFlags (short flags);
     short getFlags();
     void setINETAddress(const char* inetAddr);
     DKString getINETAddress();
     void setRMCode(short rmCode);
     short getRMCode();
     void setTokenDuration(long duration);
     long getTokenDuration();
     dkCollection* getAccessType();
     void setLANCacheEnabled(DKBoolean isLANCache);
     DKBoolean isLANCacheEnabled();
     void addAccessType(DKAccessTypeDef* accessTypeObj);
     void removeAccessType(const char* name);
     void setAdminDomain(DKAdminDomainDefICM* domain);
     DKAdminDomainDefICM* getAdminDomain();
     DKString getRMUserid();
     void setRMUserid(const char* uid);
     void setRMPasswd(const char* pwd);
 };

Members:

Constructors and destructor
DKResourceMgrDefICM();

Default constructor.

DKResourceMgrDefICM(const char* name);

Constructs a new DKResourceMgrDefICM object with a given name as the resource manager name. Parameters: name - name of the resource manager

DKResourceMgrDefICM(const DKResourceMgrDefICM& rmObj);

Copy constructor for the resource manager object related to the ICM datastore. Parameters: rmObj - resource manager object.

virtual ~DKResourceMgrDefICM();

Destructor for this object.

Member functions:

setName
Sets the name of the resource manager. The name of the resource manager should be unique for a given ICM datastore. Parameters: name - name of the resource manager. The name can be up to 128 characters
void setName(const char* name);

getName
Gets the name of this resource manager. Returns: name of the resource manager
DKString getName() const;

setPlatform
Sets the operating system of the resource manager. The value specified here should be one of the following:
  • 0 - Windows
  • 1 - AIX
  • 2 - Solaris
  • 3 - OS/390

Parameters: platform - operating system of the machine on which the resource manager runs

void setPlatform(short Platform);

getPlatform
Gets the operating system platform for this resource manager. Returns: the operating system platform of this resource manager
short getPlatform()

getUserId
Gets the userid of the administrator who created or updated this resource manager last. Returns: the userid of the administrator who added this resource manager. This string can be up to 32 characters long.
DKString getUserId() const;

setLastChanged
Sets the time stamp when this resource manager was last updated. Parameters: lastChanged -the time stamp when this resource manager was last updated
void setLastChanged(const char* lastChanged);

getLastChanged
Gets the time stamp when this resource manager was last updated. Returns: the last changed timetime stamp when this resource manager was last updated. The format of the time stamp is as follows: YYYY-MM-DD-HH.MM.SS.milliseconds
DKString getLastChanged(); 

setFlags
Sets the properties of the resource manager. Parameters: flags - property of the resource manager
void setFlags(short flags);

getFlags
Gets the resource properties. Returns: The property of resource manager
short getFlags()

setINETAddress
Sets the host name or IP address of machine on which this resource manager runs. The host name can be up to 128 characters. Parameters: inetAddr - The host name or the IP address of the resource manager
void setINETAddress(const char* inetAddr);

getINETAddress
Gets host name or the IP address of the machine on which this resource manager runs. Returns: host name or the IP address this resource manager
DKString getINETAddress() const;

setRMCode
Sets the resource manager code. Parameters: rmCode - resource manager code
void setRMCode(short rmCode);

getRMCode
Gets the internal code or id for this resource manager. This code is assigned by the ICM datastore for this resource manager. Returns: The internal code or id for this resource manager
short getRMCode() const;

setTokenDuration
Sets the token duration for this resource manager. Parameters: duration - token duration
void setTokenDuration (long duration);

getTokenDuration
Gets the token duration for this resource manager. Returns: token duration
long getTokenDuration();

getAccessType
Gets a collection of resource manager access protocol that is supported by this resource manager. Returns: a collection of DKAccessTypeDef objects that are supported by this resource manager
dkCollection* getAccessType();

setLANCacheEnabled
Enables the LAN cache for this resource manager. Parameters: isLANCache - true if LAN Cache is enabled, false otherwise
void setLANCacheEnabled(DKBoolean isLANCache);

isLANCacheEnabled
Checks to see if LAN cache is enabled for this resource manager. Returns: true if LAN cache is enabled for this resource manager, false otherwise
DKBoolean isLANCacheEnabled();

addAccessType
Adds an access protocol for this resource manager. Parameters: accessTypeObj - DKAccessTypeDef - access protocol object to be added to this resource manager
void addAccessType(DKAccessTypeDef* accessTypeObj);

removeAccessType
Removes an access protocol by name. Parameters: name - name of the access protocol to be removed
void removeAccessType(const char* name);

setAdminDomain
Sets the administrative domain to which this resource manager belongs to. Parameters: domain - the administrative domain to which this resource manager belongs to
void setAdminDomain(DKAdminDomainDefICM* domain);

getAdminDomain
Gets the administrative domain to which this resource manager belongs to. Returns: domain that this ACL belongs to
DKAdminDomainDefICM* getAdminDomain();

getRMUserid
Gets the userid that can be used to logon to this resource manager for SMS administration. Returns: The userid that can be used to logon on to this resource manager for SMS
DKString getRMUserid();

setRMUserid
Sets the SMS administative userid for this resource manager. Parameters: uid - resource manager SMS administrative userid. This userid can be up to 32 characters If you are updating the SMS administative userid please make sure that you are also updating this userid in the Resource Manager. Use the System Administration Client to do this.
void setRMUserid (const char* uid);

setRMPasswd
Sets the password for the SMS administative userid who can administer this resource manager. Parameters: pwd - SMS administer's password for this resource manager
void setRMPasswd (const char* pwd);

(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.