|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.operations.utils.ServiceJarUtils
public class ServiceJarUtils
| Field Summary | |
|---|---|
static UUID |
_NULL_UUID
|
static java.lang.String |
_SERVICE_NAME_TOKEN
|
static java.lang.String |
_serviceCodePath
|
static java.lang.String |
_UUID_TOKEN
|
| Constructor Summary | |
|---|---|
ServiceJarUtils()
|
|
| Method Summary | |
|---|---|
static void |
addServiceCode(java.io.File serviceFile,
UUID uuid)
add the service code to the service code directory |
static boolean |
creatServiceCodePath()
create the service code direcotry if it does not exist |
static java.lang.String |
getServiceCodeName(java.io.File serviceFile)
get the service name from the service code file |
static UUID |
getServiceCodeUUID(java.io.File serviceFile)
get the intrument UUID from the service code file |
static java.lang.String |
getServicePath(UUID uuid)
return the path to a loaded service from the specified UUID |
static boolean |
isServiceLoaded(UUID uuid)
determine if service code for the specified UUID is loaded |
static java.lang.String[] |
listServiceCode()
return an array of strings containing the UUID and serviceName of all the loaded services |
static boolean |
removeServiceCode(UUID uuid)
remove the service code from the service code directory for the specified UUID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _UUID_TOKEN
public static final java.lang.String _SERVICE_NAME_TOKEN
public static final UUID _NULL_UUID
public static final java.lang.String _serviceCodePath
| Constructor Detail |
|---|
public ServiceJarUtils()
| Method Detail |
|---|
public static boolean isServiceLoaded(UUID uuid)
public static java.lang.String getServicePath(UUID uuid)
public static boolean creatServiceCodePath()
public static void addServiceCode(java.io.File serviceFile,
UUID uuid)
throws java.io.IOException
java.io.IOExceptionpublic static boolean removeServiceCode(UUID uuid)
public static java.lang.String[] listServiceCode()
throws java.io.IOException
java.io.IOException
public static UUID getServiceCodeUUID(java.io.File serviceFile)
throws java.io.IOException,
MissingPropertyException,
java.lang.NumberFormatException
java.io.IOException
MissingPropertyException
java.lang.NumberFormatException
public static java.lang.String getServiceCodeName(java.io.File serviceFile)
throws java.io.IOException,
MissingPropertyException
java.io.IOException
MissingPropertyException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||