Commit fdd9e9c3 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Removed unused code.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9387 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2a4aa5ff
<html>
<body>
<p>A server network i/o front end package.</p>
<p>The network code is designed to enable building scalable servers in Java
without any protocol specific dependencies. The Jive network library provides
tools to monitor and manage bandwidth and connections.</p>
</body>
</html>
\ No newline at end of file
package org.jivesoftware.openfire.component;
import org.jivesoftware.openfire.lifecycle.JiveLifecycle;
/**
* Manages a components lifecycle. A component can be started and stopped, either by explicitly
* calling the start and stop methods or if a jive property is set on the LifeCycle object to be
* either true or false. True causing the the component to be started, if it is not already started,
* and false causing it to be stopped. Note that either the property needs to be expliticity set or
* the component needs to be explicitly stopped in order for the component to enter the stopped
* state.
*
* @author Alexander Wenckus
*/
public interface ComponentLifecycle extends JiveLifecycle {
/**
* Starts the component, setting the JiveProperty to true if it exists.
*/
void start();
/**
* Stops the component, setting the JiveProperty to false if it exists.
*/
void stop();
}
package org.jivesoftware.openfire.lifecycle;
/**
* Provide a JiveProperty which manages the lifecycle of your object. If the provided property
* is true or does not exist, the Object should be considered to be in a running state. Otherwise, if
* the property is explicitly set to false the Lifecycle object is considered to not be running.
*/
public interface JiveLifecycle {
/**
* The JiveProperty which either when it doesn't exist or is set to true. If no property has been
* set the Lifecycle should be considered to be in a running state. If the JivePropety
* is not explicitly set to the value &quot;false&quot; then the Lifecycle object should be considered
* to be not in a running state.
*
* @param jiveProperty the JiveProperty which defines the
*/
void setJiveProperty(String jiveProperty);
/**
* The only way this method will return False is if a JiveProperty has been specified and it has been
* explicitly set to &quot;false&quot;.
*
* @return true if this Lifecycle object is running and false if it is not.
*/
boolean isRunning();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment