org.mbari.siam.core
Class ServiceSandBox

java.lang.Object
  extended by org.mbari.siam.core.ServiceSandBox

public class ServiceSandBox
extends java.lang.Object


Field Summary
static java.lang.String DATASHEET_NAME
           
static java.lang.String JAR_NAME
           
static java.lang.String PROPERTIES_NAME
           
 
Constructor Summary
ServiceSandBox(java.lang.String path)
          create a Sandbox object
 
Method Summary
 void deleteAllFiles()
          delete all of the files in the service sand box
 void deleteFile(java.lang.String file)
           
 java.lang.String getDatasheetPath()
          get the name of the ids file including path info
 UUID getInstrumentUUID()
           
 byte[] getJarMD5()
          Get MD5 of Jar file.
 java.lang.String getJarPath()
          get the name of the jar file including path info
 java.lang.String getPath()
          Get the path to the sand box.
 java.lang.String getPropertiesPath()
          get the name of the ids file including path info
 java.util.Properties getServiceProperties()
           
 java.lang.String[] listFiles()
           
 void saveServiceProperties(java.util.Properties properties)
           
 void storeFile(java.io.File src, boolean overwrite)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAR_NAME

public static final java.lang.String JAR_NAME
See Also:
Constant Field Values

DATASHEET_NAME

public static final java.lang.String DATASHEET_NAME
See Also:
Constant Field Values

PROPERTIES_NAME

public static final java.lang.String PROPERTIES_NAME
See Also:
Constant Field Values
Constructor Detail

ServiceSandBox

public ServiceSandBox(java.lang.String path)
               throws java.io.IOException
create a Sandbox object

Throws:
java.io.IOException
Method Detail

getJarMD5

public byte[] getJarMD5()
                 throws java.io.IOException
Get MD5 of Jar file.

Throws:
java.io.IOException

getPath

public java.lang.String getPath()
Get the path to the sand box.


getJarPath

public java.lang.String getJarPath()
get the name of the jar file including path info


getDatasheetPath

public java.lang.String getDatasheetPath()
get the name of the ids file including path info


getPropertiesPath

public java.lang.String getPropertiesPath()
get the name of the ids file including path info


getInstrumentUUID

public UUID getInstrumentUUID()
                       throws java.io.IOException
Throws:
java.io.IOException

getServiceProperties

public java.util.Properties getServiceProperties()
                                          throws java.io.IOException
Throws:
java.io.IOException

saveServiceProperties

public void saveServiceProperties(java.util.Properties properties)
                           throws java.io.IOException
Throws:
java.io.IOException

storeFile

public void storeFile(java.io.File src,
                      boolean overwrite)
               throws java.io.IOException,
                      java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException

listFiles

public java.lang.String[] listFiles()
                             throws java.io.IOException
Throws:
java.io.IOException

deleteFile

public void deleteFile(java.lang.String file)
                throws java.io.IOException
Throws:
java.io.IOException

deleteAllFiles

public void deleteAllFiles()
                    throws java.io.IOException
delete all of the files in the service sand box

Throws:
java.io.IOException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.