|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.caleigo.service.ServiceProviderServer.MessageConsumer.ProxyService
This class wrapps an IService and implements the methods in IProxyService. This class is used to provide IProxyService functionallity for a proxy that has been created for a IService that doesn't have a custom proxy service.
Field Summary | |
protected IService |
mService
|
Constructor Summary | |
ServiceProviderServer.MessageConsumer.ProxyService(IService service)
|
Method Summary | |
void |
finalizeService()
This method is always called by the ServiceManager before the service is released. |
IProxyService |
getCustomProxyService(ITunnel tunnel)
Returns an IProxyService that is responsible for handling remote invokations of this service. |
java.lang.Object |
getServiceIdentity()
Returns the URI defining the a unique individual service. |
java.lang.Object |
getServiceInterface()
Returns the service object that this service provides. |
java.lang.Class |
getServiceInterfaceClass()
Returns the class object the defines the service interface that all services with the same type provides. |
java.lang.Object |
getServiceType()
Returns a URI that defines the type of this service. |
boolean |
hasCustomProxyService()
If this method returns true then the method getCustomProxyService must not return null . |
void |
initializeService()
This method is always called by the ServiceManager before any other method in the service is called. |
boolean |
isReconnectable()
Returns true if this IProxyService can be reconnected to
an IService. |
boolean |
ping()
Should return true if the service is online and reponding to calls. |
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 class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IService mService
Constructor Detail |
public ServiceProviderServer.MessageConsumer.ProxyService(IService service)
Method Detail |
public void initializeService()
initializeService
in interface IService
public void finalizeService()
finalizeService
in interface IService
public boolean ping()
ping
in interface IService
public java.lang.Object getServiceInterface()
getServiceInterface
in interface IService
public java.lang.Class getServiceInterfaceClass()
getServiceInterfaceClass
in interface IService
public java.lang.Object getServiceType()
getServiceType
in interface IService
public java.lang.Object getServiceIdentity()
getServiceIdentity
in interface IService
public boolean hasCustomProxyService()
null
.
hasCustomProxyService
in interface IService
public IProxyService getCustomProxyService(ITunnel tunnel)
getCustomProxyService
in interface IService
public boolean isReconnectable()
true
if this IProxyService can be reconnected to
an IService.
isReconnectable
in interface IProxyService
public void reconnect(ITunnel tunnel) throws ServiceException
reconnect
in interface IProxyService
ServiceException
public void setServiceTunnel(ITunnel tunnel)
setServiceTunnel
in interface IProxyService
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |