コード例 #1
0
 public virtual void ContainerStarted(RMContainer container)
 {
     if (historyServiceEnabled)
     {
         dispatcher.GetEventHandler().Handle(new WritingContainerStartEvent(container.GetContainerId
                                                                                (), ContainerStartData.NewInstance(container.GetContainerId(), container.GetAllocatedResource
                                                                                                                       (), container.GetAllocatedNode(), container.GetAllocatedPriority(), container.GetCreationTime
                                                                                                                       ())));
     }
 }
コード例 #2
0
 /// <exception cref="System.IO.IOException"/>
 protected internal virtual void WriteContainerStartData(ContainerId containerId)
 {
     store.ContainerStarted(ContainerStartData.NewInstance(containerId, Resource.NewInstance
                                                               (0, 0), NodeId.NewInstance("localhost", 0), Priority.NewInstance(containerId.GetId
                                                                                                                                    ()), 0));
 }