public class ServerClassification
extends java.lang.Object
Uses JNI wrappers to the following C Library APIs:
WorkloadManager.createServerClassification()
,
WorkUnit
Modifier and Type | Field and Description |
---|---|
static int |
_SERVER_CLASSIFY_ACCTINFO |
static int |
_SERVER_CLASSIFY_COLLECTION |
static int |
_SERVER_CLASSIFY_CONNECTION |
static int |
_SERVER_CLASSIFY_CORRELATION |
static int |
_SERVER_CLASSIFY_LUNAME |
static int |
_SERVER_CLASSIFY_NETID |
static int |
_SERVER_CLASSIFY_PACKAGE |
static int |
_SERVER_CLASSIFY_PERFORM |
static int |
_SERVER_CLASSIFY_PLAN |
static int |
_SERVER_CLASSIFY_PRCNAME |
static int |
_SERVER_CLASSIFY_PRIORITY |
static int |
_SERVER_CLASSIFY_PROCESS_NAME |
static int |
_SERVER_CLASSIFY_RPTCLSNM |
static int |
_SERVER_CLASSIFY_SCHEDENV |
static int |
_SERVER_CLASSIFY_SERVCLS |
static int |
_SERVER_CLASSIFY_SOURCELU |
static int |
_SERVER_CLASSIFY_SRVCLSNM |
static int |
_SERVER_CLASSIFY_SUBCOLN |
static int |
_SERVER_CLASSIFY_SUBSYSTEM_PARM |
static int |
_SERVER_CLASSIFY_TRANSACTION_CLASS |
static int |
_SERVER_CLASSIFY_TRANSACTION_NAME |
static int |
_SERVER_CLASSIFY_USERID |
Modifier and Type | Method and Description |
---|---|
void |
reset()
Reset a server classification instance to its initial state.
|
void |
setAccountInfo(java.lang.String value)
Set the account information.
|
void |
setClassifyInt(int field,
int value)
Generic method for setting a server classification integer.
|
void |
setClassifyString(int field,
java.lang.String value)
Generic method for setting a server classification string.
|
void |
setCollection(java.lang.String value)
Set the customer defined name for a group of associated packages.
|
void |
setConnection(java.lang.String value)
Set the name associated with the environment creating the workunit.
|
void |
setCorrelation(java.lang.String value)
Set the name associated with the user/program creating the work unit.
|
void |
setLUName(java.lang.String value)
Set the local LU name associated with the requester.
|
void |
setNetworkID(java.lang.String value)
Set the network ID associated with the requester.
|
void |
setPackage(java.lang.String value)
Set the package name for a set of associated SQL statements.
|
void |
setPerformanceGroup(java.lang.String value)
Set the performance group number (PGN) associated with the work unit.
|
void |
setPlan(java.lang.String value)
Set the access plan name for a set of associated SQL statements.
|
void |
setPriority(int value)
Set the priority associated with the work unit to be created.
|
void |
setProcedureName(java.lang.String value)
Set the DB2 Stored SQL Procedure name associated with the work unit.
|
void |
setProcessName(java.lang.String value)
Set the process name associated with the work unit.
|
void |
setSchedulingEnvironment(java.lang.String value)
Set the scheduling environment information.
|
void |
setSourceLU(java.lang.String value)
Set the source LU name associated with the requester.
|
void |
setSubsystemCollectionName(java.lang.String value)
Set the subsystem collection name.
|
void |
setSubsystemParameter(java.lang.String value)
Set the transaction subsystem parameter.
|
void |
setTransactionClass(java.lang.String value)
Set the transaction class.
|
void |
setTransactionName(java.lang.String value)
Set the transaction name.
|
void |
setUserid(java.lang.String value)
Set the user ID.
|
public static final int _SERVER_CLASSIFY_TRANSACTION_CLASS
public static final int _SERVER_CLASSIFY_TRANSACTION_NAME
public static final int _SERVER_CLASSIFY_USERID
public static final int _SERVER_CLASSIFY_SUBSYSTEM_PARM
public static final int _SERVER_CLASSIFY_ACCTINFO
public static final int _SERVER_CLASSIFY_SOURCELU
public static final int _SERVER_CLASSIFY_NETID
public static final int _SERVER_CLASSIFY_LUNAME
public static final int _SERVER_CLASSIFY_COLLECTION
public static final int _SERVER_CLASSIFY_PLAN
public static final int _SERVER_CLASSIFY_CONNECTION
public static final int _SERVER_CLASSIFY_PACKAGE
public static final int _SERVER_CLASSIFY_CORRELATION
public static final int _SERVER_CLASSIFY_PERFORM
public static final int _SERVER_CLASSIFY_PRCNAME
public static final int _SERVER_CLASSIFY_PRIORITY
public static final int _SERVER_CLASSIFY_SERVCLS
public static final int _SERVER_CLASSIFY_SRVCLSNM
public static final int _SERVER_CLASSIFY_RPTCLSNM
public static final int _SERVER_CLASSIFY_PROCESS_NAME
public static final int _SERVER_CLASSIFY_SUBCOLN
public static final int _SERVER_CLASSIFY_SCHEDENV
public void reset() throws ErrnoException
ErrnoException
public void setAccountInfo(java.lang.String value) throws ErrnoException
value
- a string of up to 143 characters containing the account
information for the work unit to be created.ErrnoException
public void setCollection(java.lang.String value) throws ErrnoException
value
- a string of up to 18 characters containing the
collection name associated with the work unit to be created.ErrnoException
public void setConnection(java.lang.String value) throws ErrnoException
value
- a string of up to 8 characters containing the connection name
associated with the environment creating the work unit.ErrnoException
public void setCorrelation(java.lang.String value) throws ErrnoException
value
- a string of up to 12 characters that contains the name associated
with the user/program creating the work unit.ErrnoException
public void setLUName(java.lang.String value) throws ErrnoException
value
- a string of up to 8 characters containing the local LU name associated
with the requester.ErrnoException
public void setNetworkID(java.lang.String value) throws ErrnoException
value
- a string of up to 8 characters containing the network ID associated
with the requester.ErrnoException
public void setPackage(java.lang.String value) throws ErrnoException
value
- a string of up to 8 characters containing the package name associated
with the work unit to be created.ErrnoException
public void setPerformanceGroup(java.lang.String value) throws ErrnoException
value
- a string of up to 8 characters containing the PGN associated with the
work unit to be created.ErrnoException
public void setPlan(java.lang.String value) throws ErrnoException
value
- a string of up to 8 characters containing the access plan name associated
with the work unit to be created.ErrnoException
public void setProcedureName(java.lang.String value) throws ErrnoException
value
- a string of up to 18 characters containing the DB2 Stored SQL
Procedure name associated with the work unit to be created.ErrnoException
public void setProcessName(java.lang.String value) throws ErrnoException
value
- a string of up to 32 characters containing the Process name
associated with the work unit to be created.ErrnoException
public void setPriority(int value) throws ErrnoException
value
- an integer value representing the priority of
the work unit to be created.ErrnoException
public void setSchedulingEnvironment(java.lang.String value) throws ErrnoException
value
- a string of up to 16 characters containing the scheduling
environment name associated with the work unit.ErrnoException
public void setSourceLU(java.lang.String value) throws ErrnoException
value
- a string of up to 17 characters containing the source LU name
associated with the requester.ErrnoException
public void setSubsystemCollectionName(java.lang.String value) throws ErrnoException
value
- a string of up to 8 characters, containing the subsystem
collection name associated with the work unit.ErrnoException
public void setSubsystemParameter(java.lang.String value) throws ErrnoException
value
- a string of up to 255 characters containing the subsystem parameter.ErrnoException
public void setTransactionClass(java.lang.String value) throws ErrnoException
value
- a string of up to 8 characters containing the name of the transaction.ErrnoException
public void setTransactionName(java.lang.String value) throws ErrnoException
value
- a string of up to 8 characters containing the name of the transaction.ErrnoException
public void setUserid(java.lang.String value) throws ErrnoException
value
- a string of up to 8 characters containing the name of the
user.ErrnoException
public void setClassifyString(int field, java.lang.String value) throws ErrnoException
field
- one of the _SERVER_CLASSIFY_XX constantsvalue
- the string valueErrnoException
java.lang.IllegalArgumentException
- if the field is known to be a non-String typepublic void setClassifyInt(int field, int value) throws ErrnoException
field
- one of the _SERVER_CLASSIFY_XX constants. Field type=17 (_SERVER_CLASSIFY_CONNTKN) is not allowed.value
- the integer valueErrnoException
java.lang.IllegalArgumentException
- if the field is known to be a non-Integer type or is not allowed.