org.apache.directory.studio.apacheds.model
Class Server

java.lang.Object
  extended by org.apache.directory.studio.apacheds.model.Server
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable

public class Server
extends java.lang.Object
implements org.eclipse.core.runtime.IAdaptable

This class represents an Apache DS server.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
Server()
          Creates a new instance of Server.
Server(java.lang.String name)
          Creates a new instance of Server.
Server(java.lang.String name, java.lang.String id)
          Creates a new instance of Server.
 
Method Summary
 void addListener(ServerListener listener)
          Adds a listener.
static java.lang.String createId()
          Creates a new ID.
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.lang.String getId()
          Gets the ID of the server.
 LaunchServerJob getLaunchJob()
          Gets the launch job.
 java.lang.String getName()
          Gets the name of the server
 ServerStateEnum getState()
          Gets the state.
 ServerVersion getVersion()
          Gets the version of the server
 void removeListener(ServerListener listener)
          Removes a listener.
 void setId(java.lang.String id)
          Sets the ID of the server.
 void setLaunchJob(LaunchServerJob launchJob)
          Sets the launch job.
 void setName(java.lang.String name)
          Sets the name of the server
 void setState(ServerStateEnum state)
          Sets the state
 void setVersion(ServerVersion version)
          Sets the version of the server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server()
Creates a new instance of Server.


Server

public Server(java.lang.String name)
Creates a new instance of Server.

An ID is automatically created.

Parameters:
name - the name of the server

Server

public Server(java.lang.String name,
              java.lang.String id)
Creates a new instance of Server.

Parameters:
name - the name of the server
id - the id of the server
Method Detail

addListener

public void addListener(ServerListener listener)
Adds a listener.

Parameters:
listener - the listener

removeListener

public void removeListener(ServerListener listener)
Removes a listener.

Parameters:
listener - the listener

getName

public java.lang.String getName()
Gets the name of the server

Returns:
the name of the server

setName

public void setName(java.lang.String name)
Sets the name of the server

Parameters:
name - the name of the server

getId

public java.lang.String getId()
Gets the ID of the server.

Returns:
the ID of the server

setId

public void setId(java.lang.String id)
Sets the ID of the server.

Parameters:
id - the ID of the server

createId

public static java.lang.String createId()
Creates a new ID.

Returns:
a new ID

getState

public ServerStateEnum getState()
Gets the state.

Returns:
the state

setState

public void setState(ServerStateEnum state)
Sets the state

Parameters:
state - the state

getLaunchJob

public LaunchServerJob getLaunchJob()
Gets the launch job.

Returns:
the launch job

setLaunchJob

public void setLaunchJob(LaunchServerJob launchJob)
Sets the launch job.

Parameters:
launchJob - the launch job

getVersion

public ServerVersion getVersion()
Gets the version of the server

Returns:
the version of the server

setVersion

public void setVersion(ServerVersion version)
Sets the version of the server

Parameters:
version - the version of the server

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.