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.
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:
-
Definition at line 182 of file BlockMgmt.cpp.
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:
-
Definition at line 153 of file BlockMgmt.cpp.
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:
-
Definition at line 215 of file BlockMgmt.cpp.
void deleteInit |
( |
String |
id |
) |
|
Deletes an initiator.
- Parameters:
-
- Exceptions:
-
Definition at line 201 of file BlockMgmt.cpp.
void deleteLun |
( |
String |
name |
) |
|
Deletes a logical unit.
- Parameters:
-
| name | Name of lun to delete. |
- Exceptions:
-
Definition at line 253 of file BlockMgmt.cpp.
Array< String > getInitiators |
( |
|
) |
|
Returns an array of Strings which are the ID(s) of the initiators
- Returns:
- An Array<String> of initiator IDs
- Exceptions:
-
Definition at line 45 of file BlockMgmt.cpp.
Array< String > getLuns |
( |
|
) |
|
Returns an array of Strings which are the names of the logical units
- Returns:
- An Array<String>
- Exceptions:
-
Definition at line 481 of file BlockMgmt.cpp.
Array< String > getStoragePools |
( |
|
) |
|
Returns an array of Strings which are the names of the storage pools.
- Returns:
- An Array<String>
- Exceptions:
-
Definition at line 40 of file BlockMgmt.cpp.
void jobStatus |
( |
String |
id |
) |
|
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:
-
Definition at line 83 of file BlockMgmt.cpp.
void resizeLun |
( |
String |
name, |
|
|
Uint64 |
size | |
|
) |
| | |
Resizes an existing Lun.
- Parameters:
-
| name | Name of lun to resize |
| size | New size |
- Exceptions:
-
Definition at line 237 of file BlockMgmt.cpp.
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:
-
Definition at line 110 of file BlockMgmt.cpp.
The documentation for this class was generated from the following files: