Package org.oddjob.ssh
Class SshSequenceJob
- All Implemented Interfaces:
Serializable,Runnable,ArooaContextAware,ArooaSessionAware,ServiceProvider,Forceable,PropertyChangeNotifier,Iconic,LogEnabled,Resettable,Stateful,Stoppable,Structural
- See Also:
Description
Run a sequence of SSH Jobs using the same connection.-
Field Summary
FieldsFields inherited from class org.oddjob.framework.extend.StructuralJob
childHelper, destroy, stop, structuralState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute()Execute this job.Provider the services.voidsetConnection(SshConnection connection) Methods inherited from class org.oddjob.state.CascadeJob
getCascadeOn, getHaltOn, getInitialStateOp, onStop, setCascadeOn, setExecutorService, setHaltOn, setJobs, startChildStateReflectorMethods inherited from class org.oddjob.framework.extend.StructuralJob
addStructuralListener, fireDestroyedState, force, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onHardReset, onReset, onSoftReset, postStop, removeStructuralListener, run, softReset, stateHandler, stop, stopChildStateReflector, waitForChildrenOnStopMethods inherited from class org.oddjob.framework.extend.BasePrimary
configure, getName, logger, logger, loggerName, save, setName, toStringMethods inherited from class org.oddjob.framework.extend.BaseComponent
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.oddjob.Stateful
addStateListener, lastStateEvent, removeStateListener
-
Field Details
-
SSH_SESSION_SOURCE_SERVICE_NAME
- See Also:
-
-
Constructor Details
-
SshSequenceJob
public SshSequenceJob()
-
-
Method Details
-
getServices
Description copied from interface:ServiceProviderProvider the services.- Specified by:
getServicesin interfaceServiceProvider- Returns:
- The services. May be null.
- Reference Property:
- services
Description
Internal property to provide the connection to children. -
execute
Description copied from class:StructuralJobExecute this job.- Overrides:
executein classCascadeJob- Throws:
InterruptedException
-
getConnection
-
setConnection
-