BlockMgmt Class Reference

#include <BlockMgmt.h>

Public Member Functions

 BlockMgmt (String host, Uint16 port, String smisNameSpace, String userName, String password)
 ~BlockMgmt ()
void createLun (String storagePoolName, String name, Uint64 size)
void createInit (String name, String id, String type)
void deleteInit (String id)
void createSnapShot (String sourceLun, String destStoragePool, String destName)
void deleteLun (String name)
void resizeLun (String name, Uint64 size)
Array< String > getStoragePools ()
Array< String > getLuns ()
Array< String > getInitiators ()
void mapLun (String initiatorID, String lunName)
void unmapLun (String initiatorID, String lunName)
void jobStatus (String id)

Detailed Description

A simple class used to learn about SMI-S utilizing the openpegasus library. Released in hopes that other may benefit.

Definition at line 33 of file BlockMgmt.h.


Constructor & Destructor Documentation

BlockMgmt ( String  host,
Uint16  port,
String  smisNameSpace,
String  userName,
String  password 
)

Class constructor. Once this completes we have a connection to the SMI-S agent/proxy.

Parameters:
host a string representing the IP or host of SMI-S agent
port The server port to connect too.
smisNameSpace The SMI-S namespace to use.
userName User name when using authentication.
password Plain text password.

Definition at line 29 of file BlockMgmt.cpp.

~BlockMgmt (  ) 

Class destructor which closes the connection to the SMI-S agent/proxy

Definition at line 35 of file BlockMgmt.cpp.


Member Function Documentation

void createInit ( String  name,
String  id,
String  type 
)

Creates an initiator to reference and use.

Parameters:
name User defined name
id Initiator id
type Type of id [WWN|IQN]
Exceptions:
Exception 

Definition at line 182 of file BlockMgmt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void createLun ( String  storagePoolName,
String  name,
Uint64  size 
)

Creates a logical unit.

Parameters:
storagePoolName Name of storage pool to allocate lun from.
name Name to be given to new lun.
size Size of the new Lun
Exceptions:
Exception 

Definition at line 153 of file BlockMgmt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void createSnapShot ( String  sourceLun,
String  destStoragePool,
String  destName 
)

Creates a snapshot of a lun (point in time copy)

Parameters:
sourceLun Name of lun to snapshot.
destStoragePool Storage pool to create snapshot from.
destName Name of new snapshot.
Exceptions:
Exception 

Definition at line 215 of file BlockMgmt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void deleteInit ( String  id  ) 

Deletes an initiator.

Parameters:
id Initiator ID
Exceptions:
Exception 

Definition at line 201 of file BlockMgmt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void deleteLun ( String  name  ) 

Deletes a logical unit.

Parameters:
name Name of lun to delete.
Exceptions:
Exception 

Definition at line 253 of file BlockMgmt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Array< String > getInitiators (  ) 

Returns an array of Strings which are the ID(s) of the initiators

Returns:
An Array<String> of initiator IDs
Exceptions:
Exception 

Definition at line 45 of file BlockMgmt.cpp.

Here is the caller graph for this function:

Array< String > getLuns (  ) 

Returns an array of Strings which are the names of the logical units

Returns:
An Array<String>
Exceptions:
Exception 

Definition at line 481 of file BlockMgmt.cpp.

Here is the caller graph for this function:

Array< String > getStoragePools (  ) 

Returns an array of Strings which are the names of the storage pools.

Returns:
An Array<String>
Exceptions:
Exception 

Definition at line 40 of file BlockMgmt.cpp.

Here is the caller graph for this function:

void jobStatus ( String  id  ) 

Definition at line 310 of file BlockMgmt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void mapLun ( String  initiatorID,
String  lunName 
)

Grants read/write access for a lun to the specified initiator.

Parameters:
initiatorID The initiator ID
lunName The lun name
Exceptions:
Exception 

Definition at line 83 of file BlockMgmt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void resizeLun ( String  name,
Uint64  size 
)

Resizes an existing Lun.

Parameters:
name Name of lun to resize
size New size
Exceptions:
Exception 

Definition at line 237 of file BlockMgmt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void unmapLun ( String  initiatorID,
String  lunName 
)

Removes acces for a lun to the specified initiator

Parameters:
initiatorID The initiator ID
lunName The lun name
Exceptions:
Exception 

Definition at line 110 of file BlockMgmt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Generated on 9 Jul 2015 for libStorageMgmt by  doxygen 1.6.1