|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.memcached.TapClient
public class TapClient
| Constructor Summary | |
|---|---|
TapClient(InetSocketAddress... ia)
Creates a TapClient against the specified servers. |
|
TapClient(List<InetSocketAddress> addrs)
Creates a TapClient against the specified servers. |
|
TapClient(List<URI> baseList,
String bucketName,
String usr,
String pwd)
Creates a cluster aware TapClient This type of TapClient will TAP all servers in the specified cluster and will react to changes in the number of cluster nodes. |
|
| Method Summary | |
|---|---|
long |
getMessagesRead()
The number of messages read by all of the tap streams created with this client. |
ResponseMessage |
getNextMessage()
Gets the next tap message from the queue of received tap messages. |
ResponseMessage |
getNextMessage(long time,
TimeUnit timeunit)
Gets the next tap message from the queue of received tap messages. |
boolean |
hasMoreMessages()
Decides whether the client has received tap messages or will receive more messages in the future. |
void |
shutdown()
Shuts down all tap streams that are currently running. |
Operation |
tapBackfill(String id,
int runTime,
TimeUnit timeunit)
Specifies a tap stream that will send all key-value mutations that take place in the future. |
Operation |
tapBackfill(String id,
long date,
int runTime,
TimeUnit timeunit)
Specifies a tap stream that will send all key-value mutations that took place after a specific date. |
Operation |
tapCustom(String id,
RequestMessage message,
String keyFilter,
String valueFilter)
Allows the user to specify a custom tap message. |
Operation |
tapDump(String id)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TapClient(InetSocketAddress... ia)
ia - the addresses of each node in the cluster.public TapClient(List<InetSocketAddress> addrs)
addrs - a list of addresses containing each node in the cluster.
public TapClient(List<URI> baseList,
String bucketName,
String usr,
String pwd)
baseList - a list of servers to get the cluster configuration from.bucketName - the name of the bucket to tap.usr - the buckets username.pwd - the buckets password.| Method Detail |
|---|
public ResponseMessage getNextMessage()
public ResponseMessage getNextMessage(long time,
TimeUnit timeunit)
time - the amount of time to wait for a message.timeunit - the unit of time to use.
public boolean hasMoreMessages()
public Operation tapCustom(String id,
RequestMessage message,
String keyFilter,
String valueFilter)
throws ConfigurationException,
IOException
id - the named tap id that can be used to resume a disconnected
tap streammessage - the custom tap message that will be used to initiate the
tap stream.
ConfigurationException - a bad configuration was recieved from the
Membase cluster.
IOException - if there are errors connecting to the cluster.
public Operation tapBackfill(String id,
int runTime,
TimeUnit timeunit)
throws IOException,
ConfigurationException
id - the named tap id that can be used to resume a disconnected
tap streamrunTime - the amount of time to do backfill for. Set to 0 for
infinite backfill.timeunit - the unit of time for the runtime parameter.
ConfigurationException - a bad configuration was recieved from the
Membase cluster.
IOException - If there are errors connecting to the cluster.
public Operation tapBackfill(String id,
long date,
int runTime,
TimeUnit timeunit)
throws IOException,
ConfigurationException
id - the named tap id that can be used to resume a disconnected
tap streamdate - the date to begin sending key mutations from. Specify -1
to send all future key-value mutations.runTime - the amount of time to do backfill for. Set to 0 for
infinite backfill.timeunit - the unit of time for the runtime parameter.
ConfigurationException - a bad configuration was recieved from the
Membase cluster.
IOException - If there are errors connecting to the cluster.
public Operation tapDump(String id)
throws IOException,
ConfigurationException
IOException
ConfigurationExceptionpublic void shutdown()
public long getMessagesRead()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||