org.apache.cassandra.db
Class CalloutManager

java.lang.Object
  extended by org.apache.cassandra.db.CalloutManager

public class CalloutManager
extends java.lang.Object


Method Summary
 void addCallout(java.lang.String callout, java.lang.String script)
          Store the callout in cache and write it out to disk.
 java.lang.Object executeCallout(java.lang.String callout, java.lang.Object... args)
          Execute the specified callout.
static CalloutManager instance()
           
 void removeCallout(java.lang.String callout)
          Remove the registered callout and delete the script on the disk.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static CalloutManager instance()

addCallout

public void addCallout(java.lang.String callout,
                       java.lang.String script)
                throws java.io.IOException
Store the callout in cache and write it out to disk.

Parameters:
callout - the name of the callout
script - actual implementation of the callout
Throws:
java.io.IOException

removeCallout

public void removeCallout(java.lang.String callout)
Remove the registered callout and delete the script on the disk.

Parameters:
callout - to be removed

executeCallout

public java.lang.Object executeCallout(java.lang.String callout,
                                       java.lang.Object... args)
Execute the specified callout.

Parameters:
callout - to be executed.
args - arguments to be passed to the callouts.


Copyright © 2009 The Apache Software Foundation