Unsolved

This post is more than 5 years old

1 Rookie

 • 

70 Posts

662

May 8th, 2013 02:00

Important steps for writing file to centera

Hello Experts,

I'm new to Centera and have been asked to develop small application to directly write/upload files / content and metadata to Centera.

I've found code on emc site, which is sample for storing content is that something which I can use to full effect. Or there might be some improvement steps which I can add.

here are basic steps with respect to FPLibrary class used in my code for which I need confirmation.

private static void connectToCentera() {

  String poolAddress = "10.81.90.11?C:\\centeracommandlinetool\\peaFiles\\test.pea";

  try {

  FPPool.RegisterApplication(appName,appVersion);

  FPPool.setGlobalOption(

  FPLibraryConstants.FP_OPTION_OPENSTRATEGY,

  FPLibraryConstants.FP_LAZY_OPEN);

  System.out.print("Address of cluster[" + poolAddress + "]: ");

  System.out.println(

  "Connecting to Centera cluster(" + poolAddress + ")");

  // open cluster connection

  thePool = new FPPool(poolAddress);

  FPPool.setGlobalOption(

  FPLibraryConstants.FP_OPTION_EMBEDDED_DATA_THRESHOLD,

  50000);

  } catch (FPLibraryException e) {

  // TODO Auto-generated catch block

  e.printStackTrace();

  }

Also it will be great if someone can give short description on parameters set above.

Regards

Prashant

409 Posts

May 12th, 2013 10:00

the centera api reference manual and the centera programmers guide explains all the parameters above

Top