org.apache.axis2.transport.base
Class AbstractPollTableEntry

java.lang.Object
  extended by org.apache.axis2.transport.base.ProtocolEndpoint
      extended by org.apache.axis2.transport.base.AbstractPollTableEntry
Direct Known Subclasses:
PollTableEntry

public abstract class AbstractPollTableEntry
extends ProtocolEndpoint


Field Summary
static int FAILED
           
static int NONE
           
static int SUCCSESSFUL
           
static int WITH_ERRORS
           
 
Constructor Summary
AbstractPollTableEntry()
           
 
Method Summary
 int getLastPollState()
           
 long getLastPollTime()
           
 long getNextPollTime()
           
 long getPollInterval()
           
 boolean isConcurrentPollingAllowed()
           
 boolean loadConfiguration(org.apache.axis2.description.ParameterInclude params)
          Configure the endpoint based on the provided parameters.
 void setConcurrentPollingAllowed(boolean concurrentPollingAllowed)
           
 void setLastPollState(int lastPollState)
           
 void setLastPollTime(long lastPollTime)
           
 void setNextPollTime(long nextPollTime)
           
 void setPollInterval(long pollInterval)
           
 
Methods inherited from class org.apache.axis2.transport.base.ProtocolEndpoint
createMessageContext, getEndpointReferences, getListener, getService, getServiceName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCSESSFUL

public static final int SUCCSESSFUL
See Also:
Constant Field Values

WITH_ERRORS

public static final int WITH_ERRORS
See Also:
Constant Field Values

FAILED

public static final int FAILED
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values
Constructor Detail

AbstractPollTableEntry

public AbstractPollTableEntry()
Method Detail

getNextPollTime

public long getNextPollTime()

setNextPollTime

public void setNextPollTime(long nextPollTime)

getLastPollTime

public long getLastPollTime()

setLastPollTime

public void setLastPollTime(long lastPollTime)

getPollInterval

public long getPollInterval()

setPollInterval

public void setPollInterval(long pollInterval)

getLastPollState

public int getLastPollState()

setLastPollState

public void setLastPollState(int lastPollState)

isConcurrentPollingAllowed

public boolean isConcurrentPollingAllowed()

setConcurrentPollingAllowed

public void setConcurrentPollingAllowed(boolean concurrentPollingAllowed)

loadConfiguration

public boolean loadConfiguration(org.apache.axis2.description.ParameterInclude params)
                          throws org.apache.axis2.AxisFault
Description copied from class: ProtocolEndpoint
Configure the endpoint based on the provided parameters. If no relevant parameters are found, the implementation should return false. An exception should only be thrown if there is an error or inconsistency in the parameters.

Specified by:
loadConfiguration in class ProtocolEndpoint
Parameters:
params - The source of the parameters to construct the poll table entry. If the parameters are defined on a service, this will be an AxisService instance.
Returns:
true if the parameters contained the required configuration information and the endpoint has been configured, false if the no configuration for the endpoint is present in the parameters
Throws:
org.apache.axis2.AxisFault - if configuration information is present, but there is an error or inconsistency in the parameters


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.