@Test public void testDeploy() throws Exception { long t0 = System.currentTimeMillis(); ProvisionMonitor monitor = Util.waitForService(ProvisionMonitor.class); Assert.assertNotNull(monitor); System.out.println( "Waited " + (System.currentTimeMillis() - t0) + " millis for ProvisionMonitor discovery"); DeployAdmin deployAdmin = (DeployAdmin) monitor.getAdmin(); OperationalStringManager manager = deployAdmin.getOperationalStringManager("Sorcer OS"); Util.waitForDeployment(manager); Job f1 = Util.createJob(); ProvisionManager provisionManager = new ProvisionManager(f1); Assert.assertTrue(provisionManager.deployServices()); }
/** @see org.rioproject.deploy.ProvisionManager#update */ public void update( ServiceBeanInstantiator instantiator, ResourceCapability resourceCapability, List<DeployedService> deployedServices, int serviceLimit) throws UnknownLeaseException, RemoteException { monitorProxy.update(instantiator, resourceCapability, deployedServices, serviceLimit); }
/** @see org.rioproject.deploy.ProvisionManager#register */ public EventRegistration register( MarshalledObject<ServiceBeanInstantiator> instantiator, MarshalledObject handback, ResourceCapability resourceCapability, List<DeployedService> deployedServices, int serviceLimit, long duration) throws LeaseDeniedException, RemoteException { return (monitorProxy.register( instantiator, handback, resourceCapability, deployedServices, serviceLimit, duration)); }
/** @see org.rioproject.monitor.ProvisionMonitor#getPeerInfo */ public PeerInfo getPeerInfo() throws RemoteException { return (monitorProxy.getPeerInfo()); }
/** @see org.rioproject.monitor.ProvisionMonitor#update */ public void update(final PeerInfo info) throws RemoteException { monitorProxy.update(info); }
/** @see org.rioproject.monitor.ProvisionMonitor#removeBackupFor */ public boolean removeBackupFor(final ProvisionMonitor monitor) throws RemoteException { return (monitorProxy.removeBackupFor(monitor)); }
public Collection<MarshalledObject<ServiceBeanInstantiator>> getWrappedServiceBeanInstantiators() throws RemoteException { return monitorProxy.getWrappedServiceBeanInstantiators(); }