com.sun.sgs.kernel
Interface AccessedObject


public interface AccessedObject

An interface that provides details of a single object access. Two accessed objects are identical if both were reported by an AccessReporter obtained by registering an access source with a single AccessCoordinator using the same source name, and the values returned by getObjectId() and getAccessType() are equal.


Method Summary
 AccessReporter.AccessType getAccessType()
          Returns the type of access requested.
 Object getDescription()
          Returns the supplied description of the object, if any.
 Object getObjectId()
          Returns the identifier for the accessed object.
 String getSource()
          Returns the name of the source that reported this object access.
 

Method Detail

getObjectId

Object getObjectId()
Returns the identifier for the accessed object.

Returns:
the identifier for the accessed object

getAccessType

AccessReporter.AccessType getAccessType()
Returns the type of access requested.

Returns:
the AccessType

getDescription

Object getDescription()
Returns the supplied description of the object, if any.

Returns:
the associated description, or null
See Also:
AccessReporter.setObjectDescription(Object,Object)

getSource

String getSource()
Returns the name of the source that reported this object access.

Returns:
the object's source

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved