NAME

perfSONAR_PS::Collectors::LinkStatus::Agent::Constant - This module provides an agent for the Link Status Collector that simply returns a constant value.

DESCRIPTION

When run, this agent will simply return the constant value its been configured to return along with the machine's current time.

API

new ($self, $status_type, $constant) Creates a new Constant Agent of the specified type and with the specified constant value.

getType Returns the status type of this agent: admin or oper.

setType ($self, $type) Sets the status type of this agent: admin or oper.

setConstant ($self, $constant) Sets the constant value to be returned.

getConstant ($self) Returns the constant value.

run ($self) Returns the constant value that's been configured along with the current time of the machine its being run on.

VERSION

$Id:$

AUTHOR

Aaron Brown, aaron@internet2.edu

LICENSE

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

Copyright (c) 2004-2008, Internet2 and the University of Delaware

All rights reserved.