Package org.pentaho.platform.osgi
Class KarafInstance
java.lang.Object
org.pentaho.platform.osgi.KarafInstance
This class assigns and configures property settings for separate karaf instances so that multiple client/server
applications can run simultaneously on the same host. It assigns/creates a unique cache folder for each karaf
instance and maintains what folders are in use by implementing a lock file.
- Author:
- tkafalas
-
Field Summary
-
Constructor Summary
ConstructorDescriptionKarafInstance
(String root, String clientType) KarafInstance
(String root, String instanceFilePath, String clientType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
int
getPorts()
protected static IKarafInstanceResolver
void
void
registerPort
(KarafInstancePort instancePort) void
setCacheLock
(FileLock cacheLock) void
setCachePath
(String cachePath) void
setInstanceNumber
(Integer instanceNumber) void
setInstanceSocket
(ServerSocket instanceSocket)
-
Field Details
-
resolver
-
-
Constructor Details
-
KarafInstance
-
KarafInstance
-
-
Method Details
-
setCachePath
-
processConfigFile
- Throws:
FileNotFoundException
-
getResolver
-
assignPortsAndCreateCache
- Throws:
KarafInstanceResolverException
-
close
- Throws:
IOException
-
getInstanceNumber
public int getInstanceNumber() -
getCachePath
-
registerPort
-
getPort
-
getPortIds
-
getPorts
-
setInstanceNumber
-
setInstanceSocket
-
getClientType
-
setCacheLock
-