public class KarafInstance extends Object
Modifier and Type | Field and Description |
---|---|
protected static IKarafInstanceResolver |
resolver |
Constructor and Description |
---|
KarafInstance(String root,
String clientType) |
KarafInstance(String root,
String instanceFilePath,
String clientType) |
Modifier and Type | Method and Description |
---|---|
void |
assignPortsAndCreateCache() |
void |
close() |
String |
getCachePath() |
String |
getClientType() |
int |
getInstanceNumber() |
KarafInstancePort |
getPort(String id) |
Set<String> |
getPortIds() |
List<KarafInstancePort> |
getPorts() |
protected static IKarafInstanceResolver |
getResolver() |
void |
processConfigFile() |
void |
registerPort(KarafInstancePort instancePort) |
void |
setCacheLock(FileLock cacheLock) |
void |
setCachePath(String cachePath) |
void |
setInstanceNumber(Integer instanceNumber) |
void |
setInstanceSocket(ServerSocket instanceSocket) |
protected static IKarafInstanceResolver resolver
public void setCachePath(String cachePath)
public void processConfigFile() throws FileNotFoundException
FileNotFoundException
protected static IKarafInstanceResolver getResolver()
public void assignPortsAndCreateCache() throws KarafInstanceResolverException
KarafInstanceResolverException
public void close() throws IOException
IOException
public int getInstanceNumber()
public String getCachePath()
public void registerPort(KarafInstancePort instancePort)
public KarafInstancePort getPort(String id)
public List<KarafInstancePort> getPorts()
public void setInstanceNumber(Integer instanceNumber)
public void setInstanceSocket(ServerSocket instanceSocket)
public String getClientType()
public void setCacheLock(FileLock cacheLock)
Copyright © 2021 Hitachi Vantara. All rights reserved.