| perfSONAR_PS-Collectors-LinkStatus documentation | view source | Contained in the perfSONAR_PS-Collectors-LinkStatus distribution. |
perfSONAR_PS::Collectors::LinkStatus::Agent::Constant - This module provides an agent for the Link Status Collector that simply returns a constant value.
When run, this agent will simply return the constant value its been configured to return along with the machine's current time.
use strict; use warnings;
our $VERSION = 0.09;
use fields 'TYPE', 'CONSTANT';
my $self = fields::new($class);
$self->{"TYPE"} = $type;
$self->{"CONSTANT"} = $constant;
return $self;
}
return $self->{TYPE};
}
$self->{TYPE} = $type;
return;
}
$self->{CONSTANT} = $constant;
return;
}
return $self->{CONSTANT};
}
my $time = time;
if (not defined $self->{CONSTANT} or $self->{CONSTANT} eq "") {
my $msg = "no constant defined";
return (-1, $msg);
}
return (0, $time, $self->{CONSTANT});
}
1;
__END__
To join the 'perfSONAR-PS' mailing list, please visit:
https://mail.internet2.edu/wws/info/i2-perfsonar
The perfSONAR-PS subversion repository is located at:
https://svn.internet2.edu/svn/perfSONAR-PS
Questions and comments can be directed to the author, or the mailing list. Bugs, feature requests, and improvements can be directed here:
https://bugs.internet2.edu/jira/browse/PSPS
$Id:$
Aaron Brown, aaron@internet2.edu
You should have received a copy of the Internet2 Intellectual Property Framework along with this software. If not, see <http://www.internet2.edu/membership/ip.html>
Copyright (c) 2004-2008, Internet2 and the University of Delaware
All rights reserved.
| perfSONAR_PS-Collectors-LinkStatus documentation | view source | Contained in the perfSONAR_PS-Collectors-LinkStatus distribution. |