com.bigdata.service
Class EventResource

java.lang.Object
  extended by com.bigdata.service.EventResource
All Implemented Interfaces:
Serializable

public class EventResource
extends Object
implements Serializable

Semi-structured representation of the data service on which the event occurred, the name of the index, and the index partition identifier.

Version:
$Id: EventResource.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson
See Also:
Serialized Form

Field Summary
 String file
          The file when the resource is a component of an index partition view (the journal or index segment file) and an empty string when not known / available.
 String indexName
          The name of the scale-out index and an empty string when not known / available.
 String partitionId
          The index partition identifier and an empty string when not known / available.
 
Constructor Summary
EventResource()
          Ctor when there is no index resource for the event (the service on which the event is generated is always supplied).
EventResource(IndexMetadata md)
          Forgiving ctor that does the right thing when the IndexMetadata object exists.
EventResource(IndexMetadata md, File file)
          Forgiving ctor does the right thing if the IndexMetadata exists.
EventResource(String indexName)
           
EventResource(String indexName, int partitionId)
           
EventResource(String indexName, int partitionId, File file)
           
EventResource(String indexName, String partitionId, String file)
           
 
Method Summary
 String toString()
          Formats the resource (indexName, partitionId, and file) in a manner designed to give pleasing results when aggregating Events by EventResource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

indexName

public final String indexName
The name of the scale-out index and an empty string when not known / available.


partitionId

public final String partitionId
The index partition identifier and an empty string when not known / available.


file

public final String file
The file when the resource is a component of an index partition view (the journal or index segment file) and an empty string when not known / available.

Constructor Detail

EventResource

public EventResource()
Ctor when there is no index resource for the event (the service on which the event is generated is always supplied).


EventResource

public EventResource(String indexName)

EventResource

public EventResource(IndexMetadata md)
Forgiving ctor that does the right thing when the IndexMetadata object exists.

Parameters:
md -

EventResource

public EventResource(String indexName,
                     int partitionId)

EventResource

public EventResource(IndexMetadata md,
                     File file)
Forgiving ctor does the right thing if the IndexMetadata exists.

Parameters:
md - Optional.
file - Required.

EventResource

public EventResource(String indexName,
                     int partitionId,
                     File file)

EventResource

public EventResource(String indexName,
                     String partitionId,
                     String file)
Method Detail

toString

public String toString()
Formats the resource (indexName, partitionId, and file) in a manner designed to give pleasing results when aggregating Events by EventResource.

Overrides:
toString in class Object


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.