By default, the controller tries to invoke a method called "run
" with no arguments on the specified object.
The following simple command invokes the run method on the BaselineUpdate script object:
java Controller --app-config AppConfig.xml BaselineUpdate
If a method name is specified, the controller looks for a method with that name on the specified object and invokes it. For example, the following command executes the applyIndex
method on the DgraphCluster
object:
java Controller --app-config AppConfig.xml DgraphCluster applyIndex
In addition to no-argument method invocation, the controller allows any number of String arguments to be passed to a method. The following example shows the releaseLock
method being invoked on the LockManager object with the single String argument "update_lock
" specifying the name of the lock to release:
java Controller --app-config AppConfig.xml LockManager releaseLock update_lock