org.glite.rgma
Class ProducerProperties

java.lang.Object
  extended byorg.glite.rgma.ProducerProperties

public class ProducerProperties
extends java.lang.Object

Properties of a Primary or Secondary Producer.


Field Summary
static int HISTORY
          Producer supports HISTORY queries.
static int LATEST
          Producer supports LATEST queries.
 
Constructor Summary
ProducerProperties(Storage storage, int supportedQueries)
          Creates a new ProducerProperties object.
ProducerProperties(Storage storage, int supportedQueries, boolean ignoreSlowConsumers)
          Deprecated.  
 
Method Summary
 Storage getStorage()
          Gets the storage location for this Producer.
 boolean ignoreSlowConsumers()
          Deprecated.  
 boolean isHistory()
          Determines the Producer's support for history queries.
 boolean isLatest()
          Determines the Producer's support for latest queries.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HISTORY

public static final int HISTORY
Producer supports HISTORY queries.

See Also:
Constant Field Values

LATEST

public static final int LATEST
Producer supports LATEST queries.

See Also:
Constant Field Values
Constructor Detail

ProducerProperties

public ProducerProperties(Storage storage,
                          int supportedQueries)
Creates a new ProducerProperties object.

Parameters:
storage - The storage location for tuples.
supportedQueries - Queries supported by producer (in addition to CONTINUOUS). Possible values are: 0, HISTORY, LATEST or HISTORY+LATEST.
See Also:
ProducerProperties(Storage, int, boolean)

ProducerProperties

public ProducerProperties(Storage storage,
                          int supportedQueries,
                          boolean ignoreSlowConsumers)
Deprecated.  

Creates a new ProducerProperties object.

Parameters:
storage - The storage location for tuples.
supportedQueries - Queries supported by producer (in addition to CONTINUOUS). Possible values are: 0, HISTORY, LATEST or HISTORY+LATEST.
ignoreSlowConsumers - Set true if the Producer should ignore slow Consumers if they are preventing tuple deletion.
See Also:
ProducerProperties(Storage, int)
Method Detail

isHistory

public boolean isHistory()
Determines the Producer's support for history queries.

Returns:
true if the Producer supports history queries.

isLatest

public boolean isLatest()
Determines the Producer's support for latest queries.

Returns:
true if the Producer supports latest queries.

ignoreSlowConsumers

public boolean ignoreSlowConsumers()
Deprecated.  

Determines if the Producer will block on slow Consumers.

Returns:
true if the Producer blocks on slow Consumers.

getStorage

public Storage getStorage()
Gets the storage location for this Producer.

Returns:
The Storage object for this Producer.

toString

public java.lang.String toString()
Returns a string representation of the object.

Returns:
A string representation of the object.
See Also:
Object.toString()