com.ibm.as400.util.commtrace
Class FormatProperties
- java.lang.Object
-
- com.ibm.as400.util.commtrace.FormatProperties
-
public class FormatProperties extends java.lang.Object
Values to use for setting the Properties object that is sent to the Format class.
Example:
FormatProperties prop = new FormatProperties(); prop.setProgress(FormatProperties.TRUE); // Set the filter properties that the user specified if(!filterIPaddr.equals("*ALL")) { prop.setIPAddress(filterIPaddr); }
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
FALSE
static java.lang.String
NO
static java.lang.String
TRUE
static java.lang.String
YES
-
Constructor Summary
Constructors Constructor and Description FormatProperties()
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getBroadcast()
Gets the Broadcast filter.java.lang.String
getEndTime()
Gets the end time filter.java.lang.String
getIPAddress()
Gets the IPAddress filterjava.lang.String
getPort()
Gets the Port filter.java.lang.String
getProgress()
Property set if progress should be displayed.java.lang.String
getSecondIPAddress()
Gets the second IPAddress filter.java.lang.String
getStartTime()
Gets the start time filtervoid
setBroadcast(java.lang.String broadcast)
Sets the broadcast filter.void
setEndTime(java.lang.String endtime)
Sets the end time filter in milliseconds since the epoc.void
setIPAddress(java.lang.String IPAddress)
Sets the IPAddress filter to the given IPAddress.void
setPort(java.lang.String port)
Sets the port filter to the given port.void
setProgress(java.lang.String progress)
Sets if the progress monitor should be displayed or not.void
setSecondIPAddress(java.lang.String IPAddress)
Sets the second IPAddress filter to the given IPAddress.void
setStartTime(java.lang.String starttime)
Sets the start time filter in milliseconds since the epoc.
-
-
-
Field Detail
-
TRUE
public static final java.lang.String TRUE
- See Also:
- Constant Field Values
-
YES
public static final java.lang.String YES
- See Also:
- Constant Field Values
-
NO
public static final java.lang.String NO
- See Also:
- Constant Field Values
-
FALSE
public static final java.lang.String FALSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setIPAddress
public void setIPAddress(java.lang.String IPAddress)
Sets the IPAddress filter to the given IPAddress.- Parameters:
IPAddress
- The IPAddress to filter on.
-
setSecondIPAddress
public void setSecondIPAddress(java.lang.String IPAddress)
Sets the second IPAddress filter to the given IPAddress.- Parameters:
IPAddress
- The IPAddress to filter on.
-
setPort
public void setPort(java.lang.String port)
Sets the port filter to the given port.- Parameters:
port
- The port to filter on.
-
setBroadcast
public void setBroadcast(java.lang.String broadcast)
Sets the broadcast filter.- Parameters:
broadcast
- FormatProperties.YES or FormatProperties.NO.
-
setStartTime
public void setStartTime(java.lang.String starttime)
Sets the start time filter in milliseconds since the epoc.- Parameters:
starttime
- The time to start filtering at.
-
setEndTime
public void setEndTime(java.lang.String endtime)
Sets the end time filter in milliseconds since the epoc.- Parameters:
endtime
- The time to end filtering.
-
setProgress
public void setProgress(java.lang.String progress)
Sets if the progress monitor should be displayed or not.- Parameters:
progress
- FormatProperties.TRUE or FormatProperties.FALSE.
-
getIPAddress
public java.lang.String getIPAddress()
Gets the IPAddress filter- Returns:
- The IPAddress to filter on
-
getSecondIPAddress
public java.lang.String getSecondIPAddress()
Gets the second IPAddress filter.- Returns:
- The second IPAddress to filter on.
-
getPort
public java.lang.String getPort()
Gets the Port filter.- Returns:
- The Port to filter on.
-
getBroadcast
public java.lang.String getBroadcast()
Gets the Broadcast filter.- Returns:
- The Broadcast filter.
-
getStartTime
public java.lang.String getStartTime()
Gets the start time filter- Returns:
- The start time to filter on
-
getEndTime
public java.lang.String getEndTime()
Gets the end time filter.- Returns:
- The end time to filter on.
-
getProgress
public java.lang.String getProgress()
Property set if progress should be displayed.- Returns:
- The progress property.
-
-