org.apache.jcs.auxiliary.remote.behavior
Interface IRemoteCacheListener

All Superinterfaces:
ICacheListener, java.rmi.Remote
All Known Implementing Classes:
AbsractRemoteCacheListener, RemoteCacheListener, RemoteHttpClientListener

public interface IRemoteCacheListener
extends ICacheListener, java.rmi.Remote

Listens for remote cache event notification ( rmi callback ).


Field Summary
static int CLIENT_LISTENER
          CLIENT_LISTENER -- these aren't used any longer.
static int SERVER_LISTENER
          SERVER_LISTENER -- for the cluster
 
Method Summary
 void dispose()
          Deregisters itself.
 long getListenerId()
          Get the id to be used by this manager.
 java.lang.String getLocalHostAddress()
          This is for debugging.
 int getRemoteType()
          Gets the remoteType attribute of the IRemoteCacheListener object
 void setListenerId(long id)
          Set the id to be used by this manager.
 
Methods inherited from interface org.apache.jcs.engine.behavior.ICacheListener
handleDispose, handlePut, handleRemove, handleRemoveAll
 

Field Detail

SERVER_LISTENER

static final int SERVER_LISTENER
SERVER_LISTENER -- for the cluster

See Also:
Constant Field Values

CLIENT_LISTENER

static final int CLIENT_LISTENER
CLIENT_LISTENER -- these aren't used any longer. remove

See Also:
Constant Field Values
Method Detail

getListenerId

long getListenerId()
                   throws java.io.IOException
Get the id to be used by this manager.

Specified by:
getListenerId in interface ICacheListener
Returns:
long
Throws:
java.io.IOException

setListenerId

void setListenerId(long id)
                   throws java.io.IOException
Set the id to be used by this manager. The remote cache server identifies clients by this id. The value will be set by the server through the remote cache listener.

Specified by:
setListenerId in interface ICacheListener
Parameters:
id -
Throws:
java.io.IOException

getRemoteType

int getRemoteType()
                  throws java.io.IOException
Gets the remoteType attribute of the IRemoteCacheListener object

Returns:
The remoteType value
Throws:
java.io.IOException

getLocalHostAddress

java.lang.String getLocalHostAddress()
                                     throws java.io.IOException
This is for debugging. It allows the remote cache server to log the address of any listeners that register.

Returns:
the local host address.
Throws:
java.io.IOException

dispose

void dispose()
             throws java.io.IOException
Deregisters itself.

Throws:
java.io.IOException


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.