org.rhq.enterprise.communications.command.server
Class CommandServiceDirectoryEntry

java.lang.Object
  extended by org.rhq.enterprise.communications.command.server.CommandServiceDirectoryEntry
All Implemented Interfaces:
Serializable

public class CommandServiceDirectoryEntry
extends Object
implements Serializable

Encapsulates the information from a single entry in the command service directory. An entry tells you the name of the command service that supports the entry's command type in the entry's subsystem.

Author:
John Mazzitelli
See Also:
Serialized Form

Constructor Summary
CommandServiceDirectoryEntry(String subsystem, CommandType commandType, ObjectName commandServiceName)
          Constructor for CommandServiceDirectoryEntry.
 
Method Summary
 boolean equals(Object obj)
           
 ObjectName getCommandServiceName()
          Returns the value of commandServiceName.
 CommandType getCommandType()
          Returns the value of commandType.
 String getSubsystem()
          Returns the value of subsystem.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandServiceDirectoryEntry

public CommandServiceDirectoryEntry(String subsystem,
                                    CommandType commandType,
                                    ObjectName commandServiceName)
                             throws IllegalArgumentException
Constructor for CommandServiceDirectoryEntry.

Parameters:
subsystem - the entry's subsystem (may be null)
commandType - the entry's command type (must not be null)
commandServiceName - the entry's command service name (must not be null)
Throws:
IllegalArgumentException - if a non-null able argument is null
Method Detail

getSubsystem

public String getSubsystem()
Returns the value of subsystem. The returned value may be null, which represents the unnamed, anonymous subsystem.

Returns:
subsystem

getCommandType

public CommandType getCommandType()
Returns the value of commandType.

Returns:
commandType

getCommandServiceName

public ObjectName getCommandServiceName()
Returns the value of commandServiceName.

Returns:
commandServiceName

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.