org.apache.karaf.admin.internal
Class InstanceImpl
java.lang.Object
org.apache.karaf.admin.internal.InstanceImpl
- All Implemented Interfaces:
- Instance
public class InstanceImpl
- extends java.lang.Object
- implements Instance
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstanceImpl
public InstanceImpl(AdminServiceImpl service,
java.lang.String name,
java.lang.String location,
java.lang.String javaOpts)
InstanceImpl
public InstanceImpl(AdminServiceImpl service,
java.lang.String name,
java.lang.String location,
java.lang.String javaOpts,
boolean root)
attach
public void attach(int pid)
throws java.io.IOException
- Throws:
java.io.IOException
getName
public java.lang.String getName()
- Specified by:
getName
in interface Instance
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface Instance
isRoot
public boolean isRoot()
- Specified by:
isRoot
in interface Instance
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation
in interface Instance
setLocation
public void setLocation(java.lang.String location)
- Specified by:
setLocation
in interface Instance
exists
public boolean exists()
getPid
public int getPid()
- Specified by:
getPid
in interface Instance
getSshPort
public int getSshPort()
- Specified by:
getSshPort
in interface Instance
changeSshPort
public void changeSshPort(int port)
throws Exception
- Specified by:
changeSshPort
in interface Instance
- Throws:
Exception
getRmiRegistryPort
public int getRmiRegistryPort()
- Specified by:
getRmiRegistryPort
in interface Instance
changeRmiRegistryPort
public void changeRmiRegistryPort(int port)
throws Exception
- Specified by:
changeRmiRegistryPort
in interface Instance
- Throws:
Exception
getJavaOpts
public java.lang.String getJavaOpts()
- Specified by:
getJavaOpts
in interface Instance
changeJavaOpts
public void changeJavaOpts(java.lang.String javaOpts)
throws Exception
- Specified by:
changeJavaOpts
in interface Instance
- Throws:
Exception
start
public void start(java.lang.String javaOpts)
throws Exception
- Specified by:
start
in interface Instance
- Throws:
Exception
stop
public void stop()
throws Exception
- Specified by:
stop
in interface Instance
- Throws:
Exception
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface Instance
- Throws:
Exception
getState
public java.lang.String getState()
- Specified by:
getState
in interface Instance
checkProcess
protected void checkProcess()
cleanShutdown
protected void cleanShutdown()
deleteFile
protected static boolean deleteFile(java.io.File fileToDelete)
loadPropertiesFile
protected static java.util.Properties loadPropertiesFile(java.net.URL configPropURL)
throws Exception
- Throws:
Exception
substVars
protected static java.lang.String substVars(java.lang.String val,
java.lang.String currentKey,
java.util.Map<java.lang.String,java.lang.String> cycleMap,
java.util.Properties configProps)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.