public class CreateUserSpace extends java.lang.Object implements Program
Call the QUSCRTUS API, QUSCRTUS
This class is used with a CommandConnection to create a user space
Sample code
public static void main(String[] args) { try { CommandConnection connection = CommandConnection.getConnection(args[0], args[1], args[2]); CreateUserSpace createUserSpace = new CreateUserSpace( args[4], // userSpaceName args[3], // userSpaceLibrary CreateUserSpace.EXTENDED_ATTRIBUTE_NONE, // extendedAttribute 100, // initialSize CreateUserSpace.INITIAL_VALUE_BEST_PERFORMANCE, // initialValue CreateUserSpace.PUBLIC_AUTHORITY_USE, // publicAuthority "", //textDescription CreateUserSpace.REPLACE_NO, //replace CreateUserSpace.DOMAIN_DEFAULT, //domain CreateUserSpace.TRANSFER_SIZE_REQUEST_DEFAULT, //transferSizeRequest CreateUserSpace.OPTIMUM_SPACE_ALIGNMENT_YES // optimumSpaceAlignment ); CommandResult result = connection.call(createUserSpace); System.out.println("Command completed with "+result); } catch (Exception e) { e.printStackTrace(System.out); } }
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOMAIN_DEFAULT |
static java.lang.String |
DOMAIN_SYSTEM |
static java.lang.String |
DOMAIN_USER |
static java.lang.String |
EXTENDED_ATTRIBUTE_NONE |
static int |
INITIAL_SIZE_MAX |
static byte |
INITIAL_VALUE_BEST_PERFORMANCE |
static java.lang.String |
OPTIMUM_SPACE_ALIGNMENT_NO |
static java.lang.String |
OPTIMUM_SPACE_ALIGNMENT_YES |
static java.lang.String |
PUBLIC_AUTHORITY_ALL |
static java.lang.String |
PUBLIC_AUTHORITY_CHANGE |
static java.lang.String |
PUBLIC_AUTHORITY_EXCLUDE |
static java.lang.String |
PUBLIC_AUTHORITY_LIBCRTAUT |
static java.lang.String |
PUBLIC_AUTHORITY_USE |
static java.lang.String |
REPLACE_NO |
static java.lang.String |
REPLACE_YES |
static int |
TRANSFER_SIZE_REQUEST_DEFAULT |
Constructor and Description |
---|
CreateUserSpace(java.lang.String userSpaceName,
java.lang.String userSpaceLibrary,
java.lang.String extendedAttribute,
int initialSize,
byte initialValue,
java.lang.String publicAuthority,
java.lang.String textDescription,
java.lang.String replace,
java.lang.String domain,
int transferSizeRequest,
java.lang.String optimumSpaceAlignment) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDomain() |
int |
getInitialSize() |
byte |
getInitialValue() |
int |
getNumberOfParameters()
Returns the number of parameters for this program.
|
java.lang.String |
getOptimumSpaceAlignment() |
byte[] |
getParameterInputData(int parmIndex)
Returns the input data of the parameter at the specified index.
|
int |
getParameterInputLength(int parmIndex)
Returns the input length of the parameter at the specified index.
|
int |
getParameterOutputLength(int parmIndex)
Returns the output length of the parameter at the specified index.
|
int |
getParameterType(int parmIndex)
Returns the type of parameter at the specified index.
|
java.lang.String |
getProgramLibrary()
Returns the library of the program object.
|
java.lang.String |
getProgramName()
Returns the name of the program object.
|
java.lang.String |
getPublicAuthority() |
java.lang.String |
getReplace() |
byte[] |
getTempDataBuffer()
The implementor can create their own temp byte array for the output parameter size and reuse it each time a call is performed,
or for more than one parameter on the same call.
|
java.lang.String |
getTextDescription() |
int |
getTransferSizeRequest() |
java.lang.String |
getUserSpaceLibrary() |
java.lang.String |
getUserSpaceName() |
void |
newCall()
Invoked before any other methods on this interface by CommandConnection whenever this Program is called.
|
void |
setDomain(java.lang.String domain) |
void |
setInitialSize(int size) |
void |
setInitialValue(byte val) |
void |
setOptimumSpaceAlignment(java.lang.String align) |
void |
setParameterOutputData(int parmIndex,
byte[] tempData,
int maxLength)
Sets the output data for the parameter at the specified index.
|
void |
setPublicAuthority(java.lang.String auth) |
void |
setReplace(java.lang.String replace) |
void |
setTextDescription(java.lang.String text) |
void |
setTransferSizeRequest(int size) |
void |
setUserSpaceLibrary(java.lang.String lib) |
void |
setUserSpaceName(java.lang.String name) |
public static final java.lang.String EXTENDED_ATTRIBUTE_NONE
public static final int INITIAL_SIZE_MAX
public static final byte INITIAL_VALUE_BEST_PERFORMANCE
public static final java.lang.String PUBLIC_AUTHORITY_ALL
public static final java.lang.String PUBLIC_AUTHORITY_CHANGE
public static final java.lang.String PUBLIC_AUTHORITY_EXCLUDE
public static final java.lang.String PUBLIC_AUTHORITY_LIBCRTAUT
public static final java.lang.String PUBLIC_AUTHORITY_USE
public static final java.lang.String REPLACE_YES
public static final java.lang.String REPLACE_NO
public static final java.lang.String DOMAIN_DEFAULT
public static final java.lang.String DOMAIN_SYSTEM
public static final java.lang.String DOMAIN_USER
public static final int TRANSFER_SIZE_REQUEST_DEFAULT
public static final java.lang.String OPTIMUM_SPACE_ALIGNMENT_YES
public static final java.lang.String OPTIMUM_SPACE_ALIGNMENT_NO
public CreateUserSpace(java.lang.String userSpaceName, java.lang.String userSpaceLibrary, java.lang.String extendedAttribute, int initialSize, byte initialValue, java.lang.String publicAuthority, java.lang.String textDescription, java.lang.String replace, java.lang.String domain, int transferSizeRequest, java.lang.String optimumSpaceAlignment)
public java.lang.String getUserSpaceName()
public void setUserSpaceName(java.lang.String name)
public java.lang.String getUserSpaceLibrary()
public void setUserSpaceLibrary(java.lang.String lib)
public int getInitialSize()
public void setInitialSize(int size)
public byte getInitialValue()
public void setInitialValue(byte val)
public java.lang.String getPublicAuthority()
public void setPublicAuthority(java.lang.String auth)
public java.lang.String getTextDescription()
public void setTextDescription(java.lang.String text)
public java.lang.String getReplace()
public void setReplace(java.lang.String replace)
public java.lang.String getDomain()
public void setDomain(java.lang.String domain)
public int getTransferSizeRequest()
public void setTransferSizeRequest(int size)
public java.lang.String getOptimumSpaceAlignment()
public void setOptimumSpaceAlignment(java.lang.String align)
public void newCall()
Program
public int getNumberOfParameters()
Program
getNumberOfParameters
in interface Program
public int getParameterInputLength(int parmIndex)
Program
getParameterInputLength
in interface Program
public int getParameterOutputLength(int parmIndex)
Program
getParameterOutputLength
in interface Program
public int getParameterType(int parmIndex)
Program
getParameterType
in interface Program
Parameter
public byte[] getParameterInputData(int parmIndex)
Program
getParameterInputData
in interface Program
public byte[] getTempDataBuffer()
Program
getTempDataBuffer
in interface Program
public void setParameterOutputData(int parmIndex, byte[] tempData, int maxLength)
Program
setParameterOutputData
in interface Program
public java.lang.String getProgramName()
Program
getProgramName
in interface Program
public java.lang.String getProgramLibrary()
Program
getProgramLibrary
in interface Program