LSF-Base

 view release on metacpan or  search on metacpan

Base.pm  view on Meta::CPAN

  $type      = $hi->hostType;
  $model     = $hi->hostModel;
  $factor    = $hi->cpuFactor;
  $max_cpus  = $hi->maxCpus;
  $max_mem   = $hi->maxMem;
  $max_swap  = $hi->maxSwap;
  $max_tmp   = $hi->maxTmp;
  $ndisks    = $hi->nDisks;
  @resources = $hi->resources;
  $windows   = $hi->windows;
  @threshold = $hi->busyThreshold;
  $is_server = $hi->isServer;
  $licensed  = $hi->licensed;
  $rex_pri   = $hi->rexPriority;
  $lic_feat  = $hi->licFeaturesNeeded;

  @params = qw( LSF_SERVERDIR LSF_CONFDIR LSF_SERVER_HOSTS ); # ...
  %env = $base->readconfenv(\@params, $ENV{LSF_ENVDIR});

  #load information and placement functions

Base.pm  view on Meta::CPAN

  $base->rescontrol($hostname, $opcode, $data) or die $@;

  $base->perror($message);

  $base->sysmsg;

  $base->errno;
  
  $base->errlog(FILE, $msg);

  $base->fdbusy($fd);

=head1 DESCRIPTION

LSF Base provides basic load sharing functionality consisting of the
following services: Cluster configuration information, Load
information and placement advice, Task list manipulation, Remote
execution and task control, Remote file operations, Administration,
and Error handling.

This library is designed to be used with LSF version 3.2 or LSF

Base.xs  view on Meta::CPAN

    
char*
hi_windows(self)
	LSF_Base_hostInfo *self;
    CODE:
	RETVAL = self->windows;
    OUTPUT:
	RETVAL

void
hi_busyThreshold(self)
	LSF_Base_hostInfo *self;
    PREINIT:
	int i;
    PPCODE:
	for( i=0; i < self->numIndx; i++ ){
	   XPUSHs(sv_2mortal(newSVnv(self->busyThreshold[i])));
        }
	XSRETURN(self->numIndx);

char
hi_isServer(self)
	LSF_Base_hostInfo *self;
    CODE:
	RETVAL = self->isServer;
    OUTPUT:
	RETVAL

Base.xs  view on Meta::CPAN

ls_errlog(self, fp, msg)
	void	*self
	FILE*	fp
	char*	msg
    CODE:
	ls_errlog(fp,msg);

 # Miscellaneous

int
ls_fdbusy(self, fd)
	void	*self
	int	fd
    CODE:
	RETVAL = ls_fdbusy(fd);
    OUTPUT:
	RETVAL

Testlist  view on Meta::CPAN

hostType*
hostModel*
cpuFactor*
maxCpus
maxMem
maxSwap
maxTmp
nDisks
resources
windows
busyThreshold
isServer*
licensed*
rexPriority
licFeaturesNeeded

#LSF::Base
load*
loadofhosts*
placereq*
placeofhosts*

Testlist  view on Meta::CPAN

rgetmnthost
rfcontrol
lockhost
unlockhost
limcontrol
rescontrol
perror
sysmsg
errno
errlog
fdbusy



( run in 0.251 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )