jp.digitalmuseum.mr.service
クラス ServiceGroup

java.lang.Object
  上位を拡張 jp.digitalmuseum.mr.service.ServiceAbstractImpl
      上位を拡張 jp.digitalmuseum.mr.service.ServiceGroup
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Runnable, EventProvider, Service

public class ServiceGroup
extends ServiceAbstractImpl
Class for grouping services.
作成者:
Jun KATO
関連項目:
Matereal, 直列化された形式

フィールドの概要
 
クラス jp.digitalmuseum.mr.service.ServiceAbstractImpl から継承されたフィールド
DEFAULT_INTERVAL
 
コンストラクタの概要
ServiceGroup()
           
ServiceGroup(Service... servicesArray)
           
 
メソッドの概要
 void add(Service service)
           
 java.util.List<Service> clearServices()
          Unregister all services related to this service group.
 java.lang.String getName()
           
 java.util.List<Service> getServices()
          Get all services related to this service group.
 java.util.Iterator<Service> iterator()
           
 void mergeServiceGroup(ServiceGroup serviceGroup)
          Merge other service group with this group.
Merged group will be disposed using dispose().
protected  void onPause()
          Called when this service pauses.
protected  void onResume()
          Called when this service resumes from pausing.
protected  void onStart()
          Called when this service starts.

This method is assured to be called before the first call of Runnable.run().
protected  void onStop()
          Called when this service stops.

This method is assured to be called after the last call of Runnable.run().
 void remove(Service service)
           
 void run()
           
 
クラス jp.digitalmuseum.mr.service.ServiceAbstractImpl から継承されたメソッド
addEventListener, dispose, distributeEvent, getAliveTime, getConfigurationComponent, getInterval, getServiceGroup, initialize, isDisposed, isPaused, isStarted, pause, removeEventListener, resume, setInterval, setServiceGroup, start, start, stop, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
コンストラクタの詳細

ServiceGroup

public ServiceGroup()

ServiceGroup

public ServiceGroup(Service... servicesArray)
メソッドの詳細

getName

public java.lang.String getName()
定義:
インタフェース Service 内の getName
オーバーライド:
クラス ServiceAbstractImpl 内の getName
戻り値:
Returns the name of this service.

run

public void run()

add

public void add(Service service)

remove

public void remove(Service service)

clearServices

public java.util.List<Service> clearServices()
Unregister all services related to this service group.
戻り値:
Returns all unregistered services.

getServices

public java.util.List<Service> getServices()
Get all services related to this service group.
戻り値:

mergeServiceGroup

public void mergeServiceGroup(ServiceGroup serviceGroup)
Merge other service group with this group.
Merged group will be disposed using dispose().

iterator

public java.util.Iterator<Service> iterator()

onStart

protected void onStart()
クラス ServiceAbstractImpl の記述:
Called when this service starts.

This method is assured to be called before the first call of Runnable.run().
オーバーライド:
クラス ServiceAbstractImpl 内の onStart

onStop

protected void onStop()
クラス ServiceAbstractImpl の記述:
Called when this service stops.

This method is assured to be called after the last call of Runnable.run().
オーバーライド:
クラス ServiceAbstractImpl 内の onStop

onPause

protected void onPause()
クラス ServiceAbstractImpl の記述:
Called when this service pauses.
オーバーライド:
クラス ServiceAbstractImpl 内の onPause

onResume

protected void onResume()
クラス ServiceAbstractImpl の記述:
Called when this service resumes from pausing.
オーバーライド:
クラス ServiceAbstractImpl 内の onResume


Copyright by Jun KATO (arc@dmz) at https://mr.digitalmuseum.jp/