org.jboss.example.dna.sequencers
Class SequencingClient

java.lang.Object
  extended by org.jboss.example.dna.sequencers.SequencingClient

public class SequencingClient
extends Object

Author:
Randall Hauch

Field Summary
static String DEFAULT_JACKRABBIT_CONFIG_PATH
           
static char[] DEFAULT_PASSWORD
           
static String DEFAULT_REPOSITORY_NAME
           
static String DEFAULT_USERNAME
           
static String DEFAULT_WORKING_DIRECTORY
           
static String DEFAULT_WORKSPACE_NAME
           
 
Constructor Summary
SequencingClient()
           
 
Method Summary
 SequencingService.Statistics getStatistics()
          Get the sequencing statistics.
static void main(String[] args)
           
 void search()
          Perform a search of the repository for all image metadata automatically created by the image sequencer.
 void setUserInterface(UserInterface userInterface)
          Set the user interface that this client should use.
 void shutdownDnaServices()
          Shut down the DNA services.
 void shutdownRepository()
          Shutdown the repository.
 void startDnaServices()
          Start the DNA services.
 void startRepository()
          Start up the JCR repository.
 void uploadFile()
          Prompt the user interface for the file to upload into the JCR repository, then upload it using the JCR API.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_JACKRABBIT_CONFIG_PATH

public static final String DEFAULT_JACKRABBIT_CONFIG_PATH
See Also:
Constant Field Values

DEFAULT_WORKING_DIRECTORY

public static final String DEFAULT_WORKING_DIRECTORY
See Also:
Constant Field Values

DEFAULT_REPOSITORY_NAME

public static final String DEFAULT_REPOSITORY_NAME
See Also:
Constant Field Values

DEFAULT_WORKSPACE_NAME

public static final String DEFAULT_WORKSPACE_NAME
See Also:
Constant Field Values

DEFAULT_USERNAME

public static final String DEFAULT_USERNAME
See Also:
Constant Field Values

DEFAULT_PASSWORD

public static final char[] DEFAULT_PASSWORD
Constructor Detail

SequencingClient

public SequencingClient()
Method Detail

main

public static void main(String[] args)

setUserInterface

public void setUserInterface(UserInterface userInterface)
Set the user interface that this client should use.

Parameters:
userInterface -

startRepository

public void startRepository()
                     throws Exception
Start up the JCR repository. This method only operates using the JCR API and Jackrabbit-specific API.

Throws:
Exception

shutdownRepository

public void shutdownRepository()
                        throws Exception
Shutdown the repository. This method only uses the JCR API.

Throws:
Exception

startDnaServices

public void startDnaServices()
                      throws Exception
Start the DNA services.

Throws:
Exception

shutdownDnaServices

public void shutdownDnaServices()
                         throws Exception
Shut down the DNA services.

Throws:
Exception

getStatistics

public SequencingService.Statistics getStatistics()
Get the sequencing statistics.

Returns:
the statistics; never null

uploadFile

public void uploadFile()
                throws Exception
Prompt the user interface for the file to upload into the JCR repository, then upload it using the JCR API.

Throws:
Exception

search

public void search()
            throws Exception
Perform a search of the repository for all image metadata automatically created by the image sequencer.

Throws:
Exception


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.