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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKarafInstance(String root, String clientType) KarafInstance(String root, String instanceFilePath, String clientType) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()intgetPorts()protected static IKarafInstanceResolvervoidvoidregisterPort(KarafInstancePort instancePort) voidsetCacheLock(FileLock cacheLock) voidsetCachePath(String cachePath) voidsetInstanceNumber(Integer instanceNumber) voidsetInstanceSocket(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
-