org.glite.ce.monitorapij.types
Class Topic

java.lang.Object
  extended byorg.glite.ce.monitorapij.types.TopicBase
      extended byorg.glite.ce.monitorapij.types.Topic
All Implemented Interfaces:
java.io.Serializable

public class Topic
extends TopicBase

This class identifies a class of sensor and specifies the _Dialects it supports.

Author:
Luigi Zangrando (zangrando@pd.infn.it)
See Also:
Serialized Form

Constructor Summary
Topic()
          Creates a new _Topic object without name.
Topic(java.lang.String topicName)
          Creates a new _Topic object specifying its name.
 
Method Summary
 boolean checkSupportedDialect(Dialect dlct)
          Check if the specified _Dialect is supported by this topic.
 Dialect getDialect(java.lang.String dialectName)
          Get the _Dialect specified by its name if it is supported by the topic.
 
Methods inherited from class org.glite.ce.monitorapij.types.TopicBase
equals, getDeserializer, getDialect, getDialect, getName, getSerializer, getTypeDesc, hashCode, setDialect, setDialect, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Topic

public Topic()
Creates a new _Topic object without name.


Topic

public Topic(java.lang.String topicName)
Creates a new _Topic object specifying its name.

Parameters:
topicName - The name of this topic.
Method Detail

getDialect

public Dialect getDialect(java.lang.String dialectName)
Get the _Dialect specified by its name if it is supported by the topic.

Parameters:
dialectName - The name of the searched dialect.
Returns:
The searched Dialect if it is supported by the topic, null otherwise.

checkSupportedDialect

public boolean checkSupportedDialect(Dialect dlct)
Check if the specified _Dialect is supported by this topic.

Parameters:
dlct - The _Dialect which is to be verified.
Returns:
True if the specified Dialect is supported. False otherwise.