Asterisk-Java

org.asteriskjava.live
Class ChannelStateHistoryEntry

java.lang.Object
  extended by org.asteriskjava.live.ChannelStateHistoryEntry
All Implemented Interfaces:
java.io.Serializable

public class ChannelStateHistoryEntry
extends java.lang.Object
implements java.io.Serializable

An entry in the channel state history of an AsteriskChannel.

Since:
0.3
Version:
$Id: ChannelStateHistoryEntry.java 938 2007-12-31 03:23:38Z srt $
Author:
srt
See Also:
Serialized Form

Constructor Summary
ChannelStateHistoryEntry(java.util.Date date, ChannelState state)
          Creates a new instance.
 
Method Summary
 java.util.Date getDate()
          Returns the date the channel entered the state.
 ChannelState getState()
          The state the channel entered.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelStateHistoryEntry

public ChannelStateHistoryEntry(java.util.Date date,
                                ChannelState state)
Creates a new instance.

Parameters:
date - the date the channel entered the state.
state - the state the channel entered.
Method Detail

getDate

public java.util.Date getDate()
Returns the date the channel entered the state.

Returns:
the date the channel entered the state.

getState

public ChannelState getState()
The state the channel entered.

Returns:
the state the channel entered.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.