org.snmp4j.agent.agentx.master
Interface AgentXPending

All Known Implementing Classes:
AbstractAgentXPending, AgentXPendingClose, AgentXPendingGet, AgentXPendingSet

public interface AgentXPending

The AgentXPending interface is implemented by classes holding sub-agent AgentX request state information.

Version:
1.0
Author:
Frank Fock

Method Summary
 AgentXPDU getAgentXPDU()
           
 org.snmp4j.agent.request.SubRequestIterator getReferences()
           
 AgentXRegEntry getRegistration()
           
 org.snmp4j.agent.request.SnmpRequest getRequest()
           
 AgentXMasterSession getSession()
           
 int getTimeout()
          Gets the timeout seconds set for this pending AgentX request.
 long getTimestamp()
          Gets the timestamp (in milliseconds) when updateTimestamp() had been called last.
 boolean isPending()
           
 void setPending(boolean pending)
           
 void setTimeout(int timeoutSeconds)
           
 void updateTimestamp()
          Set the timestamp to the current time (in milliseconds).
 

Method Detail

getAgentXPDU

AgentXPDU getAgentXPDU()

getRegistration

AgentXRegEntry getRegistration()

getSession

AgentXMasterSession getSession()

isPending

boolean isPending()

setPending

void setPending(boolean pending)

getRequest

org.snmp4j.agent.request.SnmpRequest getRequest()

getReferences

org.snmp4j.agent.request.SubRequestIterator getReferences()

updateTimestamp

void updateTimestamp()
Set the timestamp to the current time (in milliseconds).


getTimestamp

long getTimestamp()
Gets the timestamp (in milliseconds) when updateTimestamp() had been called last.

Returns:
System.currentTimeMillis() when updateTimestamp() had been called or zero if it had not been called yet.

setTimeout

void setTimeout(int timeoutSeconds)

getTimeout

int getTimeout()
Gets the timeout seconds set for this pending AgentX request.

Returns:
the timeout value in seconds.

Copyright 2005-2011 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.