Tuxedo::Admin::TDomain
use Tuxedo::Admin; $admin = new Tuxedo::Admin; $tdomain = $admin->tdomain('ACCESS_POINT_NAME', 'hostname:port'); $rc = $tdomain->remove() if $tdomain->exists(); unless ($tdomain->exists()) { $rc = $tdomain->add(); die $admin->status() if ($rc < 0); }
Provides methods to query, add, remove and update a tdomain.
Tuxedo::Admin::TDomain objects are not instantiated directly. Instead they are created via the tdomain() method of a Tuxedo::Admin object.
Example:
$tdomain = $admin->tdomain('ACCESS_POINT_NAME', 'hostname:port');
This applies both for existing tdomains and for new tdomains that are being created.
Used to determine whether or not the tdomain exists in the current Tuxedo application.
if ($tdomain->exists()) { ... }
Returns true if the tdomain exists.
Adds the tdomain to the current Tuxedo application.
$rc = $tdomain->add();
Croaks if the tdomain already exists or if the required dmaccesspoint and dmnwaddr are not set. If $rc is negative then an error occurred. If successful then the exists() method will return true. Example:
$tdomain = $admin->tdomain('REMOTE', 'hostname:port'); unless ($tdomain->exists()) { $rc = $tdomain->add(); $admin->print_status(); }
Updates the tdomain configuration with the values of the current object.
$rc = $tdomain->update();
Croaks if the tdomain does not exist or if the required dmaccesspoint and dmnwaddr parameters are not set. If $rc is negative then an error occurred.
Removes the tdomain from the current Tuxedo application.
$rc = $tdomain->remove();
$tdomain = $admin->tdomain('REMOTE', 'hostname:port'); if ($tdomain->exists()) { $tdomain->remove(); }
The following methods are available to get and set the tdomain parameters. If an argument is provided then the parameter value is set to be the argument value. The value of the parameter is returned.
# Get the access point name print $tdomain->dmaccesspoint(), "\n"; # Set the access point name $tdomain->dmaccesspoint('ACCESS_POINT_NAME');
item dmminencryptbits()
To install Tuxedo::Admin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tuxedo::Admin
CPAN shell
perl -MCPAN -e shell install Tuxedo::Admin
For more information on module installation, please visit the detailed CPAN module installation guide.