org.apache.geronimo.messaging.remotenode.network
Class NodeServerImpl

java.lang.Object
  extended byorg.apache.geronimo.messaging.remotenode.network.NodeServerImpl
All Implemented Interfaces:
NodeServer, org.apache.geronimo.network.protocol.ProtocolFactory.AcceptedCallBack

public class NodeServerImpl
extends Object
implements NodeServer, org.apache.geronimo.network.protocol.ProtocolFactory.AcceptedCallBack

NodeServer implementation.

Version:
$Revision: 1.6 $ $Date: 2004/07/20 00:15:05 $

Constructor Summary
NodeServerImpl(NodeInfo aNodeInfo, IOContext anIOContext, org.apache.geronimo.network.SelectorManager aSelectorManager, org.apache.geronimo.pool.ClockPool aClockPool)
           
 
Method Summary
 void accepted(org.apache.geronimo.network.protocol.AcceptableProtocol aProtocol)
           
 void setRemoteNodeManager(RemoteNodeManager aManager)
          Sets the RemoteNodeManager in charge of managing the remote nodes, which have joined this server.
 void start()
          Start the server.
 void stop()
          Stop the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeServerImpl

public NodeServerImpl(NodeInfo aNodeInfo,
                      IOContext anIOContext,
                      org.apache.geronimo.network.SelectorManager aSelectorManager,
                      org.apache.geronimo.pool.ClockPool aClockPool)
Method Detail

start

public void start()
           throws NodeException
Description copied from interface: NodeServer
Start the server.

Specified by:
start in interface NodeServer
Throws:
NodeException - If the server can not be started.

stop

public void stop()
Description copied from interface: NodeServer
Stop the server.

Specified by:
stop in interface NodeServer

setRemoteNodeManager

public void setRemoteNodeManager(RemoteNodeManager aManager)
Description copied from interface: NodeServer
Sets the RemoteNodeManager in charge of managing the remote nodes, which have joined this server.
A NodeServer must notify this RemoteNodeManager when a new connection abstracting a remote note has joined it.

Specified by:
setRemoteNodeManager in interface NodeServer
Parameters:
aManager - Manager of RemoteNode.

accepted

public void accepted(org.apache.geronimo.network.protocol.AcceptableProtocol aProtocol)
              throws org.apache.geronimo.network.protocol.ProtocolException
Specified by:
accepted in interface org.apache.geronimo.network.protocol.ProtocolFactory.AcceptedCallBack
Throws:
org.apache.geronimo.network.protocol.ProtocolException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.