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

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

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

This class defines a SetCheckpoint

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 40 of file SetCheckpoint.java.


Constructor & Destructor Documentation

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

Creates a new SetCheckpoint object

Parameters:
module module that owns this commands

Definition at line 48 of file SetCheckpoint.java.

00049   {
00050     super(module);
00051   }


Member Function Documentation

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

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

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

Definition at line 82 of file SetCheckpoint.java.

00083   {
00084     return ConsoleTranslate.get("admin.command.set.checkpoint");
00085   }

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

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

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

Definition at line 74 of file SetCheckpoint.java.

00075   {
00076     return "setCheckpoint";
00077   }

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

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

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

Definition at line 90 of file SetCheckpoint.java.

00091   {
00092     return "<backendName> <checkpoint>";
00093   }

void org.objectweb.cjdbc.console.text.commands.dbadmin.SetCheckpoint.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 56 of file SetCheckpoint.java.

References org.objectweb.cjdbc.console.text.Console.println().

00057   {
00058     StringTokenizer st = new StringTokenizer(commandText);
00059     if (st.countTokens() != 2)
00060       throw new ConsoleException(ConsoleTranslate
00061           .get("console.error.invalid.comment.argument"));
00062     String backendName = st.nextToken();
00063     String checkpointName = st.nextToken();
00064     console.println(ConsoleTranslate.get("admin.command.set.checkpoint.echo",
00065         new String[]{backendName, checkpointName}));
00066     VirtualDatabaseMBean vdjc = jmxClient.getVirtualDatabaseProxy(dbName, user,
00067         password);
00068     vdjc.setBackendLastKnownCheckpoint(backendName, checkpointName);
00069   }


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