|
|
|
|
org.eclipse.rse.core.subsystems
Class ServerLauncher
java.lang.Object
org.eclipse.rse.core.model.RSEPersistableObject
org.eclipse.rse.core.model.PropertySetContainer
org.eclipse.rse.core.model.RSEModelObject
org.eclipse.rse.core.subsystems.ServerLauncher
-
All Implemented Interfaces:
-
ILabeledObject,
IPropertySetContainer,
IRSEModelObject,
IRSEPersistableContainer,
IServerLauncherProperties
-
Direct Known Subclasses:
-
RemoteServerLauncher
-
public abstract class ServerLauncher
- extends
RSEModelObject
- implements
IServerLauncherProperties,
ILabeledObject
Abstract class intended to be extended to provide a means for starting a
remote server from the client. DStore-based connector services use this to
determine whether to start a sever via daemon, REXEC, or some other
mechanism. For systems that don't need to start remote servers from RSE, this
is not needed.
-
Since:
- 3.0 moved from non-API to API
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
_name
protected
String _name
_connectorService
protected
IConnectorService _connectorService
ServerLauncher
protected ServerLauncher(
String name,
IConnectorService service)
- Constructs a server launcher
-
Parameters:
-
name - name of the server launcher -
service - the associated connector service
getName
public
String getName()
- Returns the name of the server launcher
-
-
Specified by:
-
getName
in interface
IRSEModelObject
-
getLabel
public
String getLabel()
- Returns the label to display in a ui for the server launcher
-
-
Specified by:
-
getLabel
in interface
ILabeledObject
-
-
Returns:
- the display label for the object. If this has not
previously been set, this can return the name of object or
some other generated or constant label. It may return null
if no label can be determined.
setLabel
public void setLabel(
String label)
- Sets the label to use for display in a ui for the server launcher
-
-
Specified by:
-
setLabel
in interface
ILabeledObject
-
-
Parameters:
-
label - A display label for this object.
getDescription
public
String getDescription()
- Returns the description of the server launcher
-
-
Specified by:
-
getDescription
in interface
IRSEModelObject
-
Overrides:
-
getDescription
in class
RSEModelObject
-
getConnectorService
public
IConnectorService getConnectorService()
- Returns the associated connector service
-
-
Specified by:
-
getConnectorService
in interface
IServerLauncherProperties
-
-
Returns:
- the connector service
getPersistableParent
public
IRSEPersistableContainer getPersistableParent()
-
Description copied from interface:
IRSEPersistableContainer
- Retrieve the parent of this object in the persistence containment hierarchy.
This is related to, but not necessarily the same as, the model hierarchy.
-
-
Specified by:
-
getPersistableParent
in interface
IRSEPersistableContainer
-
-
Returns:
- the parent persistent object. This is null if there is no parent.
getPersistableChildren
public
IRSEPersistableContainer[] getPersistableChildren()
-
Description copied from interface:
IRSEPersistableContainer
- Retrieves the children of this object in the persistence containment hierarchy.
This is related to, but not necessarily the same as, the model hierarchy.
-
-
Specified by:
-
getPersistableChildren
in interface
IRSEPersistableContainer
-
-
Returns:
- the array of persistent children in the order they are to be stored in the
persistent form. This is an empty array if there are no children.
See
IRSEPersistableContainer.NO_CHILDREN .
cloneServerLauncher
public
IServerLauncherProperties cloneServerLauncher(
IServerLauncherProperties newOne)
- Clone the contents of this server launcher into the given server launcher
Your sublcass must override this if you add additional attributes! Be sure
to call super.cloneServerLauncher(newOne) first.
-
-
Specified by:
-
cloneServerLauncher
in interface
IServerLauncherProperties
-
-
Returns:
- the given new server launcher, for convenience.
commit
public boolean commit()
- Commits the associated connector service to be persisted
-
-
Specified by:
-
commit
in interface
IRSEPersistableContainer
-
-
Returns:
- true if the object was persisted.
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|
|