• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Changeset
  • Next Changeset →

Changeset 2303

Show
Ignore:
Timestamp:
03/21/08 09:45:17 (8 months ago)
Author:
callan
Message:

Further fixes for #894 that return some functionality for mismatched nullable primatives.

Location:
trunk/components/blitz
Files:
3 modified

  • etc/OMERO.xml (modified) (3 diffs)
  • resources/ice.config (modified) (2 diffs)
  • src/omero/util/IceMapper.java (modified) (3 diffs)

Legend:

Unmodified
Added
Removed
  • trunk/components/blitz/etc/OMERO.xml

    r2282 r2303  
    3333         </adapter> 
    3434         <properties> 
    35             <property name="IcePatch2.Admin.Endpoints" value="tcp -h 127.0.0.1"/> 
     35            <property name="IcePatch2.Admin.Endpoints" value="tcp -h mage.openmicroscopy.org.uk"/> 
    3636            <property name="IcePatch2.Admin.RegisterProcess" value="1"/> 
    3737            <property name="IcePatch2.InstanceName" value="${instance-name}"/> 
    … …  
    4949           <property name="Glacier2.Client.Endpoints" value="${client-endpoints}"/> 
    5050           <property name="Glacier2.Server.Endpoints" value="${server-endpoints}"/> 
    51            <property name="Glacier2.Admin.Endpoints" value="tcp -h 127.0.0.1"/> 
     51           <property name="Glacier2.Admin.Endpoints" value="tcp -h mage.openmicroscopy.org.uk"/> 
    5252           <property name="Glacier2.Admin.RegisterProcess" value="1"/> 
    5353           <property name="Glacier2.InstanceName" value="${instance-name}"/> 
    … …  
    112112    <node name="master"> 
    113113      <server-instance template="Glacier2Template" 
    114         client-endpoints="tcp -h 127.0.0.1 -p 4063" 
     114        client-endpoints="tcp -h mage.openmicroscopy.org.uk -p 4063" 
    115115        session-timeout="300" 
    116         server-endpoints="tcp -h 127.0.0.1"/> 
     116        server-endpoints="tcp -h mage.openmicroscopy.org.uk"/> 
    117117      <server-instance template="BlitzTemplate" index="0"/> 
    118118      <server-instance template="ProcessorTemplate" index="0"/> 
  • trunk/components/blitz/resources/ice.config

    r2254 r2303  
    1717# running scripts and similarly it may be useful to define it 
    1818# here. 
    19 Ice.Default.Router=OMERO.Glacier2/router:tcp -p 4063 -h 127.0.0.1 
     19Ice.Default.Router=OMERO.Glacier2/router:tcp -p 4063 -h mage.openmicroscopy.org.uk 
    2020omero.user=user 
    2121omero.pass=CHANGE_ME 
    … …  
    4646# The following properties are useful when starting server via twistd 
    4747# or directly via java -jar and is not intended for use with IceGrid. 
    48 BlitzAdapter.Endpoints=tcp -h 127.0.0.1 -p 9999 
    49 StatusCheck=BlitzManager:tcp -h 127.0.0.1 -p 9999 
     48BlitzAdapter.Endpoints=tcp -h mage.openmicroscopy.org.uk -p 9999 
     49StatusCheck=BlitzManager:tcp -h mage.openmicroscopy.org.uk -p 9999 
    5050StatusCheck.Router="" 
  • trunk/components/blitz/src/omero/util/IceMapper.java

    r2302 r2303  
    700700        return false; 
    701701    } 
     702     
     703    protected boolean isNullablePrimitive(Class<?> p) { 
     704        if (p.equals(Integer.class) || p.equals(Integer[].class) 
     705                || p.equals(Long.class) || p.equals(Long[].class) 
     706                || p.equals(Float.class) || p.equals(Float[].class) 
     707                || p.equals(Double.class) || p.equals(Double[].class) 
     708                || p.equals(Boolean.class) || p.equals(Boolean[].class)) { 
     709            return true; 
     710        } 
     711        return false; 
     712    } 
    702713 
    703714    protected boolean isWrapperArray(Class<?> p) { 
    … …  
    714725            RType rt = (RType) arg; 
    715726            return fromRType(rt); 
    716         } else if (isPrimitive(p)) { // FIXME use findTarget for Immutable. 
     727        } else if (isPrimitive(p) || isNullablePrimitive(p)) { 
     728            // FIXME use findTarget for Immutable. 
    717729            return arg; 
    718730        } else if (isWrapperArray(p)) { 
    … …  
    761773        } else if (isPrimitive(type)) { 
    762774            return o; 
    763         } else if (Boolean.class.isAssignableFrom(type) 
    764                    || Integer.class.isAssignableFrom(type) 
    765                    || Long.class.isAssignableFrom(type) 
    766                    || Double.class.isAssignableFrom(type) 
    767                    || Float.class.isAssignableFrom(type) 
    768                    || String.class.isAssignableFrom(type)) { 
     775        } else if (isNullablePrimitive(type)) { 
    769776            return toRType(o); 
    770777        } else if (RGBBuffer.class.isAssignableFrom(type)) { 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/