org.caleigo.service
Interface IProxyService

All Superinterfaces:
IDistributable, IService, java.io.Serializable
All Known Implementing Classes:
LoginService.LoginProxyService, ServiceProviderServer.MessageConsumer.ProxyService, TunneledDataService

public interface IProxyService
extends IService

An IProxyService is a proxy for a remote IService. It handles invokations on a service interface by communicating with a remote IService with the help of an ITunnel.

Version:
1.00
Author:
Mattias Hagstrand

Method Summary
 boolean isReconnectable()
          Returns true if this IProxyService can be reconnected to an IService.
 void reconnect(ITunnel tunnel)
          Tries to reconnect to the provided service.
 void setServiceTunnel(ITunnel tunnel)
          Sets the ITunnel that should be used by this IProxyService.
 
Methods inherited from interface org.caleigo.service.IService
finalizeService, getCustomProxyService, getServiceIdentity, getServiceInterface, getServiceInterfaceClass, getServiceType, hasCustomProxyService, initializeService, ping
 

Method Detail

isReconnectable

public boolean isReconnectable()
Returns true if this IProxyService can be reconnected to an IService.


reconnect

public void reconnect(ITunnel tunnel)
               throws ServiceException
Tries to reconnect to the provided service. If the reconnection fails or if this IProxyService doesn't support reconnection an exception is thrown.

Throws:
ServiceException

setServiceTunnel

public void setServiceTunnel(ITunnel tunnel)
Sets the ITunnel that should be used by this IProxyService.



Copyright © 2005 Caleigo. All Rights Reserved.