[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Life
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Lifetime ClientSponsor.cs,NONE,1.1 ILease.cs,NONE,1.1 ISponsor.cs,NONE,1.1 LeaseState.cs,NONE,1.1 Makefile,NONE,1.1 |
Date: |
Thu, 17 Apr 2003 06:36:11 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/Remoting/Lifetime
In directory
subversions:/tmp/cvs-serv31157/runtime/System/Runtime/Remoting/Lifetime
Added Files:
ClientSponsor.cs ILease.cs ISponsor.cs LeaseState.cs Makefile
Log Message:
Stub out a large number of classes under the "System.Runtime.Remoting"
namespace; add the "CONFIG_REMOTING" define to selection compilation of
remoting.
--- NEW FILE ---
/*
* ClientSponsor.cs - Implementation of the
* "System.Runtime.Remoting.Lifetime.ClientSponsor" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Remoting.Lifetime
{
#if CONFIG_REMOTING
public class ClientSponsor : MarshalByRefObject, ISponsor
{
// Internal state.
private TimeSpan renewalTime;
// Constructors.
public ClientSponsor() : this(new TimeSpan(0, 2, 0)) {}
public ClientSponsor(TimeSpan renewalTime)
{
this.renewalTime = renewalTime;
}
// Get or set the renewal time.
public TimeSpan RenewalTime
{
get
{
return renewalTime;
}
set
{
renewalTime = value;
}
}
// Empty the registration list.
[TODO]
public void Close()
{
// TODO
}
// Initialize the lifetime service for this object.
public override Object InitializeLifetimeService()
{
// Nothing to do here.
return null;
}
// Register an object for sponsorship.
[TODO]
public bool Register(MarshalByRefObject obj)
{
// TODO
return false;
}
// Request renewal of a lease.
[TODO]
public TimeSpan Renewal(ILease lease)
{
// TODO
return new TimeSpan(0);
}
// Unregister an object from the sponsorship list.
[TODO]
public void Unregister(MarshalByRefObject obj)
{
// TODO
}
}; // class ClientSponsor
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Lifetime
--- NEW FILE ---
/*
* ILease.cs - Implementation of the
* "System.Runtime.Remoting.Lifetime.ILease" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Remoting.Lifetime
{
#if CONFIG_REMOTING
public interface ILease
{
// Get the current lease time.
TimeSpan CurrentLeaseTime { get; }
// Get the current lease state.
LeaseState CurrentState { get; }
// Get or set the initial lease time.
TimeSpan InitialLeaseTime { get; set; }
// Get or set the "renew on call" time.
TimeSpan RenewOnCallTime { get; set; }
// Get or set the sponsorship timeout.
TimeSpan SponsorshipTimeout { get; set; }
// Register a sponsor without renewing the lease.
void Register(ISponsor obj);
// Register a sponsor and renew the lease.
void Register(ISponsor obj, TimeSpan renewalTime);
// Renew the lease.
void Renew(TimeSpan renewalTime);
// Unregister a sponsor.
void Unregister(ISponsor obj);
}; // interface ILease
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Lifetime
--- NEW FILE ---
/*
* ISponsor.cs - Implementation of the
* "System.Runtime.Remoting.Lifetime.ISponsor" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Remoting.Lifetime
{
#if CONFIG_REMOTING
public interface ISponsor
{
// Request renewal of a lease.
TimeSpan Renewal(ILease lease);
}; // interface ISponsor
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Lifetime
--- NEW FILE ---
/*
* LeaseState.cs - Implementation of the
* "System.Runtime.Remoting.Lifetime.LeaseState" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Remoting.Lifetime
{
#if CONFIG_REMOTING
[Serializable]
public enum LeaseState
{
Null = 0,
Initial = 1,
Active = 2,
Renewing = 3,
Expired = 4
}; // enum LeaseState
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Lifetime
--- NEW FILE ---
# The build is done in "runtime", so cd up and use that Makefile.
all:
(cd ../../../..;make)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Lifetime ClientSponsor.cs,NONE,1.1 ILease.cs,NONE,1.1 ISponsor.cs,NONE,1.1 LeaseState.cs,NONE,1.1 Makefile,NONE,1.1,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Metadata/W3cXsd2001 ISoapXsd.cs,NONE,1.1 Makefile,NONE,1.1 SoapAnyUri.cs,NONE,1.1 SoapBase64Binary.cs,NONE,1.1 SoapDate.cs,NONE,1.1
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System LocalDataStoreSlot.cs,NONE,1.1 Activator.cs,1.9,1.10 AppDomain.cs,1.15,1.16 MarshalByRefObject.cs,1.4,1.5 _AppDomain.cs,1.3,1.4
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Metadata/W3cXsd2001 ISoapXsd.cs,NONE,1.1 Makefile,NONE,1.1 SoapAnyUri.cs,NONE,1.1 SoapBase64Binary.cs,NONE,1.1 SoapDate.cs,NONE,1.1
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System LocalDataStoreSlot.cs,NONE,1.1 Activator.cs,1.9,1.10 AppDomain.cs,1.15,1.16 MarshalByRefObject.cs,1.4,1.5 _AppDomain.cs,1.3,1.4
- Index(es):