Esempio n. 1
0
 @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());
 }
Esempio n. 2
0
 /** @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);
 }
Esempio n. 3
0
 /** @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));
 }
Esempio n. 4
0
 /** @see org.rioproject.monitor.ProvisionMonitor#getPeerInfo */
 public PeerInfo getPeerInfo() throws RemoteException {
   return (monitorProxy.getPeerInfo());
 }
Esempio n. 5
0
 /** @see org.rioproject.monitor.ProvisionMonitor#update */
 public void update(final PeerInfo info) throws RemoteException {
   monitorProxy.update(info);
 }
Esempio n. 6
0
 /** @see org.rioproject.monitor.ProvisionMonitor#removeBackupFor */
 public boolean removeBackupFor(final ProvisionMonitor monitor) throws RemoteException {
   return (monitorProxy.removeBackupFor(monitor));
 }
Esempio n. 7
0
 public Collection<MarshalledObject<ServiceBeanInstantiator>> getWrappedServiceBeanInstantiators()
     throws RemoteException {
   return monitorProxy.getWrappedServiceBeanInstantiators();
 }