The application server library provides the following classes:
Article number/class name |
Class Name
Swrba_Appserver
List of Methods
Method | Description |
String start_workunit(String hostname, String username, String password, String wuname, String systemname, String mwtype, String mwinstalledpath, String ostype, String execusername, String execpassword) | Start the WorkUnit of the specified host. "Success" is returned if start of the WorkUnit was successful. An exception is returned if start of the WorkUnit failed. |
String stop_workunit(String hostname, String username, String password, String wuname, String systemname, String stopmode, String mwtype,String mwinstalledpath, String ostype, String execusername, String execpassword) | Stop the WorkUnit of the specified host. "Success" is returned if stop of the WorkUnit was successful. An exception is returned if stop of the WorkUnit failed. |
Integer return_code() | Return the return value of the results of the start/stop of the WorkUnit. |
Input Information
hostname Specify the host name or IP address.
username Specify the name of the user using SSH to connect to the host that starts or stops the WorkUnit.
If the operation component connects with the file transfer infrastructure, the connected user name will be fixed at either of the following names and cannot be changed. In this case, the user name is ignored even if specified.
- If the Business Server is running on Windows: SYSTEM user
- If the Business Server is running on Linux: root
password Specify the password of the user using SSH to connect to the host that starts or stops the WorkUnit.
If the operation component connects with the file transfer infrastructure, the password is ignored even if specified.
wuname Specify the name of the WorkUnit that starts or stops.
systemnameSpecify the name of the target that starts or stops the WorkUnit.
stopmodeSpecify the stop mode of the WorkUnit.
mwtypeSpecify the application server product name.
mwinstalledpathSpecify the installation path of the command of linked target products.
ostypeSpecify the operating system of the host that starts or stops the WorkUnit.
Specify Windows or Linux.
execusername Specify the name of the user who starts or stops the WorkUnit.
If the host specified by the "hostname" option is running on Windows, and the connection is made using the file transfer infrastructure, execute the command as a SYSTEM user. In this case, the user name is ignored even if specified.
execpassword This library does not use the value of "execpassword".
The value of "execpassword" is ignored even if specified.
Notes
If the information except for the Management Server has been entered for "hostname", this library uses the file transfer infrastructure or SSH communication to perform its operations. Set either at least to be able to communicate. Refer to the "3.16 Notes of Each Communication Method" for the notes of each communication method.
If the connected user and executing user are different, refer to the "3.16.7 Notes When Connected User And Executing User Are Different".
The target of this library is the following middleware.
Windows/Linux
Interstage Application Server Enterprise Edition V9.0.0 or later
Interstage Application Server Standard-J Edition V9.0.0 or later
Interstage Business Application Server Enterprise Edition V9.0.0 or later
Interstage Business Application Server Standard Edition V9.0.0 or later
Interstage Web Server V9.0.0 or later
Interstage Web Server Express V11.0.0 or later
File Location
Windows | <Installation directory>\SWRBAM \rbaope\bin\parts\lib\ standard\swrba_appserver.rb |
Linux | /opt/FJSVswrbam/rbaope/bin/parts/lib/standard/swrba_appserver.rb |