|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.access.JobLog
The JobLog class represents an AS/400 job log. This is used to get a list of messages in a job log or to write messages to a job log.
The complete set of selections for a job log can be accessed using the
RJobLog
class.
QueuedMessage objects have many attributes. Only some of theses attribute values are set, depending on how a QueuedMessage object is created. The following is a list of attributes whose values are set on QueuedMessage objects returned in a list of job log messages:
RJobLog
, Serialized FormConstructor Summary | |
JobLog()
Constructs a JobLog object. |
|
JobLog(AS400 system)
Constructs a JobLog object. |
|
JobLog(AS400 system,
java.lang.String name,
java.lang.String user,
java.lang.String number)
Constructs a JobLog object. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds a VetoableChangeListener. |
int |
getLength()
Returns the number of messages in the job log. |
java.util.Enumeration |
getMessages()
Returns the list of messages in the job log. |
java.lang.String |
getName()
Returns the job name. |
java.lang.String |
getNumber()
Returns the job number. |
AS400 |
getSystem()
Returns the system. |
java.lang.String |
getUser()
Returns the user name. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes a VetoableChangeListener. |
void |
setName(java.lang.String name)
Sets the job name. |
void |
setNumber(java.lang.String number)
Sets the job number. |
void |
setSystem(AS400 system)
Sets the system. |
void |
setUser(java.lang.String user)
Sets the user name. |
static void |
writeMessage(AS400 system,
java.lang.String messageID,
int messageType)
Writes a program message to the job log for the job in which the program is running. |
static void |
writeMessage(AS400 system,
java.lang.String messageID,
int messageType,
byte[] substitutionData)
Writes a program message to the job log for the job in which the program is running. |
static void |
writeMessage(AS400 system,
java.lang.String messageID,
int messageType,
java.lang.String messageFile)
Writes a program message to the job log for the job in which the program is running. |
static void |
writeMessage(AS400 system,
java.lang.String messageID,
int messageType,
java.lang.String messageFile,
byte[] substitutionData)
Writes a program message to the job log for the job in which the program is running. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JobLog()
public JobLog(AS400 system)
system
- The system.public JobLog(AS400 system, java.lang.String name, java.lang.String user, java.lang.String number)
system
- The system.name
- The job name.user
- The user name.number
- The job number.Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener.public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The listener.public int getLength()
public java.util.Enumeration getMessages() throws AS400Exception, AS400SecurityException, ErrorCompletingRequestException, java.lang.InterruptedException, java.io.IOException, ObjectDoesNotExistException
AS400Exception
- If the AS/400 system returns an error message.AS400SecurityException
- If a security or authority error occurs.ConnectionDroppedException
- If the connection is dropped unexpectedly.ErrorCompletingRequestException
- If an error occurs before the request is completed.java.lang.InterruptedException
- If this thread is interrupted.java.io.IOException
- If an error occurs while communicating with the AS/400.ObjectDoesNotExistException
- If the AS/400 object does not exist.ServerStartupException
- If the AS/400 server cannot be started.java.net.UnknownHostException
- If the AS/400 system cannot be located.public java.lang.String getName()
public java.lang.String getNumber()
public AS400 getSystem()
public java.lang.String getUser()
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener.public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The listener.public void setName(java.lang.String name) throws java.beans.PropertyVetoException
name
- The job name.java.beans.PropertyVetoException
- If the change is vetoed.public void setNumber(java.lang.String number) throws java.beans.PropertyVetoException
number
- The job number.java.beans.PropertyVetoException
- If the change is vetoed.public void setSystem(AS400 system) throws java.beans.PropertyVetoException
system
- The system.java.beans.PropertyVetoException
- If the property change is vetoed.public void setUser(java.lang.String user) throws java.beans.PropertyVetoException
user
- The user name.java.beans.PropertyVetoException
- If the change is vetoed.public static void writeMessage(AS400 system, java.lang.String messageID, int messageType) throws AS400SecurityException, ErrorCompletingRequestException, java.lang.InterruptedException, java.io.IOException, ObjectDoesNotExistException, AS400Exception
system
- The system. If the system specifies localhost, the message is written
to the job log of the process from which this method is called.
Otherwise the message is written to the QZRCSRVS job.messageID
- The message ID. The message must be in the default message file
/QSYS.LIB/QCPFMSG.MSGF.messageType
- The message type. Possible values are:
AS400Exception
- If the AS/400 system returns an error message.AS400SecurityException
- If a security or authority error occurs.ConnectionDroppedException
- If the connection is dropped unexpectedly.ErrorCompletingRequestException
- If an error occurs before the request is completed.java.lang.InterruptedException
- If this thread is interrupted.java.io.IOException
- If an error occurs while communicating with the AS/400.ObjectDoesNotExistException
- If the AS/400 object does not exist.ServerStartupException
- If the AS/400 server cannot be started.java.net.UnknownHostException
- If the AS/400 system cannot be located.ProgramCall.isStayOnThread()
public static void writeMessage(AS400 system, java.lang.String messageID, int messageType, byte[] substitutionData) throws AS400SecurityException, ErrorCompletingRequestException, java.lang.InterruptedException, java.io.IOException, ObjectDoesNotExistException, AS400Exception
system
- The system. If the system specifies localhost, the message is written
to the job log of the process from which this method is called.
Otherwise the message is written to the QZRCSRVS job.messageID
- The message ID. The message must be in the default message file
/QSYS.LIB/QCPFMSG.MSGF.messageType
- The message type. Possible values are:
substitutionData
- The substitution data. The substitution data can be from 0-32767 bytes
for a conventional message and from 1-6000 bytes for an immediate message.AS400Exception
- If the AS/400 system returns an error message.AS400SecurityException
- If a security or authority error occurs.ConnectionDroppedException
- If the connection is dropped unexpectedly.ErrorCompletingRequestException
- If an error occurs before the request is completed.java.lang.InterruptedException
- If this thread is interrupted.java.io.IOException
- If an error occurs while communicating with the AS/400.ObjectDoesNotExistException
- If the AS/400 object does not exist.ServerStartupException
- If the AS/400 server cannot be started.java.net.UnknownHostException
- If the AS/400 system cannot be located.ProgramCall.isStayOnThread()
public static void writeMessage(AS400 system, java.lang.String messageID, int messageType, java.lang.String messageFile) throws AS400SecurityException, ErrorCompletingRequestException, java.lang.InterruptedException, java.io.IOException, ObjectDoesNotExistException, AS400Exception
system
- The system. If the system specifies localhost, the message is written
to the job log of the process from which this method is called.
Otherwise the message is written to the QZRCSRVS job.messageID
- The message ID.messageType
- The message type. Possible values are:
messageFile
- The integrated file system path name of the message file.AS400Exception
- If the AS/400 system returns an error message.AS400SecurityException
- If a security or authority error occurs.ConnectionDroppedException
- If the connection is dropped unexpectedly.ErrorCompletingRequestException
- If an error occurs before the request is completed.java.lang.InterruptedException
- If this thread is interrupted.java.io.IOException
- If an error occurs while communicating with the AS/400.ObjectDoesNotExistException
- If the AS/400 object does not exist.ServerStartupException
- If the AS/400 server cannot be started.java.net.UnknownHostException
- If the AS/400 system cannot be located.ProgramCall.isStayOnThread()
public static void writeMessage(AS400 system, java.lang.String messageID, int messageType, java.lang.String messageFile, byte[] substitutionData) throws AS400SecurityException, ErrorCompletingRequestException, java.lang.InterruptedException, java.io.IOException, ObjectDoesNotExistException, AS400Exception
system
- The system. If the system specifies localhost, the message is written
to the job log of the process from which this method is called.
Otherwise the message is written to the QZRCSRVS job.messageID
- The message ID.messageType
- The message type. Possible values are:
messageFile
- The integrated file system path name of the message file.substitutionData
- The substitution data. The substitution data can be from 0-32767 bytes
for a conventional message and from 1-6000 bytes for an immediate message.AS400Exception
- If the AS/400 system returns an error message.AS400SecurityException
- If a security or authority error occurs.ConnectionDroppedException
- If the connection is dropped unexpectedly.ErrorCompletingRequestException
- If an error occurs before the request is completed.java.lang.InterruptedException
- If this thread is interrupted.java.io.IOException
- If an error occurs while communicating with the AS/400.ObjectDoesNotExistException
- If the AS/400 object does not exist.ServerStartupException
- If the AS/400 server cannot be started.java.net.UnknownHostException
- If the AS/400 system cannot be located.ProgramCall.isStayOnThread()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |