org.neo.swarm.interceptor.tcp
Class TcpClientInterceptor
java.lang.Object
org.neo.swarm.interceptor.tcp.TcpClientInterceptor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, MethodInterceptor, java.io.Serializable
- public class TcpClientInterceptor
- extends java.lang.Object
- implements MethodInterceptor
Aspect that provides a tcpClient for sending invocations across the wire using using Tcp along with the given serializer.
Note: The TcpInput/OutputStreams use a custom protocols.
Note: SyncLock determines the syncronous nature of the invocation. When synclock is true the sending thread waits for a response
from the recipient, this allows the propogation of exceptions back to the caller. Whe synclock is false, exception will not be reported
back to the caller.
- Author:
- navery
- See Also:
PacketInputStream,
PacketOutputStream,
Serialized Form
|
Method Summary |
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation)
use the tcp sender to pass off to the recipient |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcpClientInterceptor
public TcpClientInterceptor(java.net.InetAddress host,
int port,
TcpSenderFactoryI tcpFactory,
Serializer serializer)
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws java.lang.Exception
- use the tcp sender to pass off to the recipient
- Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
- Throws:
java.lang.Exception- See Also:
org.neo.swarm.interceptor.Interceptor#invoke(java.lang.reflect.Method,
java.lang.Object[])
Copyright © 2001-2004 SWARM-ONE -First Generation (S)calable(W)ide(AR)ea(M)esh. All Rights Reserved.