org.drools.grid.impl
Class MultiplexSocketServerImpl

java.lang.Object
  extended by org.drools.grid.impl.MultiplexSocketServerImpl
All Implemented Interfaces:
SocketService

public class MultiplexSocketServerImpl
extends Object
implements SocketService


Constructor Summary
MultiplexSocketServerImpl(String ip, AcceptorFactoryService factory, org.drools.SystemEventListener l, Grid grid)
           
 
Method Summary
 void addService(String id, int port, Object object)
           
 void close()
           
<T> GridConnection<T>
getConnection(GridServiceDescription<T> gsd)
           
 String getIp()
           
 Set<Integer> getPorts()
           
 void removeService(int socket, String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiplexSocketServerImpl

public MultiplexSocketServerImpl(String ip,
                                 AcceptorFactoryService factory,
                                 org.drools.SystemEventListener l,
                                 Grid grid)
Method Detail

addService

public void addService(String id,
                       int port,
                       Object object)
Specified by:
addService in interface SocketService

removeService

public void removeService(int socket,
                          String id)
Specified by:
removeService in interface SocketService

close

public void close()
Specified by:
close in interface SocketService

getIp

public String getIp()
Specified by:
getIp in interface SocketService

getPorts

public Set<Integer> getPorts()
Specified by:
getPorts in interface SocketService

getConnection

public <T> GridConnection<T> getConnection(GridServiceDescription<T> gsd)


Copyright © 2001-2011 JBoss by Red Hat. All Rights Reserved.