org.jboss.example.dna.sequencer
Class SequencingClient

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

public class SequencingClient
extends Object

Author:
Randall Hauch

Field Summary
static char[] DEFAULT_PASSWORD
           
static String DEFAULT_REPOSITORY_NAME
           
static String DEFAULT_USERNAME
           
static String DEFAULT_WORKSPACE_NAME
           
 
Constructor Summary
SequencingClient(JcrConfiguration config, String repositoryName, String workspaceName)
           
 
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 shutdownRepository()
          Shutdown the repository.
 void startRepository()
          Start up the JCR repository, using an implementation-specific API.
 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_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(JcrConfiguration config,
                        String repositoryName,
                        String workspaceName)
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, using an implementation-specific API.

Throws:
Exception

shutdownRepository

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

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.