wwndesc  1.0-76
WWNDesc.WWNDescInitiator Class Reference

simple pass-thru class to define internal value for a Initiator in an idempotent way More...

Inheritance diagram for WWNDesc.WWNDescInitiator:
Collaboration diagram for WWNDesc.WWNDescInitiator:

Public Member Functions

 WWNDescInitiator (String wwn)
 create an instance with brief set to false. More...
 
 WWNDescInitiator (boolean brief, String wwn)
 create an instance with the given WWN. More...
 
- Public Member Functions inherited from WWNDesc
 WWNDesc (String wwn)
 create an instance with brief set to false. More...
 
 WWNDesc (boolean brief, String wwn)
 create an instance with the given WWN. More...
 
 WWNDesc (boolean brief, String wwn, DevRole role)
 create an instance with the given WWN. More...
 
String descPort ()
 describe the WWPN's unique port label/index More...
 
String toString ()
 describe the WWN: produce a short (shorter if this.brief = true) description suitable for use as an alias for this WWN More...
 

Static Public Member Functions

static boolean isA (int role)
 convenience function to use bit-masks to check for membership in this role More...
 

Additional Inherited Members

- Protected Attributes inherited from WWNDesc
boolean brief
 whether a more brief output should be offered in toString() (ie the difference between "VMax-HK192601234-12gB" and "VMax-1234-12gB") . More...
 
DevRole role = DevRole.TARGET
 role of the device: Target, Switch, Initiator
 
BigInteger wwn
 the WWN that the instance tried to describe
 

Detailed Description

simple pass-thru class to define internal value for a Initiator in an idempotent way

Definition at line 87 of file WWNDesc.java.

Constructor & Destructor Documentation

WWNDescInitiator ( String  wwn)
inline

create an instance with brief set to false.

This is a convenience function to support the older constructor model

Exceptions
java.lang.NullPointerExceptionif the given wwn is null
Parameters
wwnthe WWN to evaluate and describe

< create a new Initiator device without brief naming capability

Definition at line 90 of file WWNDesc.java.

References DevRole.INITIATOR.

WWNDescInitiator ( boolean  brief,
String  wwn 
)
inline

create an instance with the given WWN.

Values given to the constructor are simply copied to internal variables for later use

Exceptions
java.lang.NullPointerExceptionif the given wwn is null
Parameters
briefwhether an abbreviated description is requested
wwnthe WWN to evaluate and describe

< create a new Initiator device with given brief capability

Definition at line 95 of file WWNDesc.java.

References DevRole.INITIATOR.

Member Function Documentation

static boolean isA ( int  role)
inlinestatic

convenience function to use bit-masks to check for membership in this role

Parameters
rolethe role to check
Returns
true if the given role includes Initiator

< lightweight method to check for membership in this role

Definition at line 106 of file WWNDesc.java.

Referenced by AIXLPARServerDescription.getDesc(), and HPVirtualServerDescription.getDesc().


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