Search in sources :

Example 11 with Channel

use of io.joynr.messaging.info.Channel in project joynr by bmwcarit.

the class ChannelServiceImpl method listChannels.

/*
     * (non-Javadoc)
     * 
     * @see io.joynr.messaging.service.ChannelServiceDelegate#listChannels()
     */
@Override
public List<ChannelInformation> listChannels() {
    List<Channel> channels = channelDirectory.getChannels();
    List<ChannelInformation> channelInformationList = new LinkedList<ChannelInformation>();
    for (Channel channel : channels) {
        ChannelInformation channelInfo = new ChannelInformation(channel.getChannelId(), 0, 0);
        channelInformationList.add(channelInfo);
    }
    return channelInformationList;
}
Also used : ChannelInformation(io.joynr.messaging.info.ChannelInformation) Channel(io.joynr.messaging.info.Channel) LinkedList(java.util.LinkedList)

Aggregations

Channel (io.joynr.messaging.info.Channel)11 ControlledBounceProxyInformation (io.joynr.messaging.info.ControlledBounceProxyInformation)5 Test (org.junit.Test)5 URI (java.net.URI)2 LinkedList (java.util.LinkedList)2 EntityManager (javax.persistence.EntityManager)2 Query (javax.persistence.Query)2 JoynrHttpException (io.joynr.communications.exceptions.JoynrHttpException)1 JoynrCommunicationException (io.joynr.exceptions.JoynrCommunicationException)1 JoynrRuntimeException (io.joynr.exceptions.JoynrRuntimeException)1 BounceProxyRecord (io.joynr.messaging.bounceproxy.controller.directory.BounceProxyRecord)1 ChannelEntity (io.joynr.messaging.bounceproxy.controller.directory.jdbc.entities.ChannelEntity)1 BounceProxyInformation (io.joynr.messaging.info.BounceProxyInformation)1 ChannelInformation (io.joynr.messaging.info.ChannelInformation)1 EntityTransaction (javax.persistence.EntityTransaction)1 POST (javax.ws.rs.POST)1 Produces (javax.ws.rs.Produces)1 WebApplicationException (javax.ws.rs.WebApplicationException)1 Ignore (org.junit.Ignore)1