Package org.apache.activemq.command
Class BaseEndpoint
- java.lang.Object
-
- 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
Constructors Constructor Description BaseEndpoint(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BrokerId
getBrokerId()
Returns the broker ID for this endpoint, if the endpoint is a broker or nullBrokerInfo
getBrokerInfo()
Returns the broker information for this endpoint, if the endpoint is a broker or nullString
getName()
Returns the name of the endpoint.void
setBrokerInfo(BrokerInfo brokerInfo)
String
toString()
-
-
-
Constructor Detail
-
BaseEndpoint
public BaseEndpoint(String name)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Endpoint
Returns the name of the endpoint.
-
getBrokerId
public BrokerId getBrokerId()
Returns the broker ID for this endpoint, if the endpoint is a broker or null- Specified by:
getBrokerId
in interfaceEndpoint
-
getBrokerInfo
public BrokerInfo getBrokerInfo()
Returns the broker information for this endpoint, if the endpoint is a broker or null- Specified by:
getBrokerInfo
in interfaceEndpoint
-
setBrokerInfo
public void setBrokerInfo(BrokerInfo brokerInfo)
- Specified by:
setBrokerInfo
in interfaceEndpoint
-
-