Skip to content

Commit

Permalink
Add disconnect to Market Data Module MX API
Browse files Browse the repository at this point in the history
git-svn-id: https://source.marketcetera.org/root/trunk@17302 501a4a96-914b-0410-8454-f5988a4ca596
  • Loading branch information
colin committed Oct 27, 2016
1 parent 48fbe02 commit 6fe03d2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.marketcetera.module.DataEmitterSupport;
import org.marketcetera.module.DataFlowID;
import org.marketcetera.module.DataRequest;
import org.marketcetera.module.DisplayName;
import org.marketcetera.module.IllegalRequestParameterValue;
import org.marketcetera.module.Module;
import org.marketcetera.module.ModuleException;
Expand Down Expand Up @@ -99,6 +100,15 @@ public final String getFeedStatus()
}
return feedStatus.toString();
}
/* (non-Javadoc)
* @see org.marketcetera.marketdata.AbstractMarketDataModuleMXBean#disconnect()
*/
@Override
@DisplayName("Causes the feed to disconnect")
public void disconnect()
{
feed.logout();
}
/* (non-Javadoc)
* @see org.marketcetera.marketdata.AbstractMarketDataModuleMXBean#reconnect()
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public interface AbstractMarketDataModuleMXBean
*/
@DisplayName("Causes the feed to resubmit existing queries")
public void reconnect();
/**
* Disconnect from the feed.
*/
@DisplayName("Causes the feed to disconnect")
public void disconnect();
/**
* Gets the set of capabilities for this market data feed.
*
Expand Down

0 comments on commit 6fe03d2

Please sign in to comment.