Examples of RecordFactory


Examples of org.apache.hadoop.yarn.factories.RecordFactory

    return response;
  }

  public static org.apache.hadoop.yarn.server.api.records.NodeStatus
  createNodeStatus(NodeId nodeId, List<ContainerStatus> containers) {
    RecordFactory recordFactory = RecordFactoryProvider.getRecordFactory(null);
    org.apache.hadoop.yarn.server.api.records.NodeStatus nodeStatus =
        recordFactory.newRecordInstance(org.apache.hadoop.yarn.server.api.records.NodeStatus.class);
    nodeStatus.setNodeId(nodeId);
    nodeStatus.setContainersStatuses(containers);
    NodeHealthStatus nodeHealthStatus =
      recordFactory.newRecordInstance(NodeHealthStatus.class);
    nodeHealthStatus.setIsNodeHealthy(true);
    nodeStatus.setNodeHealthStatus(nodeHealthStatus);
    return nodeStatus;
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.factories.RecordFactory

    FiCaSchedulerNode node_0 = TestUtils.getMockNode(host_0, rack_0, 0, 16*GB);

    final String user_0 = "user_0";
    final String user_1 = "user_1";
   
    RecordFactory recordFactory =
        RecordFactoryProvider.getRecordFactory(null);
    RMContext rmContext = TestUtils.getMockRMContext();

    Priority priority_1 = TestUtils.createMockPriority(1);

View Full Code Here

Examples of org.apache.hadoop.yarn.factories.RecordFactory

    SchedulerNode node_0 = TestUtils.getMockNode(host_0, rack_0, 0, 16*GB);

    final String user_0 = "user_0";
    final String user_1 = "user_1";
   
    RecordFactory recordFactory =
        RecordFactoryProvider.getRecordFactory(null);
    RMContext rmContext = TestUtils.getMockRMContext();

    Priority priority_1 = TestUtils.createMockPriority(1);

View Full Code Here

Examples of org.dcm4che3.media.RecordFactory

*/
public class RecordFactoryTest {

    @Test
    public void testGetRecordType() {
        RecordFactory f = new RecordFactory();
        assertEquals(RecordType.IMAGE,
                f.getRecordType(UID.SecondaryCaptureImageStorage));
    }
View Full Code Here

Examples of org.lilyproject.repository.api.RecordFactory

                                                         Configuration conf, HBaseTableFactory hbaseTableFactory)
            throws KeeperException, InterruptedException, IOException, RepositoryException {
        RepositoryModel repositoryModel = new RepositoryModelImpl(zk);
        IdGenerator idGenerator = new IdGeneratorImpl();
        TypeManager typeManager = new HBaseTypeManager(idGenerator, conf, zk, hbaseTableFactory);
        RecordFactory recordFactory = new RecordFactoryImpl();

        RepositoryManager repositoryManager = new HBaseRepositoryManager(typeManager, idGenerator,
                recordFactory, hbaseTableFactory, new BlobsNotSupportedBlobManager(), conf, repositoryModel);
        HBaseRepository hbaseRepository;
        if (tableName != null) {
View Full Code Here

Examples of palmed.io.RecordFactory

     */
    public PalmEd()
    {
        display_ = Display.getDisplay( this );
        textBox_ = new TextBox();
        final RecordFactory mainFactory = new RecordFactory( "palmed" );
        final RecordFactory buffersFactory = new RecordFactory( "palmed.buffers" );
        final IBufferFactory factory = new BufferFactory( buffersFactory, textBox_ );
        final IBufferManager manager = new RecordBufferManager( factory );
        try
        {
            exit_ = new ExitCommand( this, manager, mainFactory );
        }
        catch( RecordException e )
        {
            mainFactory.purge();
            buffersFactory.purge();
            throw new RecordException( "Incompatible buffer format detected : quit and restart", e );
        }
        textBox_.add( createToolbar( manager ) );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.