|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl
org.smartfrog.sfcore.prim.PrimImpl
org.smartfrog.services.shellscript.SFScriptExecutionImpl
public class SFScriptExecutionImpl
| Field Summary |
|---|
| Fields inherited from class org.smartfrog.sfcore.prim.PrimImpl |
|---|
refLivenessDelay, refLivenessFactor, sfCompleteName, sfContext, sfDeployHooks, sfDeployWithHooks, sfExportRef, sfIsDeployed, sfIsStarted, sfIsTerminated, sfIsTerminating, sfLivenessCount, sfLivenessDelay, sfLivenessFactor, sfLivenessSender, sfParent, sfStartHooks, sfTerminateWithHooks, termLock |
| Fields inherited from interface org.smartfrog.services.shellscript.SFExecution |
|---|
ATR_EXEC, ATR_EXEC_EXIT_CODE, ATR_EXEC_EXIT_CODES, ATR_NAME, ATR_NUMBER_OF_EXECS |
| Constructor Summary | |
|---|---|
SFScriptExecutionImpl()
|
|
| Method Summary | |
|---|---|
ScriptResults |
execute(java.util.List commands,
long timeout)
submit a list of commands to the shell |
ScriptResults |
execute(java.util.List commands,
long timeout,
boolean verbose)
submit a list of commands to the shell |
ScriptResults |
execute(java.util.List commands,
ScriptLock lock)
submit a list of commands to the shell |
ScriptResults |
execute(java.util.List commands,
ScriptLock lock,
boolean verbose)
submit a list of commands to the shell |
ScriptResults |
execute(java.lang.String command,
long timeout)
submit a command to the shell |
ScriptResults |
execute(java.lang.String command,
long timeout,
boolean verbose)
submit a command to the shell |
ScriptResults |
execute(java.lang.String command,
ScriptLock lock)
submit a command to the shell |
ScriptResults |
execute(java.lang.String command,
ScriptLock lock,
boolean verbose)
submit a command to the shell |
ScriptLock |
lockShell(long timeout)
obtain a lock on the shell, will block until it is available |
void |
readConfig()
Reads SF description = initial configuration. |
void |
releaseShell(ScriptLock lock)
release the lock on the shell and resets verbose to false. |
void |
sfDeploy()
This method retrieves the paramters from the .sf file. |
void |
sfStart()
This sets a flag that will start the httpd process running. |
void |
sfTerminateWith(TerminationRecord tr)
This shuts down Apache by requesting that the ApacheState variable be set to false. |
| Methods inherited from class org.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl |
|---|
sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolveWithParser |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.smartfrog.sfcore.prim.Prim |
|---|
sfAddAttribute, sfAttributeKeyFor, sfAttributes, sfCompleteName, sfContainsAttribute, sfContainsValue, sfContext, sfDeployedHost, sfDeployedProcessName, sfDeployWith, sfDetach, sfDetachAndTerminate, sfDumpState, sfIsDeployed, sfIsStarted, sfIsTerminated, sfIsTerminating, sfParent, sfParentageChanged, sfRemoveAttribute, sfReplaceAttribute, sfTerminate, sfTerminatedWith, sfTerminateQuietlyWith, sfValues |
| Methods inherited from interface org.smartfrog.sfcore.prim.Liveness |
|---|
sfPing |
| Methods inherited from interface org.smartfrog.sfcore.reference.RemoteReferenceResolver |
|---|
sfResolve, sfResolve, sfResolveHere, sfResolveHere, sfResolveParent |
| Methods inherited from interface org.smartfrog.sfcore.reference.RemoteReferenceResolverHelper |
|---|
sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolveWithParser |
| Methods inherited from interface org.smartfrog.sfcore.prim.Diagnostics |
|---|
sfDiagnosticsReport |
| Constructor Detail |
|---|
public SFScriptExecutionImpl()
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public void readConfig()
throws SmartFrogException,
java.rmi.RemoteException
readConfig in interface SFExecutionreadConfig in interface SFReadConfigSmartFrogException
java.rmi.RemoteException
public void sfDeploy()
throws SmartFrogException,
java.rmi.RemoteException
sfDeploy in interface PrimsfDeploy in class PrimImplSmartFrogException - deployment failure
java.rmi.RemoteException - In case of network/rmi error
public void sfStart()
throws SmartFrogException,
java.rmi.RemoteException
sfStart in interface PrimsfStart in class PrimImplSmartFrogException - starting failure
java.rmi.RemoteException - In cas eof network/rmi errorpublic void sfTerminateWith(TerminationRecord tr)
sfTerminateWith in class PrimImpltr - TerminationRecord object
public ScriptResults execute(java.lang.String command,
ScriptLock lock)
throws SmartFrogException
ScriptExecution
execute in interface ScriptExecutioncommand - Stringlock - ScriptLock
SmartFrogException - if the lock object is not valid, i.e. if it is
not currently holding the lock
public ScriptResults execute(java.lang.String command,
ScriptLock lock,
boolean verbose)
throws SmartFrogException
ScriptExecution
execute in interface ScriptExecutioncommand - Stringlock - ScriptLockverbose - determines if results output will be shown using out/err streams.
SmartFrogException - if the lock object is not valid, i.e. if it is
not currently holding the lock
public ScriptResults execute(java.util.List commands,
long timeout,
boolean verbose)
throws SmartFrogException
execute in interface ScriptExecutioncommands - the list of commandstimeout - max number of miliseconds to obtain the lock: 0 is don't
wait, -1 is wait foreververbose - determines if the shell output will be shown using out/err streams.
SmartFrogException - if the lock is not obtained in the requisite
time
public ScriptResults execute(java.util.List commands,
long timeout)
throws SmartFrogException
execute in interface ScriptExecutioncommands - the list of commandstimeout - max number of miliseconds to obtain the lock: 0 is don't
wait, -1 is wait forever
SmartFrogException - if the lock is not obtained in the requisite
time
public ScriptResults execute(java.lang.String command,
long timeout)
throws SmartFrogException
execute in interface ScriptExecutioncommand - the commandtimeout - max number of miliseconds to obtain the lock: 0 is don't
wait, -1 is wait forever
SmartFrogException - if the lock is not obtained in the requisite
time
public ScriptResults execute(java.lang.String command,
long timeout,
boolean verbose)
throws SmartFrogException
execute in interface ScriptExecutioncommand - the commandtimeout - max number of miliseconds to obtain the lock: 0 is don't
wait, -1 is wait foreververbose - determines if the shell output will be shown using out/err streams.
SmartFrogException - if the lock is not obtained in the requisite
time
public ScriptResults execute(java.util.List commands,
ScriptLock lock)
throws SmartFrogException
ScriptExecution
execute in interface ScriptExecutioncommands - Listlock - ScriptLock
SmartFrogException - if the lock object is not valid, i.e.
SmartFrogException - if the lock object is not valid, i.e. if it is
not currently holding the lock
public ScriptResults execute(java.util.List commands,
ScriptLock lock,
boolean verbose)
throws SmartFrogException
ScriptExecution
execute in interface ScriptExecutioncommands - Listlock - ScriptLockverbose - determines if results output will be shown using out/err streams.
SmartFrogException - if the lock object is not valid, i.e.
SmartFrogException - if the lock object is not valid, i.e. if it is
not currently holding the lock
public ScriptLock lockShell(long timeout)
throws SmartFrogException
ScriptExecution
lockShell in interface ScriptExecutiontimeout - max number of miliseconds to obtain the lock: 0 is don't
wait, -1 is wait forever
SmartFrogException - if the lock is not obtained in the requisite
time
public void releaseShell(ScriptLock lock)
throws SmartFrogException
ScriptExecution
releaseShell in interface ScriptExecutionlock - the lock object receieved from the lockShell
SmartFrogException - if the lock object is not valid, i.e.
SmartFrogException - if the lock object is not valid, i.e. if it is
not currently holding the l0ck
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||