Class ConnectorsService
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.impl.ConnectorsService
-
- All Implemented Interfaces:
ActiveMQComponent
public final class ConnectorsService extends Object implements ActiveMQComponent
ConnectorsService will pool some resource for updates, e.g. Twitter, then the changes are picked and converted into a ServerMessage for a given destination (queue).It may also listen to a queue, and forward them (e.g. messages arriving at the queue are picked and tweeted to some Twitter account).
-
-
Constructor Summary
Constructors Constructor Description ConnectorsService(Configuration configuration, StorageManager storageManager, ScheduledExecutorService scheduledPool, PostOffice postOffice, ServiceRegistry serviceRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateService(ConnectorServiceConfiguration info, ConnectorServiceFactory factory)voiddestroyService(String name)Map<String,ConnectorService>getConnectors()booleanisStarted()voidstart()voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
-
-
-
Constructor Detail
-
ConnectorsService
public ConnectorsService(Configuration configuration, StorageManager storageManager, ScheduledExecutorService scheduledPool, PostOffice postOffice, ServiceRegistry serviceRegistry)
-
-
Method Detail
-
start
public void start() throws Exception- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
createService
public void createService(ConnectorServiceConfiguration info, ConnectorServiceFactory factory) throws Exception
- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceActiveMQComponent- Throws:
Exception
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceActiveMQComponent
-
getConnectors
public Map<String,ConnectorService> getConnectors()
-
-