org.apache.activemq.command
Class BaseEndpoint

java.lang.Object
  extended by org.apache.activemq.command.BaseEndpoint
All Implemented Interfaces:
Endpoint
Direct Known Subclasses:
DatagramEndpoint

public class BaseEndpoint
extends Object
implements Endpoint

A default endpoint.


Constructor Summary
BaseEndpoint(String name)
           
 
Method Summary
 BrokerId getBrokerId()
          Returns the broker ID for this endpoint, if the endpoint is a broker or null
 BrokerInfo getBrokerInfo()
          Returns the broker information for this endpoint, if the endpoint is a broker or null
 String getName()
          Returns the name of the endpoint.
 void setBrokerInfo(BrokerInfo brokerInfo)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseEndpoint

public BaseEndpoint(String name)
Method Detail

getName

public String getName()
Description copied from interface: Endpoint
Returns the name of the endpoint.

Specified by:
getName in interface Endpoint

toString

public String toString()
Overrides:
toString in class Object

getBrokerId

public BrokerId getBrokerId()
Returns the broker ID for this endpoint, if the endpoint is a broker or null

Specified by:
getBrokerId in interface Endpoint

getBrokerInfo

public BrokerInfo getBrokerInfo()
Returns the broker information for this endpoint, if the endpoint is a broker or null

Specified by:
getBrokerInfo in interface Endpoint

setBrokerInfo

public void setBrokerInfo(BrokerInfo brokerInfo)
Specified by:
setBrokerInfo in interface Endpoint


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.