com.starbase.starteam
Class CacheAgentEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.starbase.starteam.CacheAgentEvent
All Implemented Interfaces:
java.io.Serializable

public class CacheAgentEvent
extends java.util.EventObject

An event triggered whenever content is received from a CacheAgent. Received content can consist of Object Property Values (for cache agents which cache object properties, or File Content)

See Also:
#CacheAgentListener, NetMonitorCore#addCacheAgentListener, Serialized Form

Method Summary
 boolean equals(java.lang.Object source)
          returns true if this object instance is equal to the source
 long getBytesReceived()
          the number of bytes received from the Cache Agent for this item
 java.lang.String getDebugString()
          return a string representation of the event generally useful for application debugging
 int getExecutionTime()
          returns the time (in msecs) taken to process the content for this item
 boolean getIsFileContent()
          returns true if the content is file specific, false otherwise
 boolean getIsObjectPropertyContent()
          returns true if the content describes properties of cached objects, false otherwise
 int getItemID()
          returns the item id of the StarTeam item whose content has been received
 Property[] getMissingProperties()
          returns the set of properties that were requested but not received from the Cache Agent NULL if file content was retrieved from the cache agent an empty property array if no properties were missed
 java.lang.Object getSource()
          The object on which the Event initially occurred.
 Type getType()
          returns the type of the StarTeam item whose content has been received
 int hashCode()
          returns a unique hash for all instances of this type
 java.lang.String toString()
          return a string representation of the event generally useful for application debugging
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getIsObjectPropertyContent

public boolean getIsObjectPropertyContent()
returns true if the content describes properties of cached objects, false otherwise

Returns:
boolean true if the content describes properties of cached objects, false otherwise

getIsFileContent

public boolean getIsFileContent()
returns true if the content is file specific, false otherwise

Returns:
boolean true if the content is file specific, false otherwise

getItemID

public int getItemID()
returns the item id of the StarTeam item whose content has been received

Returns:
ItemID the item id of the StarTeam item whose content has been received

getType

public Type getType()
returns the type of the StarTeam item whose content has been received

Returns:
Type the type of the StarTeam item whose content has been received

getBytesReceived

public long getBytesReceived()
the number of bytes received from the Cache Agent for this item

Returns:
long the number of bytes received from the Cache Agent for this item
See Also:
#getItem

getExecutionTime

public int getExecutionTime()
returns the time (in msecs) taken to process the content for this item

Returns:
int the time (in msecs) taken to process the content for this item
See Also:
#getItem

getMissingProperties

public Property[] getMissingProperties()
returns the set of properties that were requested but not received from the Cache Agent NULL if file content was retrieved from the cache agent an empty property array if no properties were missed

Returns:
Property[] the set of properties that were requested but not received from the Cache Agent

getDebugString

public java.lang.String getDebugString()
return a string representation of the event generally useful for application debugging

Returns:
String a string representation of the event

getSource

public java.lang.Object getSource()
The object on which the Event initially occurred.

Overrides:
getSource in class java.util.EventObject
Returns:
The object on which the Event initially occurred.

toString

public java.lang.String toString()
return a string representation of the event generally useful for application debugging

Overrides:
toString in class java.util.EventObject
Returns:
String a string representation of the event

equals

public boolean equals(java.lang.Object source)
returns true if this object instance is equal to the source

Overrides:
equals in class java.lang.Object
Parameters:
source - Object the source to comapre with
Returns:
boolean true if this object is equal to the source

hashCode

public int hashCode()
returns a unique hash for all instances of this type

Overrides:
hashCode in class java.lang.Object
Returns:
int a unique hash for all instances of this type


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.