Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.console.text.commands.dbadmin.TransferBackend Class Reference

Inheritance diagram for org.objectweb.cjdbc.console.text.commands.dbadmin.TransferBackend:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.console.text.commands.dbadmin.TransferBackend:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TransferBackend (VirtualDatabaseAdmin module)
void parse (String commandText) throws Exception
String getCommandName ()
String getCommandDescription ()
String getCommandParameters ()

Detailed Description

This class defines a transferBackend

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 39 of file TransferBackend.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.console.text.commands.dbadmin.TransferBackend.TransferBackend VirtualDatabaseAdmin  module  ) 
 

Creates a new transferBackend object

Parameters:
module the command is attached to

Definition at line 47 of file TransferBackend.java.

00048   {
00049     super(module);
00050   }


Member Function Documentation

String org.objectweb.cjdbc.console.text.commands.dbadmin.TransferBackend.getCommandDescription  )  [virtual]
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandDescription()

Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand.

Definition at line 90 of file TransferBackend.java.

00091   {
00092     return ConsoleTranslate.get("admin.command.transfer");
00093   }

String org.objectweb.cjdbc.console.text.commands.dbadmin.TransferBackend.getCommandName  )  [virtual]
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandName()

Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand.

Definition at line 82 of file TransferBackend.java.

00083   {
00084     return "transfer";
00085   }

String org.objectweb.cjdbc.console.text.commands.dbadmin.TransferBackend.getCommandParameters  ) 
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandParameters()

Reimplemented from org.objectweb.cjdbc.console.text.commands.ConsoleCommand.

Definition at line 98 of file TransferBackend.java.

00099   {
00100     return "<backend> <controller>";
00101   }

void org.objectweb.cjdbc.console.text.commands.dbadmin.TransferBackend.parse String  commandText  )  throws Exception [virtual]
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.parse(java.lang.String)

Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand.

Definition at line 55 of file TransferBackend.java.

References org.objectweb.cjdbc.console.jmx.RmiJmxClient.getVirtualDatabaseProxy(), org.objectweb.cjdbc.console.text.Console.println(), and org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.transferBackend().

00056   {
00057     String controller = null;
00058     String backendName = null;
00059     StringTokenizer st = new StringTokenizer(commandText.trim());
00060 
00061     try
00062     {
00063       backendName = st.nextToken();
00064       controller = st.nextToken();
00065 
00066       console.println(ConsoleTranslate.get("admin.command.transfer.echo",
00067           new String[]{backendName, controller}));
00068       VirtualDatabaseMBean vjdc = jmxClient.getVirtualDatabaseProxy(dbName,
00069           user, password);
00070       vjdc.transferBackend(backendName,controller);
00071     }
00072     catch (Exception e)
00073     {
00074         console.println(ConsoleTranslate
00075             .get("admin.command.transfer.error",e));
00076     }
00077   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:03:02 2005 for C-JDBC by  doxygen 1.3.9.1