|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.remote.RemoteCacheClientTester
public class RemoteCacheClientTester
Manual tester.
| Field Summary | |
|---|---|
protected ICacheService<String,String> |
cache
the service |
protected static long |
listenerId
Description of the Field |
protected ICacheObserver |
watch
the observer |
| Fields inherited from interface org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheListener |
|---|
CLIENT_LISTENER, SERVER_LISTENER |
| Fields inherited from interface org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheConstants |
|---|
CACHE_SERVER_ATTRIBUTES_PROPERTY_PREFIX, CACHE_SERVER_PREFIX, CUSTOM_RMI_SOCKET_FACTORY_PROPERTY_PREFIX, PROPERTY_PREFIX, REMOTE_ALLOW_CLUSTER_GET, REMOTE_CACHE_SERVICE_NAME, REMOTE_CACHE_SERVICE_PORT, REMOTE_CACHE_SERVICE_VAL, REMOTE_LOCAL_CLUSTER_CONSISTENCY, SOCKET_TIMEOUT_MILLIS, TOMCAT_ON, TOMCAT_XML |
| Constructor Summary | |
|---|---|
RemoteCacheClientTester(int count)
Constructor for the RemoteCacheClientTest object |
|
RemoteCacheClientTester(int count,
boolean write,
boolean read,
boolean delete)
Constructor for the RemoteCacheClientTest object |
|
RemoteCacheClientTester(String host,
int port,
int count,
boolean write,
boolean read,
boolean delete)
Constructor for the RemoteCacheClientTest object |
|
| Method Summary | |
|---|---|
void |
dispose()
|
long |
getListenerId()
Gets the listenerId attribute of the RemoteCacheClientTest object |
String |
getLocalHostAddress()
|
RemoteType |
getRemoteType()
Gets the remoteType attribute of the RemoteCacheClientTest object |
void |
handleDispose(String cacheName)
|
void |
handlePut(ICacheElement<String,String> cb)
|
void |
handleRemove(String cacheName,
String key)
|
void |
handleRemoveAll(String cacheName)
|
static void |
main(String[] args)
The main program for the RemoteCacheClientTest class |
void |
setListenerId(long id)
Sets the listenerId attribute of the RemoteCacheClientTest object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ICacheObserver watch
protected ICacheService<String,String> cache
protected static long listenerId
| Constructor Detail |
|---|
public RemoteCacheClientTester(int count)
throws MalformedURLException,
NotBoundException,
IOException
count -
MalformedURLException
NotBoundException
IOException
public RemoteCacheClientTester(int count,
boolean write,
boolean read,
boolean delete)
throws MalformedURLException,
NotBoundException,
IOException
count - write - read - delete -
MalformedURLException
NotBoundException
IOException
public RemoteCacheClientTester(String host,
int port,
int count,
boolean write,
boolean read,
boolean delete)
throws MalformedURLException,
NotBoundException,
IOException
host - port - count - write - read - delete -
MalformedURLException
NotBoundException
IOException| Method Detail |
|---|
public RemoteType getRemoteType()
throws IOException
getRemoteType in interface IRemoteCacheListener<String,String>IOException
public void handlePut(ICacheElement<String,String> cb)
throws IOException
handlePut in interface ICacheListener<String,String>cb -
IOException
public void handleRemove(String cacheName,
String key)
throws IOException
handleRemove in interface ICacheListener<String,String>cacheName - key -
IOException
public void handleRemoveAll(String cacheName)
throws IOException
handleRemoveAll in interface ICacheListener<String,String>cacheName -
IOException
public void handleDispose(String cacheName)
throws IOException
handleDispose in interface ICacheListener<String,String>cacheName -
IOException
public static void main(String[] args)
throws Exception
args - The command line arguments
Exception
public void setListenerId(long id)
throws IOException
setListenerId in interface IRemoteCacheListener<String,String>setListenerId in interface ICacheListener<String,String>id - The new listenerId value
IOException
public long getListenerId()
throws IOException
getListenerId in interface IRemoteCacheListener<String,String>getListenerId in interface ICacheListener<String,String>IOException
public String getLocalHostAddress()
throws IOException
getLocalHostAddress in interface IRemoteCacheListener<String,String>IOException
public void dispose()
throws IOException
dispose in interface IRemoteCacheListener<String,String>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||